Skip to content

Instantly share code, notes, and snippets.

View jherdman's full-sized avatar

James Herdman jherdman

View GitHub Profile
Promise = Em.RSVP.Promise
MyModel = DS.Model.extend
someRequest: ->
deferred = $.post('/some/end/point')
Promise.cast(deferred).then this.reload.bind(this)
marshal data too short (ActionView::Template::Error)
/home/ubuntu/eternal-sledgehammer/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/core_ext/marshal.rb:6:in `load'
/home/ubuntu/eternal-sledgehammer/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/core_ext/marshal.rb:6:in `load_with_autoloading'
/home/ubuntu/eternal-sledgehammer/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/cache/file_store.rb:19:in `block in []'
/home/ubuntu/eternal-sledgehammer/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/cache/file_store.rb:19:in `open'
/home/ubuntu/eternal-sledgehammer/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/cache/file_store.rb:19:in `open'
/home/ubuntu/eternal-sledgehammer/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/cache/file_store.rb:19:in `[]'
/home/ubuntu/eternal-sledgehammer/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/caching.rb:14:in `cache_get'
markdown-js [4f020ba...] % grunt --verbose
Initializing
Command-line options: --verbose
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Reading package.json...OK
Parsing package.json...OK
Initializing config...OK
end of file reached (ActionView::Template::Error)
/home/ubuntu/eternal-sledgehammer/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.3/lib/active_support/core_ext/marshal.rb:6:in `load'
/home/ubuntu/eternal-sledgehammer/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.3/lib/active_support/core_ext/marshal.rb:6:in `load_with_autoloading'
/home/ubuntu/eternal-sledgehammer/vendor/bundle/ruby/2.1.0/gems/sprockets-2.10.1/lib/sprockets/cache/file_store.rb:19:in `block in []'
/home/ubuntu/eternal-sledgehammer/vendor/bundle/ruby/2.1.0/gems/sprockets-2.10.1/lib/sprockets/cache/file_store.rb:19:in `open'
/home/ubuntu/eternal-sledgehammer/vendor/bundle/ruby/2.1.0/gems/sprockets-2.10.1/lib/sprockets/cache/file_store.rb:19:in `open'
/home/ubuntu/eternal-sledgehammer/vendor/bundle/ruby/2.1.0/gems/sprockets-2.10.1/lib/sprockets/cache/file_store.rb:19:in `[]'
/home/ubuntu/eternal-sledgehammer/vendor/bundle/ruby/2.1.0/gems/sprockets-2.10.1/lib/sprockets/caching.rb:14:in `cache_get'
// In some route...
actions: {
deleteModel: function (model) {
model.deleteRecord();
model.save().then(
function () {
console.log("I succeeded... but this isn't the point of this gist...");
},
function () {
shared_example 'accessing as an unauthorized user' do |request_proc|
it 'rejects their request' do
instance_exec(&request_proc)
expect(response.status).to eq(401)
end
end
describe 'GET #index' do
include_example 'access as an unauthorized user', -> { get :index }
end
var DumbController = Em.ObjectController.extend({
myArray: []
});
var attr = DS.attr,
Profile;
/**
* Representation of the client
*/
Profile = DS.Model.extend({
firstName: attr('string'),
lastName: attr('string'),
<!DOCTYPE html>
<html>
<head>
<title>Fitness Buddy</title>
<!-- for more details visit: https://github.com/yeoman/grunt-usemin -->
<!-- build:css(.) assets/vendor.min.css -->
<link rel="stylesheet" href="/vendor/bootstrap/dist/css/bootstrap.min.css">
<!-- endbuild -->
ERROR: Could not find a valid gem 'nokogiri' (>= 0), here is why:
Unable to download data from https://rubygems.org - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz)