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
# Step 1: Get a dancebot (https://github.com/hugs/dancebot) | |
# Step 2: Find wooden box | |
# Step 3: Run this code | |
from BreakfastSerial import Arduino, Servo | |
from time import sleep | |
board = Arduino() | |
s1 = Servo(board, "9") | |
s2 = Servo(board, "10") |
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
# Archive your Twitpic photos and metadata | |
# | |
# A cleaned-up fork of Terence Eden's original archiver: | |
# http://shkspr.mobi/blog/2013/08/exporting-twitpic-images-python/ | |
# | |
# License: MIT | |
import urllib | |
import urllib2 | |
import json |
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
Tranquility Base Hotel | |
by Jason Huggins | |
Chapter 1 | |
"That's the stupidest idea I ever heard," said Jack, senior partner at Sand | |
Hill Road's storied Exemplar Capital, who jumped into the meeting 20 minutes | |
late. "Seriously, is this a joke?" |
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
from random import randint | |
problems = [] | |
def print_problem(operation): | |
a = randint(100000, 999999) | |
b = randint(100000, 999999) | |
if b > a: | |
a,b = b,a |
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
var centerX=0; | |
var centerY=0; | |
var radius=20; | |
// an array to save your points | |
var points=[]; | |
// populate array with points along a circle | |
for (var degree=0; degree<360; degree++){ | |
var radians = degree * Math.PI/180; |
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
> var linesRaw = fs.readFileSync('lines.json', 'utf8'); | |
> lines = JSON.parse(linesRaw) | |
[ [ { x: 122.01388549804688, y: 183.01388549804688 }, | |
{ x: 119.01388549804688, y: 195.01388549804688 }, | |
{ x: 115.01388549804688, y: 307.0138854980469 }, | |
{ x: 115.01388549804688, y: 354.0138854980469 }, | |
{ x: 117.01388549804688, y: 360.0138854980469 } ], | |
[ { x: 206.01388549804688, y: 177.01388549804688 }, | |
{ x: 204.01388549804688, y: 194.01388549804688 }, | |
{ x: 202.01388549804688, y: 287.0138854980469 }, |
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
var sleep = require('sleep'); | |
five = require("johnny-five"); | |
ik = require("./ik"); | |
board = new five.Board({ debug: false }); | |
board.on("ready", function() { | |
// Setup | |
servo1 = five.Servo({ | |
address: 0x40, | |
controller: "PCA9685", |
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
hello world! |
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
print "hello world" |
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
print "hello world" |
OlderNewer