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
while true; do | |
curl -s -i https://developers.google.com/events/io/register > ~/IO.log | |
grep "Registration opens" ~/IO.log > /dev/null 2>&1 | |
if [ $? -ne 0 ]; then | |
# Popup alert | |
zenity --info --text="Google IO registration open" | |
# Email alert | |
#echo 'Go Go GO!' | mail -s "Google I/O 2012 registration is now open" [email protected] | |
# Text msg alert | |
#echo 'I/O registration now open' | mail [email protected] |
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
javascript:document.write('<!DOCTYPE html><html><head><meta charset="utf-8"><title>Responsive Design Testing</title><style>body { margin: 20px; font-family: sans-serif; overflow-x: scroll; }.wrapper { width: 6000px; }.frame { float: left; }h2 { margin: 0 0 5px 0; }iframe { margin: 0 20px 20px 0; border: 1px solid #666; }</style></head><body><div class="wrapper"><div class="frame"><h2>240<span> x 320</span> <small>(mobile)</small></h2><iframe src="' + window.location + '" sandbox="allow-same-origin allow-forms" seamless width="240" height="320"></iframe></div><div class="frame"><h2>320<span> x 480</span> <small>(mobile)</small></h2><iframe src="' + window.location + '" sandbox="allow-same-origin allow-forms" seamless width="320" height="480"></iframe></div><div class="frame"><h2>480<span> x 640</span> <small>(small tablet)</small></h2><iframe src="' + window.location + '" sandbox="allow-same-origin allow-forms" seamless width="480" height="640"></iframe></div><div class="frame"><h2>768<span> x 1024</span> <sma |
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
$.getJSON("http://forrst.com/api/v2/users/info?username=seancron&callback=?", function(data) { | |
console.log(data); | |
}); |
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
function jsonp1307301925524({"resp":{"posts":[{"id":86549,"tiny_id":"Yrk","post_type":"question","post_url":"http:\/\/forrst.com\/posts\/A_curiosity_MVC_what_do_you_think_of_it_do_yo-Yrk","created_at":"2011-06-05 19:11:47","updated_at":"2011-06-05 19:11:47","user":{"id":17542,"username":"Crassiusneo","name":"Ramsez Stamper","url":"http:\/\/forrst.com\/people\/Crassiusneo","posts":"34","comments":"614","likes":"36","followers":"61","following":"19","photos":{"xl_url":"http:\/\/forrst-production.s3.amazonaws.com\/users\/photos\/17542\/xl.png?1289429013","large_url":"http:\/\/forrst-production.s3.amazonaws.com\/users\/photos\/17542\/large.png?1289429013","medium_url":"http:\/\/forrst-production.s3.amazonaws.com\/users\/photos\/17542\/medium.png?1289429013","small_url":"http:\/\/forrst-production.s3.amazonaws.com\/users\/photos\/17542\/small.png?1289429013","thumb_url":"http:\/\/forrst-production.s3.amazonaws.com\/users\/photos\/17542\/thumb.png?1289429013"},"bio":"\n<p>I'm a web developer specializing in PHP (wi |
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
[17:25:29][Locker] lservicemanager lockerPortNext = 18042 | |
[17:25:29][Locker] Fri May 27 17:25:29 Mongo DB : starting : pid = 25707 port = 27017 dbpath = /home/sean/mygit/Locker/Me/mongodata master = 0 slave = 0 32-bit | |
** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data | |
** see http://blog.mongodb.org/post/137788967/32-bit-limitations for more | |
[17:25:29][Locker] Fri May 27 17:25:29 Mongo DB : starting : pid = 25707 port = 27017 dbpath = /home/sean/mygit/Locker/Me/mongodata master = 0 slave = 0 32-bit | |
** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data |
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
warning: CRLF will be replaced by LF in Ops/Dashboard/date.js. | |
diff --git a/Ops/Dashboard/date.js b/Ops/Dashboard/date.js | |
index 59dd98a..17334d8 100644 | |
--- a/Ops/Dashboard/date.js | |
+++ b/Ops/Dashboard/date.js | |
@@ -7,13 +7,13 @@ | |
* | |
*/ | |
-/** |
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
[15:50:25][Locker] lservicemanager lockerPortNext = 18042 | |
[15:50:25][Locker][ERROR] mongod err: execvp(): No such file or directory | |
[15:50:25][Locker][ERROR] mongod did not start successfully. | |
node.js:134 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
TypeError: Cannot call method 'kill' of undefined |
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
set t_Co=256 | |
set showmatch | |
set expandtab | |
set tabstop=8 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set number | |
set hls | |
set backspace=indent,eol,start | |
set incsearch |
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
TestOfConfig.php | |
1) uses db config value at [/home/terrance/www/ThinkUp/tests/TestOfConfig.php line 142] | |
in testDBConfigValues | |
in Config class test | |
FAILURES!!! | |
Test cases run: 1/1, Passes: 21, Failures: 1, Exceptions: 0 |
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
#My implementation: | |
for i in xrange(0, 480, 3): | |
for j in xrange(0, 640, 3): | |
if depth[i,j] > 900: | |
final[i,j] = depth[i,j] |
NewerOlder