Skip to content

Instantly share code, notes, and snippets.

View clifton's full-sized avatar
🎯

Clifton King clifton

🎯
View GitHub Profile
res = Faraday.get("http://weather.yahooapis.com/forecastrss?w=#{woe_id}")
xml = Nokogiri::XML(res.body)
loc_xml = xml.css('yweather|location')
weather_xml = xml.css('yweather|condition')
@weather_data = {
:city => loc_xml.attr('city').text,
:state => loc_xml.attr('region').text,
:country => loc_xml.attr('country').text,
commit b517816e0944df9d4e6885471b1fc4671355bfe4
Author: Clifton King <cliftonk@gmail.com>
Date: Thu Jun 16 10:39:52 2011 -0500
fixed creating a community
diff --git a/app/models/shareable.rb b/app/models/shareable.rb
index 6512439..dc3038c 100644
--- a/app/models/shareable.rb
+++ b/app/models/shareable.rb
fs = require 'fs'
http = require 'http'
{EventEmitter} = require 'events'
path = require 'path'
colors = require 'colors'
hostsDir = path.join __dirname, '../hosts'
class HostList extends EventEmitter
constructor: (@group) ->
[self, @servers, @queue] = [this, {}, []]
fe1 localhost:3000
fe2 127.0.0.1:3000
fe3 0.0.0.0:3000
fe1 localhost:3000
fe2 127.0.0.1:3000
fe3 0.0.0.0:3000
module.exports = {
fb: {
appId: '111565172259433'
, appSecret: '85f7e0a0cc804886180b887c1f04a3c1'
}
, twit: {
consumerKey: 'dKY1bT7q9dWn6fmUjkhKZg'
, consumerSecret: '1OOh8yI6sVX58W0QSNanL5wm1OHxTipvTdIlU73lXt4'
}
, github: {
$redis = require './adapter'
config = require './config'
colors = require 'colors'
{EventEmitter} = require 'events'
{AcroLetters} = require './AcroLetters'
acro = new AcroLetters()
class Channel extends EventEmitter
log: (msg) -> console.log "channel: #{@name} - #{msg}".yellow
$redis = require './adapter'
config = require './config'
colors = require 'colors'
{EventEmitter} = require 'events'
{AcroLetters} = require './AcroLetters'
acro = new AcroLetters()
class Channel extends EventEmitter
log: (msg) -> console.log "channel: #{@name} - #{msg}".yellow
==> Downloading http://www.stklos.net/download/stklos-1.00.tar.gz
File already downloaded in /Users/clifton/Library/Caches/Homebrew
/usr/bin/tar xf /Users/clifton/Library/Caches/Homebrew/stklos-1.00.tar.gz
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/stklos/1.00
./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/stklos/1.00
configure: WARNING: unrecognized options: --disable-debug
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
This command requires a formula argument