start new:
tmux
start new with session name:
tmux new -s myname
| // @license http://opensource.org/licenses/MIT | |
| // copyright Paul Irish 2015 | |
| // Date.now() is supported everywhere except IE8. For IE8 we use the Date.now polyfill | |
| // github.com/Financial-Times/polyfill-service/blob/master/polyfills/Date.now/polyfill.js | |
| // as Safari 6 doesn't have support for NavigationTiming, we use a Date.now() timestamp for relative values | |
| // if you want values similar to what you'd get with real perf.now, place this towards the head of the page | |
| // but in reality, you're just getting the delta between now() calls, so it's not terribly important where it's placed |
| { | |
| "cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}"], | |
| "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
| "working_dir": "${file_path}", | |
| "selector": "source.c, source.c++", | |
| "variants": | |
| [ | |
| { | |
| "name": "Run", |
| var app = angular.module('app', ['ngResource']); | |
| app.config(function($locationProvider, $routeProvider) { | |
| // $locationProvider.html5Mode(true); | |
| $routeProvider | |
| .when('/', { templateUrl: 'partials/index', controller: 'ctrl' }) | |
| .when('/about', { templateUrl: 'partials/about', controller: 'ctrl' }) | |
| .otherwise({redirectTo:'/'}); | |
| }); |
| // window.saveAs | |
| // Shims the saveAs method, using saveBlob in IE10. | |
| // And for when Chrome and FireFox get round to implementing saveAs we have their vendor prefixes ready. | |
| // But otherwise this creates a object URL resource and opens it on an anchor tag which contains the "download" attribute (Chrome) | |
| // ... or opens it in a new tab (FireFox) | |
| // @author Andrew Dodson | |
| // @copyright MIT, BSD. Free to clone, modify and distribute for commercial and personal use. | |
| window.saveAs || ( window.saveAs = (window.navigator.msSaveBlob ? function(b,n){ return window.navigator.msSaveBlob(b,n); } : false) || window.webkitSaveAs || window.mozSaveAs || window.msSaveAs || (function(){ |
| // http://obvcode.blogspot.com/2007/11/easiest-way-to-check-ie-version-with.html | |
| var Browser = { | |
| version: function() { | |
| var version = 999; // we assume a sane browser | |
| if (navigator.appVersion.indexOf("MSIE") != -1) { | |
| // bah, IE again, lets downgrade version number | |
| version = parseFloat(navigator.appVersion.split("MSIE")[1]); | |
| } | |
| return version; |
| /** | |
| * @ NAME: Cross-browser TextStorage | |
| * @ DESC: text storage solution for your pages | |
| * @ COPY: sofish, http://sofish.de | |
| */ | |
| typeof window.localStorage == 'undefined' && ~function () { | |
| var localStorage = window.localStorage = {}, | |
| prefix = 'data-userdata', | |
| doc = document, |
| if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () { | |
| var Storage = function (type) { | |
| function createCookie(name, value, days) { | |
| var date, expires; | |
| if (days) { | |
| date = new Date(); | |
| date.setTime(date.getTime()+(days*24*60*60*1000)); | |
| expires = "; expires="+date.toGMTString(); |