- Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
- rabl - General ruby templating with json, bson, xml, plist and msgpack support
- Thin - Very fast and lightweight Ruby web server
- Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
- SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
- Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
- [factory_girl](h
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
-com.apple.CoreData.SQLDebug 1 |
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
=ROUND((B1-A1)*96,0)/96*24 |
- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
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
#add to Gemfile | |
gem 's3able', path: '/Users/ericmcconkie/Desktop/s3uploadengine/s3able' | |
gem 'aws-sdk' | |
#mount to routes | |
mount S3able::Engine => '/images', :as => 's3image' #you can see all uploads at http://localhost:3000/images | |
get 'products/:id/image'=>'s3able/s3images#new', :s3imageable=>"Product" #a place to upload an image and attach to your model | |
#config | |
rake s3able:s3config secret="{{AWS_SECRET}}" key="{{AWS_KEY}}" bucket="{{aws_bucket}}" |
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
# Polymorphic Model | |
class Attachment < ActiveRecord::Base | |
belongs_to :attachable, :polymorphic => true | |
mount_uploader :image, ImageUploader | |
end | |
# Has Many Model | |
require 'carrierwave/orm/activerecord' | |
class Exercise < ActiveRecord::Base | |
has_many :images , :as=> :attachable, :dependent => :destroy ,:class_name => "Attachment" |
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
<% #place this in header %> | |
<% content_for :javascript_includes do %> | |
<%= javascript_include_tag "forms.js" %> | |
<% 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
//assumes FontAwesome.ttf is a resource and added to plist | |
NSInteger ti = (NSInteger)self.quizDuration ; | |
NSInteger seconds = ti % 60; | |
NSInteger minutes = (ti / 60) % 60; | |
NSInteger hours = (ti / 3600); | |
NSString *TTLE = [NSString stringWithFormat:@"%02li:%02li:%02li ", (long)hours, (long)minutes, (long)seconds]; | |
//f01d = play | |
//f04c = pause |
I hereby claim:
- I am mcconkiee on github.
- I am mcconkie (https://keybase.io/mcconkie) on keybase.
- I have a public key whose fingerprint is 9B1A CB2C 61DF 3B54 7528 CDB8 F538 A7E1 EEB3 880D
To claim this, I am signing this object:
OlderNewer