Skip to content

Instantly share code, notes, and snippets.

View evdevdev's full-sized avatar

Evan Arnold evdevdev

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
EmberTodo.ItemController = Ember.ObjectController.extend({
completed: function(key, value) {
if (arguments.length > 1){
var item = this.get("content");
console.log("initial value");
console.log(item.get("completed"));
item.set("completed", value);
console.log("after value");
console.log(item.get("completed"));
console.log("is dirty?");
class BlackHoleStore
def logger
Rails.logger
end
def fetch( *args )
yield
end
def read( *args )
@evdevdev
evdevdev / matchers.rb
Created August 29, 2011 21:25
Matchers for sanitize-rails
module Sanitize::Rails
module RSpecHelpers
class << self
def setup(sanitization_couplets)
@@sanitization_couplets = sanitization_couplets
end
def sanitization_couplets
@@sanitization_couplets
end
end
# config/initializers/omniauth.rb
module OmniAuth
module Strategies
# tell OmniAuth to load our strategy
autoload :Pixelation, 'lib/pixelation_strategy'
end
end
Rails.application.config.middleware.use OmniAuth::Builder do
provider :twitter, "app_name", "secret"
have_header: checking for dlfcn.h... -------------------- yes
"i686-pc-linux-gnu-gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -O2 -march=pentium-m -pipe -mno-tls-direct-seg-refs -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -Wl,-R/usr/lib -L. -Wl,-O1,--hash-style=gnu -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby19 -lpthread -lrt -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
$ ruby extconf.rb
I, [2014-04-04T17:16:09.743900 #4384] INFO -- : [SKYLIGHT] fetching native ext; curr-platform=x86-linux; requested-arch=linux-x86; version=f2a0e15
I, [2014-04-04T17:16:09.744192 #4384] INFO -- : [SKYLIGHT] attempting to fetch from remote; uri=https://github.com/skylightio/skylight-rust/releases/download/f2a0e15/libskylight.f2a0e15.linux-x86.a.gz
I, [2014-04-04T17:16:09.790964 #4384] INFO -- : [SKYLIGHT] fetching native ext; uri=https://github.com/skylightio/skylight-rust/releases/download/f2a0e15/libskylight.f2a0e15.linux-x86.a.gz; redirected=https://s3.amazonaws.com/github-cloud/releases/14909411/499f1604-ba30-11e3-943b-5a4c47c6cce8.gz?response-content-disposition=attachment%3B%20filename%3Dlibskylight.f2a0e15.linux-x86.a.gz&AWSAccessKeyId=AKIAISTNZFOVBIJMK3TQ&Expires=1396657029&Signature=sJyAM8GGhMDdib99WXnSsrhNlsM%3D
I, [2014-04-04T17:16:09.791146 #4384] INFO -- : [SKYLIGHT] attempting to fetch from remote; uri=https://s3.amazonaws.com/github-cloud/releases/14909411/499f1604-ba30-11e3