β => YOU MUST FOLLOW THIS RULE.
β => YOU MUST NEVER, EVER DO THIS.
β β Variable names should NEVER be acronims.
| <html> | |
| <head> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
| <script src="http://simonmenke.me/chains.js/build/jquery.stacks.min.js" type="text/javascript" charset="utf-8"></script> | |
| <script type="text/javascript" charset="utf-8"> | |
| (function(exports){ | |
| exports.state_machine = function(def){ | |
| /* | |
| * Curry a JS function. | |
| * | |
| * Note: | |
| * Curry doesn't change `this`. | |
| * | |
| * Example: | |
| * function f(a, b, c){ | |
| * return [a, b, c]; | |
| * }; |
| class A | |
| def foo | |
| puts "bar #{self.class}" | |
| end | |
| end | |
| class B < A | |
| def foo | |
| puts "baz #{self.class}" | |
| end |
| (in /Users/Simon/Projects/json_select/t) | |
| FF | |
| Failures: | |
| 1) Parser should not swallow the first object after parsing a number(integer) | |
| Failure/Error: ] | |
| expected: ["foo", "bar", 42, "baz", "bax"] | |
| got: ["foo", "bar", 42, "bax"] (using ==) | |
| Diff: |
| SCM_THEME_PROMPT_PREFIX="" | |
| SCM_THEME_PROMPT_SUFFIX="" | |
| RVM_THEME_PROMPT_PREFIX="[" | |
| RVM_THEME_PROMPT_SUFFIX="]" | |
| SCM_THEME_PROMPT_DIRTY=' ${bold_red}β${normal}' | |
| SCM_THEME_PROMPT_CLEAN=' ${bold_green}β${normal}' | |
| SCM_GIT_CHAR='${bold_green}Β±${normal}' | |
| SCM_SVN_CHAR='${bold_cyan}β${normal}' |
| description = file.description.clone | |
| @glossary.each do |w| | |
| terms = w.name.split(',') | |
| terms.each do |term| | |
| term = Regexp.escape(term.strip).gsub('\ ', '\s+') | |
| description.gsub!(/(\b#{term}\b)/i, "<acronym rel=\"#{w.id}\">\\1</acronym>") | |
| end | |
| end |
| if Rails.env.staging? | |
| FailtaleReporter.enabled = false | |
| end |
| package postgres | |
| import ( | |
| "database/sql" | |
| "database/sql/driver" | |
| "fmt" | |
| "github.com/lib/pq" | |
| "strings" | |
| ) |
| var ModuleA = require('module-a'); | |
| var ModuleB = require('module-b'); | |
| var A = new ModuleA("A"), | |
| B = new ModuleB("B"); | |
| A.foo() // => "foo" | |
| A.bar() // => [error] | |
| A.getName() // => "A" |