a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
| #!/bin/sh | |
| set -e | |
| # Example init script, this can be used with nginx, too, | |
| # since nginx and unicorn accept the same signals | |
| # Feel free to change any of the following variables for your app: | |
| TIMEOUT=${TIMEOUT-60} | |
| APP_ROOT=/path/to/your/app/current | |
| PID=$APP_ROOT/tmp/pids/unicorn.pid | |
| ENVIRONMENT=production |
| require 'spec_helper' | |
| describe FeaturePool do | |
| it "creates a new instance given valid attributes" do | |
| Fabricate :feature_pool | |
| end | |
| it "is not valid without a name" do | |
| Fabricate.build(:feature_pool, :name => "").should_not be_valid | |
| end |
| .../test/fixtures/test/scoped_translation.erb | 1 + | |
| actionpack/test/fixtures/test/translation.erb | 1 + | |
| .../test/connections/jdbc_jdbcderby/connection.rb | 18 ++++++++ | |
| .../test/connections/jdbc_jdbch2/connection.rb | 18 ++++++++ | |
| .../test/connections/jdbc_jdbchsqldb/connection.rb | 18 ++++++++ | |
| .../test/connections/jdbc_jdbcmysql/connection.rb | 26 +++++++++++ | |
| .../connections/jdbc_jdbcpostgresql/connection.rb | 26 +++++++++++ | |
| .../connections/jdbc_jdbcsqlite3/connection.rb | 25 ++++++++++ | |
| .../test/connections/native_db2/connection.rb | 25 ++++++++++ | |
| .../test/connections/native_firebird/connection.rb | 26 +++++++++++ |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Blue Component</key> | |
| <real>0.19370138645172119</real> | |
| <key>Green Component</key> | |
| <real>0.15575926005840302</real> |
| #!nginx -p . -c cocproxy.nginx.conf | |
| error_log /dev/stderr debug; | |
| daemon off; | |
| events { | |
| worker_connections 48; | |
| } | |
| http { |
| class ApplicationController < ActionController::Base | |
| ... | |
| # FORCE to implement content_for in controller | |
| def view_context | |
| super.tap do |view| | |
| (@_content_for || {}).each do |name,content| | |
| view.content_for name, content | |
| end | |
| end | |
| end |
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
| # example location parts of nginx.conf | |
| # add your own AWS keys, server lines etc, and set your aws domains, paths | |
| http { | |
| # you will need the luacrypto in the cpath, download from http://luacrypto.luaforge.net/ | |
| lua_package_cpath "/home/justin/lua/luacrypto-0.2.0/src/l?.so.0.2.0;;"; | |
| server { | |
| listen 80; |
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
| "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>untitled</title> | |
| <meta name="generator" content="TextMate http://macromates.com/"> | |
| <meta name="author" content="Alexandre Testu"> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript" charset="utf-8"></script> |
| class Array | |
| def self.toy(n=10, &block) | |
| block_given? ? Array.new(n,&block) : Array.new(n) {|i| i+1} | |
| end | |
| end | |
| class Hash | |
| def self.toy(n=10) | |
| Hash[Array.toy(n).zip(Array.toy(n){|c| (96+(c+1)).chr})] | |
| end |