start new:
tmux
start new with session name:
tmux new -s myname
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 |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
application: your-app-name | |
version: 1 | |
runtime: python | |
api_version: 1 | |
default_expiration: "30d" | |
handlers: | |
- url: /(.*\.(appcache|manifest)) | |
mime_type: text/cache-manifest |