start new:
tmux
start new with session name:
tmux new -s myname
| function interval(duration, fn){ | |
| var _this = this | |
| this.baseline = undefined | |
| this.run = function(){ | |
| if(_this.baseline === undefined){ | |
| _this.baseline = new Date().getTime() | |
| } | |
| fn() | |
| var end = new Date().getTime() |
| ; Citing http://www.emacswiki.org/emacs/WritingRussianWithDvorak: | |
| ; "As you know, all the cyrillic InputMethods work in a way that assumes your keyboard is in QWERTY layout. However, | |
| ; if you’re using dvorak keyboard layout, you may discover that, for example, cyrillic-jcuken input method can’t work ; properly since all the ascii symbols on your keyboard are mapped to appropriate cyrillic ones according to the | |
| ; qwerty->jcuken translation rules. | |
| ; Thus, one of the possible solutions is to define your own input method which translate symbols according to | |
| ; dvorak->jcuken rules." | |
| ; | |
| ; Это такой input method, только для Colemak. | |
| ; Нужно положить этот файл в ~/.emacs.d и вставить в ~/.emacs строки: | |
| ; (load-file "~/.emacs.d/russian-colemak.el") |
| /** | |
| * Converts an RGB color value to HSL. Conversion formula | |
| * adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
| * Assumes r, g, and b are contained in the set [0, 255] and | |
| * returns h, s, and l in the set [0, 1]. | |
| * | |
| * @param Number r The red color value | |
| * @param Number g The green color value | |
| * @param Number b The blue color value | |
| * @return Array The HSL representation |
| 'use strict' | |
| // see: https://github.com/nodejs/node/pull/6157 | |
| var startTime = process.hrtime() | |
| var startUsage = process.cpuUsage() | |
| // spin the CPU for 500 milliseconds | |
| var now = Date.now() | |
| while (Date.now() - now < 500) |
Find the Discord channel in which you would like to send commits and other updates
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
| export class HighResolutionTimer { | |
| private totalTicks = 0; | |
| private timer: number | undefined; | |
| private startTime: number | undefined; | |
| private currentTime: number | undefined; | |
| private deltaTime = 0; | |
| constructor(public duration: number, public callback: (timer: HighResolutionTimer) => void) { | |
| } |
| :root { | |
| /* Standard Curves */ | |
| --LINEAR : cubic-bezier(0.250, 0.250, 0.750, 0.750); | |
| --EASE : cubic-bezier(0.250, 0.100, 0.250, 1.000); | |
| --EASE_IN : cubic-bezier(0.420, 0.000, 1.000, 1.000); | |
| --EASE_OUT : cubic-bezier(0.000, 0.000, 0.580, 1.000); | |
| --EASE_IN_OUT : cubic-bezier(0.420, 0.000, 0.580, 1.000); | |
| /* Ease IN curves */ |