Skip to content

Instantly share code, notes, and snippets.

View magoz's full-sized avatar

Magoz magoz

View GitHub Profile
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@kylerush
kylerush / full.js
Created January 8, 2012 21:23
JavaScript epoch time convert number prototype
Number.prototype.timeLeft = function(){
var days = Math.floor(this / 86400);
var hours = Math.floor((this - (days * 86400)) / 3600);
var minutes = Math.floor((this - ((hours * 3600) + (days * 86400))) / 60);
var seconds = this - ((days * 86400) + (hours * 3600) + (minutes * 60));
@elidupuis
elidupuis / handlebars-helpers.js
Last active December 7, 2021 02:24
Simple Handlebars.js helpers
/*! ******************************
Handlebars helpers
*******************************/
// debug helper
// usage: {{debug}} or {{debug someValue}}
// from: @commondream (http://thinkvitamin.com/code/handlebars-js-part-3-tips-and-tricks/)
Handlebars.registerHelper("debug", function(optionalValue) {
console.log("Current Context");
console.log("====================");