start new:
tmux
start new with session name:
tmux new -s myname
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/SublimeLinter/darkula (SL).tmTheme", | |
"font_options": "subpixel_antialias", | |
"font_size": 14, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"hot_exit": false, | |
"icon_file_type_enable": true, | |
"ignored_packages": |
$(function() { | |
var ajaxLoading = false; | |
$( "#search" ).keypress(function() { | |
var postData = { | |
"suggest" : { | |
"text" : $("#search").val(), | |
"completion" : { | |
"field" : "suggest" |
{ | |
"from": 0, | |
"query": { | |
"function_score": { | |
"functions": [ | |
{ | |
"weight": 1.5, | |
"filter": { | |
"term": { | |
"_type": "store" |
set -g status on | |
set -g status-keys vi | |
set -g history-limit 1000000 | |
# Setup 'v' to begin selection as in Vim | |
bind-key -t vi-copy v begin-selection | |
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" | |
# Set prefix to Ctrl-Space | |
unbind C-b |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Drop Events</title> | |
<style media="screen"> | |
.dropzone{ | |
width:300px; | |
height:100px; | |
line-height:100px; |
var gulp = require('gulp'), | |
sys = require('sys'), | |
exec = require('child_process').exec; | |
gulp.task('phpunit', function() { | |
exec('phpunit', function(error, stdout) { | |
sys.puts(stdout); | |
}); | |
}); | |
import requests | |
import logging | |
import httplib | |
httplib.HTTPConnection.debuglevel = 1 | |
logging.basicConfig() | |
logging.getLogger().setLevel(logging.DEBUG) | |
requests_log = logging.getLogger("requests.packages.urllib3") | |
requests_log.setLevel(logging.DEBUG) |
import collections | |
def json_object_hook(d): | |
return namedtuple('X', d.keys())(*d.values()) | |
def json2obj(data): | |
return json.loads(data, object_hook=json_object_hook) | |
data = '{"name": "whatever","phone_number": {"home": "aaaa1","mobile": "aaaa2"}}' | |
obj = json2obj(data) |
Download and install xelatex from http://www.texts.io/support/0001/ | |
Based on the exact version etc add the executable on path | |
export PATH="$PATH:/usr/local/texlive/2016basic/bin/x86_64-darwin" | |
install all the following | |
sudo tlmgr update --self | |
sudo tlmgr install collectbox | |
sudo tlmgr install ucs | |
sudo tlmgr install adjustbox |