Library | Disk Space | Lines of Code | Boot Time | Runtime Deps | Develop Deps |
---|---|---|---|---|---|
fog | 28.0M | 133469 | 0.693 | 9 | 11 |
aws-sdk | 4.4M | 80017 | 0.098 | 3 | 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Even simpler than reaching into Paperclip, use the processing hooks: | |
class Project | |
before_post_process do |image| | |
false # halts processing | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gc.c b/gc.c | |
--- a/gc.c | |
+++ b/gc.c | |
@@ -77,6 +77,41 @@ void *alloca (); | |
#ifndef GC_MALLOC_LIMIT | |
#define GC_MALLOC_LIMIT 8000000 | |
#endif | |
+#define HEAP_MIN_SLOTS 10000 | |
+#define FREE_MIN 4096 | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/application.rb | |
module MyApp | |
class Application < Rails::Application | |
require 'devise/authenticatable' | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is the original input, we want it hidden | |
.velge-original { | |
display: none; | |
} | |
// This is the tag / input container | |
.velge { | |
// Tags list | |
ul { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Backbone ||= {} | |
# This takes the place of the standard form / simple_form helpers in | |
# automatically displaying form errors when the errors have been sent back as | |
# json. | |
Backbone.form_errors = (selector, errors) -> | |
$form = $(selector) | |
clear_field = ($wrapper) -> | |
$wrapper.removeClass('field_with_errors') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fixing Lion libpng issues | |
# Until this issue https://github.com/mxcl/homebrew/issues/4468 is resolved | |
# installing Lion screws up ImageMagick's png support. # The following steps | |
# are a hacky work around to get things going again. `identify: memory | |
# allocation failed` is the error # message you'll receive before applying the | |
# fix. | |
brew uninstall imagemagick | |
cd /usr/X11R6/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :gemcutter | |
gem 'airbrake', '~> 3.0.9' | |
gem 'braintree', '~> 2.14.0' | |
gem 'carrierwave', '~> 0.6.0.beta', git: 'git://github.com/jnicklas/carrierwave.git', ref: '789a8b952764a21e3ff837a628d8c15558cc7ad1' | |
gem 'dalli', '~> 1.1.5' | |
gem 'devise', '~> 2.0.4' | |
gem 'draper', '~> 0.10.0' | |
gem 'ejs', '~> 1.0.0' | |
gem 'fog', '~> 1.1.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.mobile-preview | |
.mobile-screen.define-specs | |
-# specs markup including | |
.mobile-preview | |
.mobile-screen.write-instructions | |
-# specs markup including | |
.mobile-preview | |
.mobile-screen.design-mission |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'faraday' | |
require 'json' | |
connection = Faraday.new | |
headers = { 'Content-Type' => 'application/json', 'Accepts' => 'application/json', 'Authorization' => 'token TOKEN' } | |
likes = connection.get do |req| | |
req.url 'http://localhost:3000/api/likes' | |
req.headers = headers | |
end |
OlderNewer