start new:
tmux
start new with session name:
tmux new -s myname
From a comment on StackOverflow:
Vendoring is the moving of all 3rd party items such as plugins, gems and even rails into the /vendor directory. This is one method for ensuring that all files are deployed to the production server the same as the dev environment.
The activity described above, on its own, is fine. It merely describes the deployment location for various resources in an application.
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
-- data structure for RGBA, RGB & CMYK colors | |
data Color = RGBA Float Float Float Float | |
| RGB Float Float Float | |
| CMYK Float Float Float Float | |
deriving (Eq, Ord, Show) | |
-- list of colors | |
colors = [ RGBA 0.1 0.1 0.5 0.2 | |
, RGBA 1 1 0 0.9 | |
, RGB 0.5 0.5 0 |
{- | |
DPLL from the textbook: | |
function DPLL(clauses, symbols, model ) returns true or false | |
if every clause in clauses is true in model then return true | |
if some clause in clauses is false in model then return false | |
P , value ← FIND-PURE-SYMBOL (symbols, clauses, model ) | |
if P is non-null then return DPLL(clauses, symbols – P , model ∪ {P =value}) | |
P, value ← FIND-UNIT-CLAUSE (clauses, model) | |
if P is non-null then return DPLL(clauses, symbols – P , model ∪ {P =value}) |
Redmonk Jun 2016 | |
http://redmonk.com/sogrady/2016/07/20/language-rankings-6-16/ | |
Tiobe October 2016 | |
http://www.tiobe.com/tiobe_index | |
PYPL Aug 2016 | |
http://pypl.github.io/PYPL.html | |
Programming Language Popularity Chart |
When your values are immutable you are often forced to use a declarative style. This means you express what a value is, rather than imperatively building it up.
For example:
results = []
for x in values:
results.append(func(x))
This common style of imperative code may seem simple at first, but when you read it, you as the reader must mentally construct a state machine and step by step reason about the state of mutation on each line.