start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/sh | |
# | |
# install required packages | |
# | |
apt-get install apache2 git-core gitweb | |
# | |
# create folder to host the repositories | |
# |
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
## dropboxの共有フォルダでチャットするツールです | |
## drochan -> 発言表示 | |
## drochan ほむほむ -> 「ほむほむ」と発言 | |
DIR = "#{ENV['HOME']}/Dropbox/drochan" | |
user = ENV['USER'] | |
# user = "your-name" |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
struct node | |
{ | |
int x, y; | |
node *l, *r; | |
int cnt; | |
node(int _x, int _y) : x(_x), y(y), l(0), r(0), cnt(1) {} | |
}; | |
// ... ... все дальнейшие функции - члены класса treap |
/** | |
Victoria Wu | |
CS 352 | |
Treap | |
An implementation of a binary search tree that incorporates properties of a heap, | |
preventing an overly imbalanced tree. | |
*/ |
{ | |
"scope": "source.js -string -comment -constant", | |
"completions": [ | |
{ "trigger": "customtrigger.allowBlank\tBoolean", "contents": "allowBlank: $1${2:,}" }, | |
{ "trigger": "customtrigger.allowOnlyWhitespace\tBoolean", "contents": "allowOnlyWhitespace: $1${2:,}" }, | |
{ "trigger": "customtrigger.blankText\tString", "contents": "blankText: '$1'${2:,}" }, | |
{ "trigger": "customtrigger.checkChangeBuffer\tNumber", "contents": "checkChangeBuffer: $1${2:,}" }, | |
{ "trigger": "customtrigger.checkChangeEvents\tString[]", "contents": "checkChangeEvents: ['$1']${2:,}" }, | |
{ "trigger": "customtrigger.dirtyCls\tString", "contents": "dirtyCls: '$1'${2:,}" }, |
-server | |
-Xms2048m | |
-Xmx2048m | |
-XX:NewSize=512m | |
-XX:MaxNewSize=512m | |
-XX:PermSize=512m | |
-XX:MaxPermSize=512m | |
-XX:+UseParNewGC | |
-XX:ParallelGCThreads=4 | |
-XX:MaxTenuringThreshold=1 |