I hereby claim:
- I am fredv on github.
- I am frederik (https://keybase.io/frederik) on keybase.
- I have a public key whose fingerprint is 61C1 D425 AEE0 42F6 5C4D 3060 038B 40D5 2F87 1B99
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# Spawns a rescue worker configured according to local hostname. | |
# See the 'case'-block at the end of this file. | |
# | |
# make sure we have our environment | |
source ~/.bash_profile |
Collected Ideas on OOP and Software Design as of now | |
Just One Idea (Jeff Casimir et. al.) | |
Application - ONE value proposition (monolithic is crappy) | |
Module - collection of ideas | |
Class - one domain | |
Method - one purpose | |
Line - one thought | |
Clarity over brevity: (Jeff Casimir et. al.) |
module SolrInstrumentation | |
class LogSubscriber < ActiveSupport::LogSubscriber | |
def query(event) | |
self.class.runtime += event.duration | |
return unless logger.debug? | |
name = '%s (%.1fms)' % ["SOLR Query", event.duration] | |
# produces: 'query: "foo" OR "bar", rows: 3, ...' | |
query = event.payload[:query].map{ |k, v| "#{k}: #{color(v, BOLD, true)}" }.join(', ') |
I hereby claim:
To claim this, I am signing this object:
import ( | |
"github.com/dynport/urknall" | |
"github.com/dynport/urknall/cmd" | |
) | |
func helloWorld (p urknall.Package) { | |
p.AddCommands("run", cmd.Shell("echo hello world")); | |
} | |
func main() { |
PUT http://localhost:9200/_template/txt | |
{ | |
"template": "index_dev", | |
"order": 0, | |
"mappings": { | |
"_default_": { | |
"dynamic_templates": [ | |
{ | |
"template_txt": { | |
"mapping": { |
filetype plugin off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'fatih/vim-go' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'rking/ag.vim' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'kien/ctrlp.vim' | |
Plugin 'Rip-Rip/clang_complete' |
#ChrisJohnson/tmux-MacOSX-pasteboard | |
#set-option -g default-command "reattach-to-user-namespace -l zsh" | |
set -g repeat-time 1000 | |
set -s escape-time 1 | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set-option -g prefix C-a | |
set-option -g history-limit 10000 |