Skip to content

Instantly share code, notes, and snippets.

View bullrico's full-sized avatar

Bobby Santiago bullrico

View GitHub Profile
@bullrico
bullrico / breakpoints.scss
Last active March 26, 2017 18:00
Media breakpoints for Bourbon and Neat
// Columns
$mobile-portrait-columns: 4;
$mobile-landscape-columns: 4;
$tablet-portrait-columns: 8;
$tablet-landscape-columns: 8;
$desktop-columns: 12;
// Portrait
@bullrico
bullrico / functions.php
Created May 9, 2014 20:43 — forked from claudiosanches/functions.php
Wordpress + Gulp.js setup
<?php
/**
* Load site scripts.
*
* @since 1.0.0
*
* @return void
*/
function wpgulp_enqueue_scripts() {
@bullrico
bullrico / ie8-font-smoothing.scss
Created May 5, 2014 16:37
IE8 icon font smoothing
@font-face {
font-family: 'icomoon';
src:url('../../fonts/icomoon.eot?-acamik');
src:url('../../fonts/icomoon.eot?#iefix-acamik') format('embedded-opentype'),
url('../../fonts/icomoon.woff?-acamik') format('woff'),
url('../../fonts/icomoon.ttf?-acamik') format('truetype'),
url('../../fonts/icomoon.svg?-acamik#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
@bullrico
bullrico / webhook_stripe_processor.rb
Created May 3, 2014 14:32
Stripe Processor Webhook
class WebhookStripeProcessor
def process(id)
trusted = Stripe::Event.retrieve(id)
data = trusted.data.object
case trusted.type
when "plan.created"
SubscriptionPlan.create_or_update_from_stripe(data)
when "plan.updated"
SubscriptionPlan.create_or_update_from_stripe(data)
@bullrico
bullrico / app.coffee
Last active August 29, 2015 14:00
Gulp setup
`
//= require ./../bower_components/jquery/jquery.js
//= require ./../bower_components/modernizr/modernizr.js
//= require_tree ./common
`
#= require_tree ./modules
$ ->
new CustomBehavior()
@bullrico
bullrico / rails_resources.md
Created April 1, 2014 18:20 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • 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
@bullrico
bullrico / javascript_resources.md
Created April 1, 2014 18:20 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • 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
@bullrico
bullrico / 0_reuse_code.js
Created April 1, 2014 18:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# config/compass.rb
# Require any additional compass plugins here.
project_type = :rails
project_path = RAILS_ROOT if defined?(RAILS_ROOT)
css_dir = "public/stylesheets/compiled"
sass_dir = "app/stylesheets"
images_dir = "public/images"
javascripts_dir = "public/javascripts"
output_style = :compact
http_images_path = "/public/images"