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
class String | |
@@nouns = [] | |
def is_noun? | |
String.nouns.include? self.downcase | |
end | |
def find_nouns | |
self.split(/\s/).collect { |w| w if w.is_noun? }.compact | |
end |
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
2011-05-25T21:05:21+00:00 app[web.1]: Started GET "/users/auth/google_apps" for 68.210.95.233 at 2011-05-25 14:05:21 -0700 | |
2011-05-25T21:05:21+00:00 app[web.1]: WARNING: making https request to https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&bsv=llya694le36z&scc=1<mpl=default<mplcache=2&from=login without verifying server certificate; no CA path was specified. | |
2011-05-25T21:05:21+00:00 app[web.1]: WARNING: making https request to https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&bsv=llya694le36z&scc=1<mpl=default<mplcache=2&from=login without verifying server certificate; no CA path was specified. | |
2011-05-25T21:05:22+00:00 app[web.1]: Generated checkid_setup request to https://www.google.com/accounts/o8/ud?source=gmail.com with assocication AOQobUcUdY_9ZKQk1nlsvTM7Sd3-VWxTE9VZ0tzHA2-aoDv04cpu-XzR | |
2011-05- |
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
/** | |
@author Benjamin Silas Rhodes | |
Groovy is a dynamic language for the jvm | |
@see: http://groovy.codehaus.org/ for compiler. | |
Assignment IV | |
Based on the assignment hand out this is a basic allocation | |
system that fits jobs based upon a first fit scheme. If a |
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
/data/apps/tweetaroo/shared/bundle/ruby/1.9.1/gems/twitter-text-1.4.6/lib/regex.rb:77:in `<class:Regex>': too many multibyte code ranges are specified: /[a-z_ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿЀЁЂЃЄЅІЇЈЉЊЋЌЍЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюяѐёђѓєѕіїјљњћќѝўџѠѡѢѣѤѥѦѧѨѩѪѫѬѭѮѯѰѱѲѳѴѵѶѷѸѹѺѻѼѽѾѿҀҁ҂҃҄҅҆҇҈҉ҊҋҌҍҎҏҐґҒғҔҕҖҗҘҙҚқҜҝҞҟҠҡҢңҤҥҦҧҨҩҪҫҬҭҮүҰұҲҳҴҵҶҷҸҹҺһҼҽҾҿӀӁӂӃӄӅӆӇӈӉӊӋӌӍӎӏӐӑӒӓӔӕӖӗӘәӚӛӜӝӞӟӠӡӢӣӤӥӦӧӨөӪӫӬӭӮӯӰӱӲӳӴӵӶӷӸӹӺӻӼӽӾӿԀԁԂԃԄԅԆԇԈԉԊԋԌԍԎԏԐԑԒԓԔԕԖԗԘԙԚԛԜԝԞԟԠԡԢԣԤԥԦԧᄀᄁᄂᄃᄄᄅᄆᄇᄈᄉᄊᄋᄌᄍᄎᄏᄐᄑᄒᄓᄔᄕᄖᄗᄘᄙᄚᄛᄜᄝᄞᄟᄠᄡᄢᄣᄤᄥᄦᄧᄨᄩᄪᄫᄬᄭᄮᄯᄰᄱᄲᄳᄴᄵᄶᄷᄸᄹᄺᄻᄼᄽᄾᄿᅀᅁᅂᅃᅄᅅᅆᅇᅈᅉᅊᅋᅌᅍᅎᅏᅐᅑᅒᅓᅔᅕᅖᅗᅘᅙᅚᅛᅜᅝᅞᅟㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣㅤㅥㅦㅧㅨㅩㅪㅫㅬㅭㅮㅯㅰㅱㅲㅳㅴㅵㅶㅷㅸㅹㅺㅻㅼㅽㅾㅿㆀㆁㆂㆃㆄㆅꥠꥡꥢꥣꥤꥥꥦꥧꥨꥩꥪꥫꥬꥭꥮꥯꥰꥱꥲꥳꥴꥵꥶꥷꥸꥹꥺꥻꥼ가각갂갃간갅갆갇갈갉갊갋갌갍갎갏감갑값갓갔강갖갗갘같갚갛개객갞갟갠갡갢갣갤갥갦갧갨갩갪갫 | |
]/i (RegexpError) | |
from /data/apps/tweetaroo/shared/bundle/ruby/1.9.1/gems/twitter-text-1.4.6/lib/regex.rb:7:in `<module:Twitter>' |
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
# Utility Group | |
# | |
# bundler | |
# jammit | |
# migrate | |
group "util" do | |
guard 'bundler' do | |
watch('Gemfile') | |
end |
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
(defun letter-freq (str) | |
(let ((ht (make-hash-table))) | |
(loop :for char :across str :do | |
(incf (gethash char ht 0))) | |
(maphash (lambda (k v) | |
(format t "~@C: ~D~%" k v)) | |
ht))) | |
(defun letter-freq-in-file (file) | |
(with-open-file (stream file) |
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
#!/bin/bash | |
# | |
# Linode setup script | |
# | |
# Set host name | |
# System Update && Upgrade | |
# RVM | |
# Ruby | |
# set host name |
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
class ApplicationController < ActionController::Base | |
protect_from_forgery | |
def current_search | |
Search.find(session[:search_id]) | |
end | |
def current_search? | |
session[:search_id].present? | |
end |
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
require 'rest-client' | |
API_KEY = "9lGH8iwbR9SKrVcKk" | |
END_POINT = "http://localhost:8080" | |
def make_url(path) | |
"#{END_POINT}#{path}" | |
end | |
def post(path, params) |
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
/deals.json?associations=people,notes,companies&per_page=1 | |
{ | |
"entries": [{ | |
"notes": { | |
"entries": [{ | |
"created_at": "2012/01/06 16:41:00 -0500", | |
"created_by_user": { | |
"full_name": "Benjamin Rhodes", | |
"id": 1 | |
}, |