This file contains hidden or 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
function doSearch(text){ | |
var registrations = window.registrations; | |
for (var i = 0; i < registrations.length; i++){ | |
var str = registrations[i].first_name + ' ' + registrations[i].last_name + ' ' + registrations[i].email; | |
if (str.toLowerCase().indexOf(text.toLowerCase()) != -1){ | |
$('<li/>').html(registrations[i].id + ': ').append($('<a/>', {href: '/admin_stats/add_registration/' + registrations[i].id, text: str})).appendTo('#results'); | |
} | |
} | |
} |
This file contains hidden or 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
import alsaaudio | |
import serial | |
#import numpy | |
import struct | |
import math | |
ser = serial.Serial('/dev/ttyUSB0', 19200) | |
inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NORMAL, 'Device') | |
inp.setchannels(1) |
This file contains hidden or 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 Tkinter import * | |
import json | |
import urllib2 | |
def get_location(): | |
req = urllib2.urlopen('http://freegeoip.net/json/') | |
req_str = req.read() | |
return json.loads(req_str) | |
def get_todays_weather(coords): |
This file contains hidden or 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
(duh?) | |
... jk ... anything I can nom nom nom. | |
:) | |
And coffee. | |
FEED ME CODE |
OlderNewer