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
# install imagemagick on OSX | |
$ sudo port install ImageMagick | |
$ pecl download imagick | |
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update | |
downloading imagick-2.3.0.tgz ... | |
Starting to download imagick-2.3.0.tgz (86,976 bytes) | |
.....................done: 86,976 bytes | |
File /Users/tumf/tmp/imagick-2.3.0.tgz downloaded | |
/Users/tumf/tmp% | |
$ tar xvzf imagick-2.3.0.tgz |
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
// graph | |
git log -10 --oneline --graph origin/develop | |
// diff | |
git log -p |
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
sed -i '' 's/golang:1.12.1/golang:1.12.4/' (ack -l golang:1.12.1) |
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
gcloud spanner databases execute-sql dbname --instance=instance-name --project=project-name --format=json --sql=(cat query.sql | ruby -e 'STDIN.select{|l| ! l.match /^[\s\t]*--/ }.each{|l| print l.chomp, " "}') | jq -r '.rows[] | map(.[0]) | map("\"" + . + "\"") | join(",")' > result.csv |
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
package aedatastore | |
import ( | |
"testing" | |
"time" | |
"google.golang.org/appengine" | |
"google.golang.org/appengine/aetest" | |
) |
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
import krakenex | |
import fx | |
import time | |
import urllib.request | |
import urllib.parse | |
import json | |
from pprint import pprint | |
##Kraken パブリックapiのキー |
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
My dream is to live a quiet daily life with my partner and my cat. | |
Living in a small but comfortable house on the seaside, where I can see beautiful sunset and morning light every day, | |
enjoy diving on a sunny day, and reading books or studying food and drinks when it rains. | |
It's kind of my dream. | |
And I want to be full-filled, as well as I wanna have a happy life. | |
Full-filled, | |
I gotta being full-filled when I gotta a-ha or eureka moment on my work. | |
It comes from the moment when I feel the impact that I can solve some problems, improve something essentially, make something better, especially the place where we live. I love to improve a daily life of others. |
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
set-option -g mouse on | |
# ** Wheel scroll in pane | |
unbind -T root WheelUpPane | |
unbind -T root WheelDownPane | |
# Do mouse wheel-up to enter copy mode and do page-up | |
# https://groups.google.com/d/msg/tmux-users/XTrSVUR15Zk/3iyJLMyQ7PwJ | |
# Below binding did not work | |
# bind -T root WheelUpPane if -Ft= '#{mouse_any_flag}' 'if -Ft= "#{pane_in_mode}" "copy-mode -u" "send-keys -M"' 'copy-mode -u' | |
# Below works and allows the WheelUpPane binding in emacs-copy table to be effective |
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
$.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 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
var ust = (function(t) { return [t.getMonth() +1,"/",t.getDate(),'/',t.getHours()].join(''); })(new Date()); | |
var syms = ['🐈','🍣','🍺','🐈','🍣','🍺','🍷','🍮','🐄','🍶','⚽️','🍕']; | |
var label = ust + (_(5).times(function() { return syms[(_.random(0, syms.length))]; })).join(' '); | |
variables.set("label", label); |
NewerOlder