| Offsets | Time of Change | Abbr | Zone | Candidates |
|---|---|---|---|---|
| -11:00 | ??? | Pacific/Pago_Pago | ||
| -11:00 | NUT | Pacific/Niue | ||
| -11:00 | BST | Pacific/Pago_Pago | Pacific/Midway Pacific/Samoa | |
| -10:00 -09:00 | Mar 08 03:00 Nov 01 01:00 | HDT HST | America/Adak | America/Atka |
| -10:00 | ??? | Pacific/Honolulu | ||
| -10:00 | TAHT | Pacific/Tahiti |
| # Provides the ability to unscope associations, this solves problems described in | |
| # http://stackoverflow.com/questions/1540645/how-to-disable-default-scope-for-a-belongs-to/11012633#11012633 | |
| # | |
| # Examples | |
| # | |
| # class Document < ActiveRecord::Base | |
| # default_scope where(deleted: false) | |
| # end | |
| # | |
| # class Comment < ActiveRecord::Base |
| ruby '1.9.3' | |
| source 'https://rubygems.org' | |
| gem 'rails', '3.2.13' | |
| group :assets do | |
| gem 'sass-rails', '~> 3.2.3' | |
| gem 'coffee-rails', '~> 3.2.1' | |
| gem 'uglifier', '>= 1.0.3' | |
| end |
| namespace :deploy do | |
| task :setup_solr_data_dir do | |
| run "mkdir -p #{shared_path}/solr/data" | |
| end | |
| end | |
| namespace :solr do | |
| desc "start solr" | |
| task :start, :roles => :app, :except => { :no_release => true } do | |
| run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec sunspot-solr start --port=8983 --data-directory=#{shared_path}/solr/data --pid-dir=#{shared_path}/pids" |
| import Ember from 'ember'; | |
| export { dirtyHasMany, dirtyBelongsTo, dirtyMixin }; | |
| var dirty = 'relationshipIsDirty'; | |
| function dirtyMixin (obj) { | |
| var args = Object.keys(obj); | |
| var comp = Ember.computed; | |
| args.push('isDirty'); | |
| obj[dirty] = comp.any.apply(comp, args); |
| @-moz-document domain(proxyme.percy.io) { | |
| * { | |
| -moz-transition: none !important; | |
| transition: none !important; | |
| -moz-animation: none !important; | |
| animation: none !important; | |
| } | |
| } |
Manual super: Alternative Design where subclass constructors do not automatically call superclass constructors
This Gist presents a new design of class-based object construction in ES6 that does not require use of the two-phase @@create protocol.
One of the characteristics of this proposal is that subclass constructors must explicitly super invoke their superclass's constructor if they wish to use the base class' object allocation and initialization logic.
An alternative version of this design automatically invokes the base constructor in most situations.
| # NullStorage provider for CarrierWave for use in tests. Doesn't actually | |
| # upload or store files but allows test to pass as if files were stored and | |
| # the use of fixtures. | |
| class NullStorage | |
| attr_reader :uploader | |
| def initialize(uploader) | |
| @uploader = uploader | |
| end |
⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso