start new:
tmux
start new with session name:
tmux new -s myname
| /******************************************************************************* | |
| * Copyright (c) 2017 Nicola Del Gobbo | |
| * Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
| * use this file except in compliance with the License. You may obtain a copy of | |
| * the license at http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS | |
| * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY | |
| * IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | |
| * MERCHANTABLITY OR NON-INFRINGEMENT. |
| /* | |
| * IPVS: Source Consistent Hashing scheduling module | |
| * | |
| * Authors: Jonathan Lee <jonlee@dropbox.com> | |
| * | |
| * Changes: | |
| * | |
| */ | |
| #define KMSG_COMPONENT "IPVS" |
| module.exports = { | |
| /** | |
| * | |
| * Using raw socket.io functionality from a Sails.js controller | |
| * | |
| */ | |
| index: function (req,res) { |
| (function (undefined) { | |
| /** | |
| * moment.easter | |
| * Source: https://github.com/zaygraveyard/moment-easter | |
| * License: MIT | |
| */ | |
| moment.easter = function Easter20ops(year) { | |
| var a = (year / 100 | 0) * 1483 - (year / 400 | 0) * 2225 + 2613; | |
| var b = ((year % 19 * 3510 + (a / 25 | 0) * 319) / 330 | 0) % 29; | |
| var c = 148 - b - ((year * 5 / 4 | 0) + a - b) % 7; |