create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
(defun copy-current-line-position-to-clipboard () | |
"Copy current line in file to clipboard as '</path/to/file>:<line-number>'" | |
(interactive) | |
(let ((path-with-line-number | |
(concat (buffer-file-name) ":" (number-to-string (line-number-at-pos))))) | |
(x-select-text path-with-line-number) | |
(message (concat path-with-line-number " copied to clipboard")))) | |
(define-key global-map (kbd "M-l") 'copy-current-line-position-to-clipboard) |
;; Open the file name being pointed in an other window or dired | |
;; reference: http://kouzuka.blogspot.com/2011/02/emacsurlfinder.html | |
(defun my-directory-or-file-p (path) | |
"return t if path is a directory, | |
return nil if path is a file" | |
(car (file-attributes path))) | |
(defun my-open-emacs-at-point () | |
"open the file with opening emacs" | |
(interactive) |
# browserify, minify, and gzip Waterline: | |
$ browserify lib/waterline.js -s Waterline | uglifyjs | gzip -c -f > browser/waterline.min.js.gz |
Mini projects by Maxime Euzière (xem), subzey, Martin Kleppe (aemkei), Mathieu Henri (p01), Litterallylara, Tommy Hodgins (innovati), Veu(beke), Anders Kaare, Keith Clark, Addy Osmani, bburky, rlauck, cmoreau, maettig, thiemowmde, ilesinge, adlq, solinca, xen_the,...
(For more info and other projects, visit http://xem.github.io)
(Official Slack room: http://jsgolf.club / join us on http://register.jsgolf.club)
// [B](f: (A) ⇒ [B]): [B] ; Although the types in the arrays aren't strict (: | |
Array.prototype.flatMap = function(lambda) { | |
return Array.prototype.concat.apply([], this.map(lambda)); | |
}; |
/*global React, flyd, R*/ | |
(function () { | |
'use strict'; | |
var Player = function (control) { | |
return function (players) { | |
var player = {}; | |
var possibleNewPosition = flyd.stream([control.move], function () { | |
return (player.position() || 0) + control.move(); | |
}); | |
var canMove = flyd.stream([possibleNewPosition], function () { |