Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
How do I fix this depreciation? | |
NOTE: Gem.latest_load_paths is deprecated with no replacement. It will be removed on or after 2011-10-01. | |
Gem.latest_load_paths called from /Users/Yasky/.rvm/gems/ruby-1.9.2-p0/gems/spork-0.8.4/lib/spork.rb:112 | |
I am running Spork with RSpec. |
@mixin grid_container { | |
margin: auto; | |
width: 960px; | |
// Tablet Layout: 768px. | |
@media only screen and (min-width: 768px) and (max-width: 991px) { | |
width: 764px; | |
} | |
// Mobile Layout: 320px. | |
@media only screen and (max-width: 767px) { |
# These are the steps I took to integrate Compass with Rails 3.1 and the asset pipeline. | |
# 1. Add Compass to your Gemfile under the assets group | |
# Gemfile | |
group :assets do | |
gem 'compass' | |
# alongside other gems needed | |
end | |
# 2. Configure the load path for SASS |
// An Unobtrusive Javascript (UJS) driver based on explicit behavior definitions. Just | |
// put a "data-behaviors" attribute on your view elements, and then assign callbacks | |
// for those named behaviors via Behaviors.add. | |
var Behaviors = { | |
add: function(trigger, behavior, handler) { | |
document.observe(trigger, function(event) { | |
var element = event.findElement("*[data-behaviors~=" + behavior + "]"); | |
if (element) handler(element, event); | |
}); |
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril. | |
# It is recommended to regenerate this file in the future when you upgrade to a | |
# newer version of cucumber-rails. Consider adding your own code to a new file | |
# instead of editing this one. Cucumber will automatically load all features/**/*.rb | |
# files. | |
require 'uri' | |
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths")) |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
class Layout | |
{ | |
// The CodeIgniter instance | |
static var $ci; | |
// Name of out layout file | |
var $layout; |
<?php | |
namespace app\commands; | |
use yii; | |
class MigrationReverserController extends \yii\console\Controller | |
{ | |
public function actionRun($schema = null) | |
{ |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
# The Abstract Factory | |
class Waiter | |
def initialize meal_order | |
@meal_order = meal_order | |
end | |
def serve! | |
@meal_order.utensil | |
@meal_order.delicacy | |
end |
import Ember from 'ember'; | |
// Ember 1.10 | |
export default Ember.Route.extend({ | |
//---fire in order on route enter--- | |
beforeModel(transition) { | |
//empty by default |