Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
iTerm2 http://www.iterm2.com/
APP_PATH = "/var/www/tld.appname" | |
rails_env = ENV["RAILS_ENV"] || "development" | |
# 2 workers and 1 master | |
worker_processes 2 | |
working_directory APP_PATH + "/current" # available in 0.94.0+ | |
# Load rails+github.git into the master before forking workers |
#!/bin/sh | |
# we assume that we use system wide rvm installation (in /usr/local/rvm) | |
# and our application is deployed to /var/www/tld.appname directory | |
RVM_ENV="ruby-1.9.3-p0@gemset" | |
APP_DIR="tld.appname" | |
# load rvm | |
source /usr/local/rvm/environments/$RVM_ENV |
Ok, I geeked out, and this is probably more information than you need. But it completely answers the question. Sorry. ☺
Locally, I'm at this commit:
$ git show
commit d6cd1e2bd19e03a81132a23b2025920577f84e37
Author: jnthn <[email protected]>
Date: Sun Apr 15 16:35:03 2012 +0200
When I added FIRST/NEXT/LAST, it was idiomatic but not quite so fast. This makes it faster. Another little bit of masak++'s program.
# coding: utf-8 | |
# | |
# Encode any codepoint outside the ASCII printable range to an HTML character | |
# reference (https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_reference_overview). | |
def encode(string) | |
string.each_codepoint.inject("") do |buffer, cp| | |
cp = "&#x#{cp.to_s(16)};" unless cp >= 0x20 && cp <= 0x7E | |
buffer << cp | |
end | |
end |
module ActiveRecord | |
Base.singleton_methods.each do |m| | |
Base.class_eval <<-EOS | |
class << self | |
puts "redefining #{m}" | |
define_method "#{m}_with_introspection" do |*args| | |
puts "#{m}" | |
send(:"#{m}_without_introspection", *args) | |
end |
This post is based on my blog post: http://blog.xdite.net/posts/2012/07/09/3-way-to-speedup-asset-pipeline/
Here are my three tips for speedup asset pipeline precompile process:
- Capistrano deployment speedup
- Use @import carefully.
- don’t require .scss & .coffee for no reason
class Amplifr.BaseView extends Backbone.View | |
constructor: -> | |
@createSelectors() | |
super | |
els: {} | |
createSelectors: -> | |
for name, selector of @els |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.