As configured in my dotfiles.
start new:
tmux
start new with session name:
/* | |
* This work is free. You can redistribute it and/or modify it under the | |
* terms of the Do What The Fuck You Want To Public License, Version 2, | |
* as published by Sam Hocevar. See the COPYING file for more details. | |
*/ | |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Date.prototype.getWeek = function () { | |
var onejan = new Date(this.getFullYear(), 0, 1); | |
return Math.ceil((((this - onejan) / 86400000) + onejan.getDay() + 1) / 7); | |
}; | |
var myDate = new Date("2001-02-02"); | |
myDate.getWeek(); //=> 5 |
// Adapted from https://stackoverflow.com/questions/34848505/how-to-make-a-loading-animation-in-console-application-written-in-javascript-or | |
/** | |
* Create and display a loader in the console. | |
* | |
* @param {string} [text=""] Text to display after loader | |
* @param {array.<string>} [chars=["⠙", "⠘", "⠰", "⠴", "⠤", "⠦", "⠆", "⠃", "⠋", "⠉"]] | |
* Array of characters representing loader steps | |
* @param {number} [delay=100] Delay in ms between loader steps | |
* @example |