// 一覧
$routes->connect('/images', [
'controller' => 'Images',
'action' => 'index',
'[method]' => 'GET'
]);
// 画像アップロード
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ObserverExtensions | |
{ | |
/// <summary> | |
/// periodの期間内にcount回数の値が通過した時、その時の最新の値を出す | |
/// </summary> | |
/// <typeparam name="T"></typeparam> | |
/// <param name="self"></param> | |
/// <param name="period"></param> | |
/// <param name="count"></param> | |
/// <param name="removeArrivedCache"></param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! neocomplete#sources#php#helper#get_internal_function_list() " {{{ | |
" 省略 | |
try | |
let l:code = '$functions = get_defined_functions();' | |
- let l:code .= 'echo json_encode($functions["internal"]);' | |
+ let l:code .= 'echo json_encode($functions[\"internal\"]);' | |
- let l:cmd = 'php -r ''' . l:code . '''' | |
+ let l:cmd = 'php -r "' . l:code . '"' | |
let l:function_list = eval(system(l:cmd)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HaskellはHaskell Platformでインストール | |
- stackだとghc-modを入れるところでこける | |
Kaoriya版Vimは内部エンコーディングがcp932なので、utf8にする | |
- /switches/catalog/utf-8.vim を /switches/enabled へコピー | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[color] | |
ui = auto | |
[alias] | |
ad = add | |
st = status | |
df = diff | |
cm = commit | |
co = checkout | |
br = branch | |
psh = push origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# これらのコマンド実行時 | |
$ rbenv install 2.2.4 | |
$ gem update | |
# rebaseallで再配置をする | |
$ find ~ -name '*.so' > /tmp/rebase.lst | |
$ find ~ -name '*.dll' >> /tmp/rebase.lst | |
# https://www.drupal.org/node/2191571 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 環境変数 | |
SHELLを/bin/zshへ | |
# .zshrc | |
# titleにパス | |
precmd() { eval 'echo -ne "\033]0;$PWD\007"' } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! rustfmt#Format() | |
let l:curw = winsaveview() | |
let l:tmpname = expand("%:p:h") . "/." . expand("%:p:t") . ".rustfmt" | |
- call writefile(getline(1, '$'), l:tmpname) | |
+ " keep file format | |
+ :execute ":w " . l:tmpname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
公式も役立つ | |
https://github.com/nodejs/node-gyp | |
1. Visual C++ Build Toolsをデフォルトオプションのままインストール | |
2. Python2.7をインストール | |
3. | |
``` | |
$ npm config set msvs_version 2015 | |
$ npm config set python d:\path\to\python27\python.exe | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cygwinの場合 | |
$ ls -la $(find . -type f) | sort -nr -k5 | awk -F' ' '{printf("%5s: %s\n",$5, $9)}' | head -10 |
OlderNewer