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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
{ | |
"connect" : ["irc://freenode/#pdxtech", | |
"irc://freenode/#pdxbots"], | |
"networks" : { "freenode" => {"host": "irc.freenode.net"}, | |
"psu" => {"host": "irc.cat.pdx.edu"} | |
} | |
} |
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
# run from inside nginx directory | |
./configure --prefix='/opt/nginx' --with-pcre='../pcre-8.12' \ | |
--add-module='/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.8/ext/nginx' \ | |
--without-http_autoindex_module \ | |
--without-http_ssi_module \ | |
--with-openssl=../openssl-1.0.0d/ \ | |
--http-log-path=/var/log/nginx/access.log \ | |
--error-log-path=/var/log/nginx/error.log \ | |
--pid-path=/var/run/nginx.pid \ |
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
require "rubygems" | |
require "superfeedr" | |
## You can have all the XMPP logging by changing the Skates log level | |
Skates.logger.level = Log4r::DEBUG | |
## | |
# Don't ever forget that all this is ASYNCHRONOUS... | |
# If you don't run EM in your program, then it will started for... however, EM.run begin a blocking call, you shoudl probably run it into a specific Thread to keep the rest of your app running :) |
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
require 'json' | |
require 'isaac' | |
configure do |c| | |
c.nick = "icecondor" | |
c.server = "irc.freenode.net" | |
c.port = 6667 | |
end | |
on :connect do |
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
Common minimal format for sending just lat/long data | |
[ | |
{ | |
uuid: "550e8400-e29b-41d4-a716-446655440000", | |
date: "2010-04-30T16:50:00Z", | |
location: { | |
position: { | |
latitude: 45.5118, | |
longitude: -122.6433 | |
} |