c:\dev\go-sandbox\jsonstore>go test -bench . -count 10
goos: windows
goarch: amd64
BenchmarkJsonstore-4 2000 897051 ns/op
BenchmarkJsonstore-4 2000 885050 ns/op
BenchmarkJsonstore-4 2000 1131564 ns/op
BenchmarkJsonstore-4 2000 839048 ns/op
BenchmarkJsonstore-4 2000 919052 ns/op
BenchmarkJsonstore-4 2000 838547 ns/op
Modules のリクエストルーティング, TaskQueue のTask 実行モジュールとバージョンについて (2015.06)
リクエストのルーティングについて:
https://cloud.google.com/appengine/docs/python/modules/routing
- URLによるモジュール・バージョン(・インスタンス)指定
- URL で module, version (, instance) を指定できる.
- URL に module, version (, instance) を併記した指定は、dispatch.yaml の指定より優先される.
This file contains hidden or 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
--- Actions --- | |
$Copy <M-C> | |
$Cut <M-X> <S-Del> | |
$Delete <Del> <BS> <M-BS> | |
$LRU | |
$Paste <M-V> | |
$Redo <M-S-Z> <A-S-BS> | |
$SearchWeb <A-S-G> | |
$SelectAll <M-A> | |
$Undo <M-Z> |
例えば、buttonの左辺をcontainer viewから20ポイント離す場合
This file contains hidden or 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
use strict; | |
use warnings; | |
use Plack::Request; | |
use Plack::MIME; | |
use Plack::App::Directory; | |
use FindBin; | |
my $java_bin = `which java` =~ s/[\n\r]//gr | |
or die 'Install Java :('; |
This file contains hidden or 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
_jsx() | |
{ | |
local cur prev | |
COMPREPLY=() | |
cur=${COMP_WORDS[COMP_CWORD]} | |
prev=${COMP_WORDS[COMP_CWORD-1]} | |
JSX_OPTIONS='\ | |
--add-search-path\ | |
--executable\ | |
--run\ |
This file contains hidden or 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 ($) { | |
$.fn.disableSelection = function () { | |
return this.each(function () { | |
$(this).attr('unselectable', 'on') | |
.css({'-moz-user-select':'none', | |
'-o-user-select':'none', | |
'-khtml-user-select':'none', | |
'-webkit-user-select':'none', | |
'-ms-user-select':'none', | |
'user-select':'none'}) |
This file contains hidden or 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
$.when( | |
sushi_roll(), | |
dispatch() | |
).done(function() { | |
console.log('accepted:', arguments[0], arguments[1]); | |
}); | |
var n = 0; | |
function dispatch() { | |
return $.Deferred(function(dispached) { |
This file contains hidden or 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
#!/usr/bin/env ruby | |
confbase = 'git-ssh-create' | |
init_command = 'git --bare init' | |
server = `git config --global #{confbase}.server`.chomp | |
if server.empty? | |
warn "Please set git config server." | |
warn " git config --global #{confbase}.server '[username@]yourserver.example.com'" | |
exit 1 |
This file contains hidden or 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
#!/usr/bin/env ruby | |
file = ENV['TM_FILEPATH'] | |
if file =~ /\.t$/ | |
local = ENV['LOCAL_PROJECT_ROOT'] | |
remote = ENV['REMOTE_PROJECT_ROOT'] | |
path = file.sub local, remote | |
else | |
local = ENV['TEST_LOCAL_DIR'] |
NewerOlder