Skip to content

Instantly share code, notes, and snippets.

@bcuz
bcuz / Yelp.js
Created September 27, 2017 13:10
const Yelp = {
getAccessToken() {
if (accessToken) {
return new Promise(function(resolve) {
resolve(accessToken)
})
}
return fetch('https://cors-anywhere.herokuapp.com/' + 'https://api.yelp.com/oauth2/token?grant_type=client_credentials&client_id=' + clientId + '&client_secret=' + secret, { method: 'POST'}).then(response => response.json()).then(jsonResponse => accessToken = jsonResponse.access_token)
},
const Yelp = {
getAccessToken() {
if (accessToken) {
return new Promise(function(resolve) {
resolve(accessToken)
})
}
return fetch('https://cors-anywhere.herokuapp.com/' + 'https://api.yelp.com/oauth2/token?grant_type=client_credentials&client_id=' + clientId + '&client_secret=' + secret, { method: 'POST'}).then(response => response.json()).then(jsonResponse => accessToken = jsonResponse.access_token)
},
<div class="header">
<div class="container">
</div>
</div>
<div class="jumbotron">
<div class="container">
<div class="main">
<h1>We are Broadway</h1>
<div class="header">
<div class="container">
</div>
</div>
<div class="jumbotron">
<div class="container">
<div class="main">
<h1>We are Broadway</h1>
from time import sleep
from math import *
print "Hello! This project will bring togetherr other projects from Github. You are requested by Mr. Brown to input a list of numbers and the program will calculate the minimum, maximum, absolute value, square root and squares of the numbers you have provided.Remember! You may only enter integers or floats. But you may try to enter something else. But I doubt my code will allow it."
# sleep(2)
print"Go ahead, enter the values"
console.log(`My name is ${myName}. I am ${myAgeInDogYears} years old in dog years.`);
Max Levchin: The management team at PayPal was very frequently
incompatible. Management meetings were not harmonious. Board meetings
were even worse. They were certainly productive meetings. Decisions
were made and things got done. But people got called idiots if they
deserved it.
The next time around, at Slide, we tried to create a nicer
environment. The idea of having meetings where people really liked one
another seemed great. That was folly. The mistake was to conflate
anger with a lack of respect. People who are smart and energetic are
<script src="js/vendor/angular-leaflet-directive.min.js"></script>
<link href="css/main.css" rel="stylesheet" />
<link href="css/leaflet.css" /> <----------- edit this line
<script src="js/vendor/angular.min.js"></script>
<script src="js/vendor/leaflet.js"></script>
<script src="js/vendor/angular-leaflet-directive.min.js"></script>
@bcuz
bcuz / main.js
Last active March 2, 2017 18:55
$(document).ready(function() {
$("div.button").hover(function() {
});
//$(this).toggleClass("button-hover");
// Start: Title button's functionality
$('#title-form .button').click(function() {