This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.3p125 :056 > DateTime.now.strftime('%Z') | |
=> "-05:00" | |
1.9.3p125 :057 > Time.now.strftime('%Z') | |
=> "CDT" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.3p125 :056 > DateTime.now.strftime('%Z') | |
=> "-05:00" | |
1.9.3p125 :057 > Time.now.strftime('%Z') | |
=> "CDT" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Plan < ActiveRecord::Base | |
@@sub_classes = [] | |
cattr_reader :sub_classes | |
def self.inherited(child) | |
@@sub_classes << child | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
accept = <%= param[:accept] || accept %> | |
connect = <%= param[:connect] || connect %> | |
cert = <%= param['cert'] || cert %> | |
key = <%= param['key'] || key %> | |
CAfile = <%= param['cafile'] || cafile %> | |
CRLfile = <%= param['crlfile'] || crlfile %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.Store = DS.Store.extend({ | |
revision: 10, | |
adapter: DS.RESTAdapter.extend({ | |
bulkCommit: false, | |
find: function(store, type, id) { | |
if (id === 'singleton') { | |
var url = '/' + this.rootForType(type); | |
$.getJSON(url, function(data) { | |
data.id = id; | |
store.load(type, id, data); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir /tmp/curl-ca-bundle | |
cd /tmp/curl-ca-bundle | |
wget http://curl.haxx.se/download/curl-7.33.0.tar.bz2 | |
tar xzf curl-7.33.0.tar.bz2 | |
cd curl-7.33.0/lib/ | |
./mk-ca-bundle.pl | |
if [ ! -d /usr/share/curl/ ]; then | |
sudo mkdir -p /usr/share/curl/ | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
set expandtab | |
set sts=2 | |
set ts=2 | |
set sw=2 | |
set number | |
set incsearch | |
set hlsearch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
set expandtab | |
set sts=2 | |
set ts=2 | |
set sw=2 | |
set number | |
set incsearch | |
set hlsearch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hKRib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgLJQxfdb9iz11mKveuWkdnUuiOhs41ONmfcO//smhnBQKp3BheWxvYWTFAup7ImJvZHkiOnsia2V5Ijp7ImVsZGVzdF9raWQiOiIwMTIwMmM5N | |
DMxN2RkNmZkOGIzZDc1OThhYmRlYjk2OTFkOWQ0YmEyM2ExYjM4ZDRlMzY2N2RjM2JmZmVjOWExOWMxNDBhIiwiaG9zdCI6ImtleWJhc2UuaW8iLCJraWQiOiIwMTIwMmM5NDMxN2RkNmZkOGIzZDc1OThhYm | |
RlYjk2OTFkOWQ0YmEyM2ExYjM4ZDRlMzY2N2RjM2JmZmVjOWExOWMxNDBhIiwidWlkIjoiYzJlYTE3OWU5NjA0MzRhM2E0MWE0OTJiYmUyNjMzMTkiLCJ1c2VybmFtZSI6Im5jb2xnYW4ifSwic2VydmljZSI | |
6eyJuYW1lIjoiZ2l0aHViIiwidXNlcm5hbWU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