start new:
tmux
start new with session name:
tmux new -s myname
| // | |
| // HTTPLoader.h | |
| // | |
| #import <Foundation/Foundation.h> | |
| typedef void(^ HTTPLoaderCompletionBlock)(NSData *data, NSError *erorr); | |
| @interface HTTPLoader : NSObject |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <classpath> | |
| <classpathentry kind="src" path="src/main/java"/> | |
| <classpathentry kind="src" path="src/test/java"/> | |
| <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | |
| <classpathentry kind="lib" path="/usr/share/java/commons-logging-1.1.1.jar"/> | |
| <classpathentry kind="lib" path="/usr/share/java/junit4.jar"/> | |
| <classpathentry kind="output" path="bin"/> | |
| </classpath> |
| scriptencoding utf-8 | |
| let url = 'http://www.tepco.co.jp' | |
| let indexj = '/cc/press/index-j.html' | |
| let res = webapi#http#get(url.indexj) | |
| if res.header[0] != 'HTTP/1.1 200 OK' | |
| echo 'Oops! Something wrong.' | |
| endif | |
| let data = iconv(res.content, 'utf-8', &encoding) | |
| let dom = webapi#html#parse(data) |
| #include <stdio.h> | |
| int | |
| main(int argc, char* argv[]) { | |
| int n; | |
| for (n = 0; n < argc; n++) { | |
| printf("%s\n", argv[n]); | |
| } | |
| return 0; | |
| } |
| diff --git a/autoload/quickrun/module.vim b/autoload/quickrun/module.vim | |
| index e81fab5..ef45604 100644 | |
| --- a/autoload/quickrun/module.vim | |
| +++ b/autoload/quickrun/module.vim | |
| @@ -33,6 +33,9 @@ function! s:templates.runner.run(commands, input, session) | |
| throw 'quickrun: A runner should implements run()' | |
| endfunction | |
| function! s:templates.runner.shellescape(str) | |
| + if a:str !~ '\n' | |
| + return a:str |
| # Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
| # that enables you to choose a character from a menu of options. If you are on Lion | |
| # try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
| # for input. | |
| # | |
| # It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
| # it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode, | |
| # as it means you cannot press and hold h/j/k/l to move through your file. You have | |
| # to repeatedly press the keys to navigate. |
| require 'octokit' | |
| require 'csv' | |
| require 'date' | |
| # Github credentials to access your private project | |
| USERNAME="USER_NAME" | |
| PASSWORD="SEKRIT" | |
| # Project you want to export issues from | |
| USER="REPO_OWNER" | |
| PROJECT="REPO_NAME" |
| package controllers | |
| import lib._ | |
| import play.api.mvc._ | |
| import play.api.libs.json._ | |
| object Auth extends Controller { | |
| val GITHUB = new OAuth2[GithubUser](OAuth2Settings( |
| # ~/.gitconfig from @boblet | |
| # initially based on http://rails.wincent.com/wiki/Git_quickstart | |
| [core] | |
| excludesfile = /Users/oli/.gitignore | |
| legacyheaders = false # >git 1.5 | |
| quotepath = false | |
| # http://stackoverflow.com/questions/136178/git-diff-handling-long-lines | |
| pager = less -r | |
| # if ↑ doesn’t work, try: pager = less -+$LESS -FRX |