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
parsePost = function(input) { | |
var result = {}; | |
var parts = input.split("&"); | |
parts.forEach(function(part) { | |
var divided = part.split("="); | |
result[divided[0]] = divided[1]; | |
}); | |
return result; | |
}; |
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
@media print { | |
body, html { | |
height:90% !important; | |
} | |
.window-module { | |
display: none; | |
} | |
.window-cover { |
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
// #140unichars | |
function test() {} |
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
/** | |
This is my first ever processing script, so please fork and fix ;) | |
The check for valid data does not work very well ;) | |
*/ | |
import processing.serial.*; | |
Serial myPort; // Create object from Serial class | |
String val; // Data received from the serial port |
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
/** | |
VCC is connected to 3.3V | |
Make sure to connect Test to 3.3V or you will get garbage data! | |
*/ | |
#define XOUT A0 | |
#define YOUT A1 | |
#define ZOUT A2 | |
void setup() { |
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
//test |
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
#!/bin/sh | |
cd /var/cache/git | |
mkdir "$1.git" | |
chmod 775 "$1.git" | |
cd "$1.git" | |
git init --bare | |
cd .. | |
chown -R root:git "$1.git" |
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
Total 9 tests (Passed: 8; Fails: 1; Errors: 0) (3,00 ms) | |
Safari 528.16 iPhone OS: Run 3 tests (Passed: 3; Fails: 0; Errors 0) (2,00 ms) | |
Firefox 3.6 Mac OS: Run 3 tests (Passed: 2; Fails: 1; Errors 0) (2,00 ms) | |
DemoTest.testSafari failed (1,00 ms): devicePixelRatio expected not undefined but was undefined | |
()@http://127.0.0.1:4224/test//Users/stefan/Desktop/moonit/src/demo_tests.js:16 | |
Safari 531.22.7 Mac OS: Run 3 tests (Passed: 3; Fails: 0; Errors 0) (3,00 ms) |