Skip to content

Instantly share code, notes, and snippets.

Ian Young iangreenleaf

Block or report user

Report or block iangreenleaf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:897534a599ba652a5d3d
#= dump database to yaml for fixtures
# originated by elm200 <>
#== install
# move this file to RAILS_ROOT/lib/tasks/extract_fixtures.rake
namespace :db do
https = require 'https'
module.exports.request = ( options, success_handler, error_handler) ->
req_data = if then JSON.stringify else ""
options['headers'] ?= {}
options['headers']['Content-length'] = req_data.length
req = https.request options, (res) ->
data = ''
res.on 'data', (c) ->
data += c
You can’t perform that action at this time.