Skip to content

Instantly share code, notes, and snippets.

View butchmarshall's full-sized avatar

Butch Marshall butchmarshall

View GitHub Profile
import connectToStores from 'alt-utils/lib/connectToStores';
import React from 'react';
import uniqueId from 'lodash.uniqueid'
import _ from 'lodash';
import Immutable from 'immutable';
import form_serialize from 'form-serialize';
import deparam from 'node-jquery-deparam';
import HomeContainerStore from './store';
import HomeContainerActions from './action';
function myFunc() {
// Complaining there is no jQUery
return jQuery.$(...);
}
@butchmarshall
butchmarshall / lib-my_gem-my_class-version.rb
Created January 2, 2016 03:56
This will throw: TypeError: superclass mismatch for class MyClass
module MyGem
class MyClass
VERSION = "0.0.1"
end
end
@butchmarshall
butchmarshall / .rb
Created January 2, 2016 03:42
ruby: TypeError: superclass mismatch for class MyClass
class InheritMe
end
module A
class MyClass
VERSION = "0.0.1"
end
end
module A
class MyClass
def start
trap('TERM') do
Thread.new { say 'Exiting...' }
stop
end
trap('INT') do
Thread.new { say 'Exiting...' }
stop
source 'http://rubygems.org'
gem 'rails', '3.0.7'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2', '~> 0.2.7'
# Use unicorn as the web server
butch@ubuntu-desktop:~/Workspace/CoylePagagingGroup/refinerycms/cpgprintsource$ sudo gem1.9.2 list --local
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.7, 3.0.5, 3.0.4, 3.0.3)
actionpack (3.0.7, 3.0.6, 3.0.5, 3.0.4, 3.0.3)
active_shipping (0.9.12)
activemerchant (1.12.0)
activemodel (3.0.7, 3.0.6, 3.0.5, 3.0.4, 3.0.3)
butch@ubuntu-desktop:~/Workspace/XXX/refinerycms/XXX$ rake -f "/home/butch/Workspace/CoylePagagingGroup/refinerycms/XXX/Rakefile" db:create
rake aborted!
invalid byte sequence in UTF-8
/usr/local/lib/ruby-1.9.2-p136/lib/ruby/1.9.1/rake.rb:2084:in `glob'
/usr/local/lib/ruby-1.9.2-p136/lib/ruby/1.9.1/rake.rb:2084:in `block in have_rakefile'
/usr/local/lib/ruby-1.9.2-p136/lib/ruby/1.9.1/rake.rb:2082:in `each'
/usr/local/lib/ruby-1.9.2-p136/lib/ruby/1.9.1/rake.rb:2082:in `have_rakefile'
/usr/local/lib/ruby-1.9.2-p136/lib/ruby/1.9.1/rake.rb:2345:in `find_rakefile_location'
/usr/local/lib/ruby-1.9.2-p136/lib/ruby/1.9.1/rake.rb:2358:in `raw_load_rakefile'
/usr/local/lib/ruby-1.9.2-p136/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'