This file contains 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
// @fmsf303 <-- will send the gist later | |
// Cool stuff: | |
// Youtube: -> The Role of a Forward Deployed Software Engineer | |
// function sum(a, b) { | |
// return a + b; | |
// } | |
const sum = (a, b) => a + b; | |
const not = (v) => !v; |
This file contains 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
const sum = (a, b) => a + b; | |
const not = (value) => !value; | |
const isEven = (number) => number % 2 == 0; | |
console.log("sum(4, 2) == " + sum(4,2)); | |
console.log("not(true) == " + not(true)); |
This file contains 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
.relative-dead-center { | |
position: absolute; | |
top: 50%; | |
margin-left: 50%; | |
> * { | |
margin-top: -50%; | |
margin-left: -50%; | |
} | |
} |
This file contains 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
[10:12:54] Francisco Ferreira: http://robots.thoughtbot.com/post/2641409235/a-tmux-crash-course | |
[10:15:53] Andrzej Grzesik: set -g utf8 on | |
set -g status-utf8 on | |
set -g default-terminal "screen-256color" | |
setw -g automatic-rename | |
setw -g mode-mouse on | |
set -g mouse-select-pane on | |
set -g history-limit 30000 |
This file contains 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
Let's say I have a branch "my-feature" (which only exists locally on my PC!) that I want to merge now into "master": | |
- Make sure that my master branch is at the most recent version (i.e. fetch/pull master branch) | |
- Rebase branch "my-feature" on "master" (resolving conflicts where necessary) | |
- Switch to "master" branch (checkout) | |
- Merge the rebased "my-feature" branch into master, with option "--no-ff" (i.e. "git merge --no-ff my-feature") |
This file contains 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
// draw ticks | |
for (i = 0; i < axis.ticks.length; ++i) { | |
ctx.beginPath(); | |
var v = axis.ticks[i].v; | |
xoff = yoff = 0; | |
if (v < axis.min || v > axis.max | |
// skip those lying on the axes if we got a border |
This file contains 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
(function ( $ ) { | |
$.fn.update = function(){ | |
var newElements = $(this.selector),i; | |
for(i=0;i<newElements.length;i++){ | |
this[i] = newElements[i]; | |
} | |
for(;i<this.length;i++){ | |
this[i] = undefined; | |
} | |
this.length = newElements.length; |