I hereby claim:
- I am connorhudson on github.
- I am 01 (https://keybase.io/01) on keybase.
- I have a public key ASDMkeTgshnIIm36h3bT_EpQyWusK14swWkjqZfiscwzPgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const https = require('https'), | |
qs = require('querystring'), | |
ACCESS_TOKEN = "ACCESS_TOKEN_FROM_SLACK", | |
VERIFICATION_TOKEN = "TOKEN_FROM_SLACK"; | |
// Verify Url - https://api.slack.com/events/url_verification | |
function verify(data, callback) { | |
if (data.token === VERIFICATION_TOKEN) { | |
callback(null, data.challenge); | |
} |
// ==UserScript== | |
// @name thisandagain Summoner | |
// @namespace thisandagainPlsExplainThisPost | |
// @version 1.01 | |
// @description Adds a button to posts to magically summon thisandagain | |
// @author tb10 | |
// @match https://scratch.mit.edu/discuss/* | |
// @grant none | |
// ==/UserScript== |
import requests | |
import time | |
num = 0 | |
user = "technoboy10" | |
key = "get your own! :P" | |
message = "event name here" | |
scratch = 'https://api.scratch.mit.edu/proxy/users/' + user + '/activity/count' | |
ifttt = 'https://maker.ifttt.com/trigger/' + message + '/with/key/' + key | |
while True: |
import Leap # I assume you've already figured out how to use the Leap Motion SDK for this | |
import partlycloudy as cloud | |
bit = cloud.Bit('authentication token', 'bit ID') # get these from littleBits cloud control | |
controller = Leap.Controller() # init Leap Motion | |
controller.enable_gesture(Leap.Gesture.TYPE_SWIPE) # make sure that the controller will recognize swipes | |
while True: | |
frame = controller.frame() # grab a leap motion frame | |
for gesture in frame.gestures(): | |
if gesture.type is Leap.Gesture.TYPE_SWIPE: |
""" | |
pip install python-twitter | |
pip install requests | |
pip install bs4 | |
""" | |
import twitter | |
import requests | |
from bs4 import BeautifulSoup as soup | |
import time |
import random, music | |
m = music.MIDI() | |
notes = [61, 63, 66, 68, 70] #pentatonic scale so it sounds pretty | |
while True: #Yes, infinite loop. No one cares. | |
m.send(random.choice(notes), 0.125, 100) #Assuming 120BPM, this sends an eigth note |
I hereby claim:
To claim this, I am signing this object:
from __future__ import division | |
from myro import * | |
import blockext | |
from blockext import * | |
@command("stop both motors") |
# Copyright (C) 2013 Connor Hudson, Tim Radvan | |
"""Module for writing Snap! extensions. | |
See example.py for usage. | |
Handler functions should return unicode. Non-unicode strings are assumed to | |
be UTF-8 encoded. | |
""" |