Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ | |
$('body').removeClass("force-desktop"); | |
} else { | |
$('.chzn-select').chosen(); | |
} |
zh-CN: | |
admin: | |
home: | |
name: "首页" | |
pagination: | |
previous: "« 上一页" | |
next: "下一页 »" | |
truncate: "…" | |
misc: | |
filter_date_format: "mm/dd/yy" # a combination of 'dd', 'mm' and 'yy' with any delimiter. No other interpolation will be done! |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ | |
@media only screen | |
and (min-width : 321px) { |
source 'http://rubygems.org' | |
# source 'http://ruby.taobao.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.0.1' | |
# | |
# Use postgresql as the database for Active Record | |
gem 'pg' | |
# for heroku deployment |
source 'http://rubygems.org' | |
# source 'http://ruby.taobao.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.0.1' | |
# | |
# Use postgresql as the database for Active Record | |
gem 'pg' | |
# for heroku deployment |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
svg.selectAll('.views_dot') | |
.data(data) | |
.enter() | |
.append('circle') | |
.attr("transform", "translate(10, 0)") | |
.attr('class', 'views_dot') | |
.attr('fill-opacity', 0) | |
.attr('cx', (d)-> | |
x( new Date(d.date) ) | |
) |
# don't generate RSpec tests for views and helpers by default | |
Rails.application.config.generators do |g| | |
g.view_specs false | |
g.helper_specs false | |
g.stylesheets false | |
g.helper false | |
g.javascripts false | |
g.template_engine :haml | |
g.form_builder :simple_form | |
g.test_framework :rspec, fixture: true, view_specs: false |
namespace :development do | |
desc "copies the config/*.example.yml files be the usable config/*.yml versions" | |
task :configure do | |
Dir.glob('config/*.yml.example').each do |filename| | |
sh "cp #{filename} #{filename.gsub('.example', '')}" | |
end | |
end | |
task :configure_all_but_database do | |
(Dir.glob('config/*.yml.example') - ["config/database.yml.example"]).each do |filename| | |
sh "cp #{filename} #{filename.gsub('.example', '')}" |
Start Jenkins:
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
Stop Jenkins:
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist