あまり深く理解してないので識者のツッコミ大歓迎
取り敢えず最低限だけ
# 補完を有効にする| Here is a list of scopes to use in Sublime Text 2 snippets - | |
| ActionScript: source.actionscript.2 | |
| AppleScript: source.applescript | |
| ASP: source.asp | |
| Batch FIle: source.dosbatch | |
| C#: source.cs | |
| C++: source.c++ | |
| Clojure: source.clojure | |
| CoffeeScript: source.coffee |
ccache is a compiler cache. It speeds up recompilation of C/C++ code by caching previous compilations and detecting when the same compilation is being done again. This often results in a significant speedup in common compilations, especially when switching between branches. This page is about using ccache on Mac with clang and ninja build system. If you want to use Xcode, please refer to the old CCacheMac page.
In order to use ccache with clang, you need to use the current git HEAD, since the most recent version (3.1.9) doesn't contain the patch needed for using chromium style plugin.
To install ccache with [homebrew](http://mxcl.
| #!/usr/bin/env ruby | |
| # Remove all gems EXCEPT defaults :) | |
| `gem list -d`.split(/\n\n^(?=\w)/).each do |data| | |
| match = data.match(/(?<name>([^\s]+)) \((?<versions>.*)\)/) | |
| name = match[:name] | |
| versions = match[:versions].split(', ') | |
| if match = data.match(/^.*\(([\d\.]*),? ?default\): .*$/) | |
| next if match[1].empty? # it's the only version if this match is empty |
| function! s:quickrun_config() | |
| return unite#sources#quickrun_config#quickrun_config_all() | |
| endfunction | |
| " quickrun-runner {{{ | |
| " vimscript_all {{{ | |
| let s:runner = {} |
Some scripts/configurations that greatly improve tmux/vim workflows. The shell scripts target zsh but should be adaptable without much effort for other unix shells.
Features:
'vim-tmux-move.zsh', '.vimrc' and '.tmux.conf' cooperate so you can move transparently between tmux panes and vim windows using ALT + (arrow keys or jkhl). It was based on this gist
| package main | |
| /* | |
| Go のインタフェース設計 | |
| 参考 | |
| https://code.google.com/p/go-wiki/wiki/GoForCPPProgrammers | |
| http://jordanorelli.tumblr.com/post/32665860244/how-to-use-interfaces-in-go | |
| http://research.swtch.com/interfaces | |
| http://www.airs.com/blog/archives/277 |
This is pretty specific to my setup but the idea can be adapted to work with pretty much anything.
Go has a flag package which makes parsing command line arguments really easy.
package main| #!/bin/bash | |
| # Copyright (c) 2010, 2013 Yu-Jie Lin | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| # this software and associated documentation files (the "Software"), to deal in | |
| # the Software without restriction, including without limitation the rights to | |
| # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
| # of the Software, and to permit persons to whom the Software is furnished to do | |
| # so, subject to the following conditions: | |
| # |