Skip to content

Instantly share code, notes, and snippets.

@ErinCall
ErinCall / gist:8722020
Created January 30, 2014 23:04
Oh hey thanks
vagrant@precise64:~$ ghc --help
Usage:
ghc [command-line-options-and-input-files]
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 September 18, 2013 04:45
Source of the new codescouts index.html while attempting to integrate janrain capture
{
"screens" : {
"signIn": {
"source": "client",
"modal": true,
"screenConditionals": {
"if": {
"withOperator": "===",
"compare": "cookie:janrainLastAuthMethod",
"to": "socialSignin"
@ErinCall
ErinCall / gist:6516572
Created September 10, 2013 22:19
rake routes from devise
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
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 April 30, 2013 17:11
catsnap tests fail to tear down on postgresql 9.2
§ 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 January 18, 2013 21:53
ha ha ha what the heck
>> a, a, b = [1, 2, 3]
=> [1, 2, 3]
>> a
=> 2
>> _, _, b = [1, 2, 3]
=> [1, 2, 3]
>> _
=> [1, 2, 3]
>> a
=> 2
module SomeModule
@foo = 1234
def self.some_method
@foo
end
end
class SomeClass
def bar
§ echo "
.
.
.
"
.
.
.
>>> 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>