Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
[alias] | |
s = status |
NaN # This is a "thing" | |
NaN == NaN # => false | |
NaN === NaN # => false |
import Ember from 'ember'; | |
// Ember 1.10 | |
export default Ember.Route.extend({ | |
//---fire in order on route enter--- | |
beforeModel(transition) { | |
//empty by default |
# The Abstract Factory | |
class Waiter | |
def initialize meal_order | |
@meal_order = meal_order | |
end | |
def serve! | |
@meal_order.utensil | |
@meal_order.delicacy | |
end |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
<?php | |
namespace app\commands; | |
use yii; | |
class MigrationReverserController extends \yii\console\Controller | |
{ | |
public function actionRun($schema = null) | |
{ |
<?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; |
# 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")) |
// 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); | |
}); |
# 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 |