Skip to content

Instantly share code, notes, and snippets.

View gist:8722020
vagrant@precise64:~$ ghc --help
Usage:
ghc [command-line-options-and-input-files]
View gist:7107577
Request Method:POST
Status Code:200 OK
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Content-Length:507
Content-Type:application/x-www-form-urlencoded
@ErinCall
ErinCall / flows.json
Created Sep 18, 2013
Source of the new codescouts index.html while attempting to integrate janrain capture
View flows.json
{
"screens" : {
"signIn": {
"source": "client",
"modal": true,
"screenConditionals": {
"if": {
"withOperator": "===",
"compare": "cookie:janrainLastAuthMethod",
"to": "socialSignin"
@ErinCall
ErinCall / gist:6516572
Created Sep 10, 2013
rake routes from devise
View gist:6516572
new_user_session GET /users/sign_in(.:format) devise/sessions#new
user_session POST /users/sign_in(.:format) devise/sessions#create
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
user_password POST /users/password(.:format) devise/passwords#create
new_user_password GET /users/password/new(.:format) devise/passwords#new
edit_user_password GET /users/password/edit(.:format) devise/passwords#edit
PATCH /users/password(.:format) devise/passwords#update
PUT /users/password(.:format) devise/passwords#update
cancel_user_registration GET /users/cancel(.:format) registrations#cancel
user_registration POST /users(.:format) registrations#create
View gist:5946426
var auth, querystring, sha1, sign, strftime, test_auth;
strftime = require('strftime');
querystring = require('querystring');
sha1 = require('sha1');
module.exports = function(robot) {
return robot.respond(/test/, function(msg) {
@ErinCall
ErinCall / gist:5490199
Created Apr 30, 2013
catsnap tests fail to tear down on postgresql 9.2
View gist:5490199
§ nosetests
..........................................................................................................................E
======================================================================
ERROR: test suite for <module 'tests' from '/Users/andrew/code/catsnap/tests/__init__.pyc'>
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/andrew/Envs/catsnap/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 227, in run
self.tearDown()
File "/Users/andrew/Envs/catsnap/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 350, in tearDown
self.teardownContext(ancestor)
@ErinCall
ErinCall / gist:4568976
Created Jan 18, 2013
ha ha ha what the heck
View gist:4568976
>> a, a, b = [1, 2, 3]
=> [1, 2, 3]
>> a
=> 2
>> _, _, b = [1, 2, 3]
=> [1, 2, 3]
>> _
=> [1, 2, 3]
>> a
=> 2
View gist:3790189
module SomeModule
@foo = 1234
def self.some_method
@foo
end
end
class SomeClass
def bar
View gist:3734233
>>> def do_something():
... print 'here'
... for x in xrange(0, 8):
... yield x
...
>>> do_something()
<generator object do_something at 0x100428aa0>
>>> foo = do_something()
>>> foo
<generator object do_something at 0x100428b40>