One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| // when T is any|unknown, Y is returned, otherwise N | |
| type IsAnyUnknown<T, Y, N> = unknown extends T ? Y : N; | |
| // when T is never, Y is returned, otherwise N | |
| type IsNever<T, Y = true, N = false> = [T] extends [never] ? Y : N; | |
| // when T is a tuple, Y is returned, otherwise N | |
| // valid tuples = [string], [string, boolean], | |
| // invalid tuples = [], string[], (string | number)[] |
| <!DOCTYPE html> | |
| <html data-ng-app="TestApp"> | |
| <head> | |
| <script src="http://code.angularjs.org/1.2.9/angular.js"></script> | |
| <script> | |
| angular.module('TestApp', []) | |
| .factory('beforeUnload', function ($rootScope, $window) { | |
| // Events are broadcast outside the Scope Lifecycle |
| # ported from http://www.gizma.com/easing/ | |
| # by http://th0ma5w.github.io | |
| # | |
| # untested :P | |
| import math | |
| linearTween = lambda t, b, c, d : c*t/d + b |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');Those suck for maintenance and they're ugly.