Skip to content

Instantly share code, notes, and snippets.

View nerdyworm's full-sized avatar
:shipit:
distracted like an adhd squirrel

Benjamin Rhodes nerdyworm

:shipit:
distracted like an adhd squirrel
View GitHub Profile
@nerdyworm
nerdyworm / gist:992565
Created May 26, 2011 04:45
Heroku 1.9.2, OpenID, Devise, PG, Rails 3.1.0.rc1
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&ltmpl=default&ltmplcache=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&ltmpl=default&ltmplcache=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-
/**
@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
@nerdyworm
nerdyworm / gist:1049684
Created June 27, 2011 19:59
twitter text error
/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>'
@nerdyworm
nerdyworm / Gaurdfile
Created September 27, 2011 17:44
Guard file change
# Utility Group
#
# bundler
# jammit
# migrate
group "util" do
guard 'bundler' do
watch('Gemfile')
end
@nerdyworm
nerdyworm / blah.lisp
Created November 5, 2011 21:37
things all of them.
(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)
#!/bin/bash
#
# Linode setup script
#
# Set host name
# System Update && Upgrade
# RVM
# Ruby
# set host name
class ApplicationController < ActionController::Base
protect_from_forgery
def current_search
Search.find(session[:search_id])
end
def current_search?
session[:search_id].present?
end
require 'rest-client'
API_KEY = "9lGH8iwbR9SKrVcKk"
END_POINT = "http://localhost:8080"
def make_url(path)
"#{END_POINT}#{path}"
end
def post(path, params)
/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
},
/deals.json?associations=people,notes,companies&per_page=1
[{
"notes": [{
"created_at": "2012/01/06 16:41:00 -0500",
"created_by_user": {
"full_name": "Benjamin Rhodes",
"id": 1
},
"updated_at": "2012/01/06 17:03:43 -0500",
"note_category": {