This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name | is_partner | latitude | longitude | |
---|---|---|---|---|
49 Degrees North | 1 | 48.302353 | -117.5640 | |
Afton Alps | 0 | 44.854332 | -92.79063 | |
Alpine Meadows | 1 | 39.148201 | -120.1509 | |
Alpine Mountain | 0 | 41.114666 | -75.22602 | |
Alpine Valley | 0 | 41.526939 | -81.25988 | |
Alpine Valley | 0 | 42.653999 | -83.56510 | |
Alpine Valley | 0 | 42.735901 | -88.42818 | |
Alta | 1 | 40.583828 | -111.6372 | |
Alyeska Resort | 1 | 60.961445 | -149.1026 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Instantiate the global sp object; include models & views */ | |
var sp = getSpotifyApi(1); | |
var models = sp.require("sp://import/scripts/api/models"); | |
var playlist_url = 'http://open.spotify.com/user/jkeck99/playlist/21iMSq0jzTie7m7v4UcMlV'; | |
var pl = models.Playlist.fromURI(playlist_url, function(playlist) { | |
for(i=0;i<playlist.tracks.length;i++){ | |
var link = '<li><a href="' + playlist.tracks[i].uri + '">' + playlist.tracks[i].name + '</a></li>'; | |
$('#playlist').append(link); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* SmartThings Clapper | |
* Author: Gilbert Chan | |
* Update: 10/18/14 | |
* Contributors: Manoj Kunthu, Andrew Mager | |
*/ | |
#include <SoftwareSerial.h> | |
#include <SmartThings.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>San Francisco Street Pavement</title> | |
<script type="text/javascript" src="https://github.com/simplegeo/polymaps/raw/master/lib/protovis/protodata.js"></script> | |
<script type="text/javascript" src="https://github.com/simplegeo/polymaps/raw/master/polymaps.js"></script> | |
<style type="text/css"> | |
@import url("https://github.com/simplegeo/polymaps/raw/master/examples/example.css"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Instantiate the global sp object; include models & views */ | |
var sp = getSpotifyApi(1); | |
var models = sp.require("sp://import/scripts/api/models"); | |
var player = models.player; | |
$('#play-me').click(function(){ | |
player.playing = !(player.playing); | |
if (player.playing == true) { | |
$('#play-me').empty().append('Playing!'); | |
} else { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Instantiate the global sp object; include models & views */ | |
var sp = getSpotifyApi(1); | |
var models = sp.require("sp://import/scripts/api/models"); | |
// Get the track that is currently playing | |
var currentTrack = models.player.track; | |
// If nothing currently playing | |
if (currentTrack == null) { | |
$('#now-playing').append('No track currently playing'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const fs = require('fs'); | |
const solc = require('solc'); | |
const source = fs.readFileSync(bigGamePath, 'utf8'); | |
const HDWalletProvider = require('truffle-hdwallet-provider'); | |
const Web3 = require('web3'); | |
const { MNEMONIC, INFURA_HOST } = process.env; | |
const provider = new HDWalletProvider(MNEMONIC, INFURA_HOST); | |
const web3 = new Web3(provider); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('allows an account to enter', async () => { | |
await lottery.methods.enter().send({ | |
from: accounts[0], | |
value: web3.utils.toWei('0.015', 'ether'), | |
}); | |
const players = await lottery.methods.players().call({ | |
from: accounts[0], | |
}); | |
const balance = await lottery.methods.getBalance().call({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.18; | |
contract Inbox { | |
string public message; | |
function Inbox(string initialMessage) public { | |
message = initialMessage; | |
} | |
function setMessage(string newMessage) public { |
NewerOlder