- Cache by expiration time.
- Conditional Get by versioning.
Tells the client and intermediary cache what to cache.
HTTP 1.0:
{ | |
"color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme", | |
"detect_indentation": false, | |
"ensure_newline_at_eof_on_save": true, | |
"font_face": "Menlo", | |
"font_size": 11.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], |
export BASH_COMMON_PATH=~/.bash_common | |
source $BASH_COMMON_PATH/bashrc | |
export PROMPT_COLOR=32 | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # rvm | |
# [ -f ~/.bundler-exec.sh ] && source ~/.bundler-exec.sh | |
alias gs="git status" | |
alias e="subl" |
class User < ActiveRecord::Base | |
after_create :deadlock_on_first_try | |
def deadlock_on_first_try | |
raise ActiveRecord::StatementInvalid.new("Lock wait timeout exceeded") if @deadlocked.nil? | |
ensure | |
@deadlocked = true | |
end | |
end |
# set_trace_func proc { |event,file,line,id,binding,classname| printf "%8s %s:%-2d %10s %8s\n", event, file, line, id, classname } |
UIScreen.mainScreen | |
sessions | |
app = UIApplication.sharedApplication | |
delegate = app.delegate | |
repl(delegate) | |
quit | |
/* #44 */ | |
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func Sqrt(x float64) float64 { | |
z := float64(1) |
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
type Fetcher interface { | |
// Fetch returns the body of URL and | |
// a slice of URLs found on that page. |
require 'digest/md5' | |
require 'fileutils' | |
require 'leveldb' | |
# no_of_keys = 20_000_000 | |
no_of_keys = 20_000_000 | |
# 1.upto(no_of_keys) do |i| | |
# digest = Digest::MD5.hexdigest(i.to_s) | |
# head = digest[0..1] | |
# key = digest[2..-1] |
--no-doc | |
--no-abc | |
--style-glob {app,lib}/**/*.rb | |
--require spec/cane_lint_spec.rb | |
--check CaneLintSpec | |
--lint-spec-glob {app,lib}/**/*.rb |