do everything as root
sudo su
update system:
apt-get update
const int redPin = 11; | |
const int greenPin = 10; | |
const int bluePin = 9; | |
void setup() { | |
// Start off with the LED off. | |
setColourRgb(0,0,0); | |
} | |
void loop() { |
/* SMARTPHONES */ | |
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) { | |
} | |
/* TABLETS */ | |
@media screen and (min-width: 481px) and (max-width: 1024px) { | |
} | |
/* DESKTOP */ |
#lang racket/gui | |
(require racket/flonum racket/fixnum) | |
;(require racket/require) | |
;(require (filtered-in | |
; (λ (name) (regexp-replace #rx"unsafe-" name "")) | |
; racket/unsafe/ops)) | |
;(require (only-in racket/flonum flvector)) | |
(define-syntax-rule (define-bin-op-stx name oper id) |
{ | |
"files": | |
{ | |
// jQuery | |
"jquery.js" : "http://code.jquery.com/jquery.js", | |
"jquery.min.js" : "http://code.jquery.com/jquery.min.js", | |
// jQuery Plugins | |
"jquery.cookie.js" : "https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js", |
do everything as root
sudo su
update system:
apt-get update
#lang send-exp racket/gui | |
(require sgl/gl) | |
(require sgl/gl-vectors) | |
(require pict) | |
(define texture% | |
(class object% | |
(init [(initial-bitmap bitmap)]) | |
(field [width 0] |
#!/bin/sh | |
if test $# -lt 1 ; then | |
echo "Usage: download_apk.sh <GooglePlayPackageName>" | |
exit 1 | |
fi | |
PACKAGE=$1 | |
APK_PATH=`adb shell pm list packages -f -3 | grep $PACKAGE | cut -d'=' -f 1 | cut -c9-` | |
echo "Pulling $APK_PATH from device" | |
echo `adb pull ${APK_PATH} ./${PACKAGE}.apk` |
#!/bin/sh | |
adb shell "mount -o rw,remount /system" | |
adb shell "stop b2g" | |
adb shell "echo \"ro.moz.wifi.p2p_supported=1\" >> /system/build.prop" | |
adb shell "mount -o ro,remount /system" | |
adb reboot |
/** | |
* A string builder with built-in support for ANSI escape sequences. | |
* | |
* @author Nathan Fiscaletti | |
*/ | |
public class AnsiStringBuilder | |
{ | |
/** | |
* Reset options. | |
*/ |