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
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <title></title> | |
| <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.8.0/build/reset-fonts-grids/reset-fonts-grids.css&2.8.0/build/base/base-min.css"> | |
| </head> | |
| <body class="yui-skin-sam"> | |
| <div id="doc" class="yui-t7"> |
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
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
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
| /** | |
| * Sanitize URL — Validate it looks like a URL, then make it less dirty. | |
| * | |
| * Oddnut Software | |
| * Copyright (c) 2010 Eric Ferraiuolo - http://eric.ferraiuolo.name | |
| * MIT License - http://www.opensource.org/licenses/mit-license.php | |
| * | |
| * Examples: | |
| * | |
| * 'Http://WWW.example.com/' » 'http://www.example.com/' |
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
| """ | |
| Lays down the law for your phone, telling it what to do and when | |
| Inspired by docblades' silent_night.py | |
| """ | |
| import android, string, time, math, datetime | |
| from datetime import time, datetime, timedelta | |
| from time import sleep | |
| from threading import Timer | |
| droid = android.Android() | |
| interval_secs = 480 |
NewerOlder