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
// graph | |
git log -10 --oneline --graph origin/develop | |
// diff | |
git log -p |
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
sed -i '' 's/golang:1.12.1/golang:1.12.4/' (ack -l golang:1.12.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
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 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
package aedatastore | |
import ( | |
"testing" | |
"time" | |
"google.golang.org/appengine" | |
"google.golang.org/appengine/aetest" | |
) |
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
import krakenex | |
import fx | |
import time | |
import urllib.request | |
import urllib.parse | |
import json | |
from pprint import pprint | |
##Kraken パブリックapiのキー |
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
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 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
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 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
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); |
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
/** | |
@license WTFPL | |
@author @sou | |
This library dispatches touch events from an element to another on the different document through iframe. | |
NOTE: | |
This library only suports Mobile Safari as each browsers have different specifications for touch event creation. | |
You might expand _dispatch method if you want to deal with other browsers. |
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
let bin = System.IO.File.ReadAllBytes "../../test" | |
let mutable i = 0 | |
let show len asm = | |
printf "%08X " i | |
for j = 0 to len - 1 do | |
printf "%02X" bin.[i + j] | |
for j = len to 5 do | |
printf " " | |
printfn "%s" asm | |
i <- i + len |
NewerOlder