This is a test of Gist.io!
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
curl https://raw.github.com/dejay/youtube-mp3/master/install | sh |
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
#include "JoystickDriver.c" | |
task main() { | |
while(true) { | |
if( joystick.joy1_TopHat == 0 ) { | |
// top button pressed | |
} | |
if( joystick.joy1_TopHat == 2 ) { | |
//right button pressed | |
} |
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 config(Sensor, S2, snsrforce, sensorLightInactive) | |
bool checkWeight(int sensor_value) { | |
const int thresh = 375; | |
bool weighted; | |
if(sensor_value > thresh) { | |
weighted = true; | |
} else { | |
weighted = false; |
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
import urllib2 | |
import sys | |
url = "http://example.com/file.mp3" | |
request = urllib2.urlopen(url) | |
file = open('file.mp3', 'wb') | |
filesize = int(request.info().getheaders("Content-Length")[0]) | |
print "Downloading: %s Bytes: %s" % (url.split('/')[-1], filesize) |
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
RestClient.post("http://localhost:5000/", "{\"message\":\"hello\"}") |
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
<style type="text/css"> | |
table { | |
border-width: 0; | |
border-style: none; | |
border-color: #0000ff; | |
border-collapse: collapse; | |
} | |
td { |
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
#!/usr/bin/python | |
# whit-path-tests.py | |
# This file is part of whit. | |
# | |
# Copyright (C) 2013 - dejay | |
# | |
# Whit is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |
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
#$file must have the ".c" extension | |
gcc -w -E $file -o $output |
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
#!/usr/bin/env phantomjs | |
// Copyright (C) 2013 - dejay | |
// | |
// Air1.js is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. | |
// | |
// Air1.js is distributed in the hope that it will be useful, |
OlderNewer