Skip to content

Instantly share code, notes, and snippets.

View high5's full-sized avatar
🎯
Focusing

Hiroki K high5

🎯
Focusing
View GitHub Profile
@high5
high5 / gist:d5f60caa6457783eed4d57f999de3da5
Created June 9, 2019 04:20
Golang製の「ttimer」をシェルスクリプトでwrapしてより便利に使う。ポモドローぽくデフォルト25分の設定
minute="25"
if [ $# = 1 ]; then
ttimer $1
exit 1
fi
ttimer $minute
[
{
"header1": 0,
"header2": 0,
"header3": 0,
"header4": "0",
"header5": 0,
"header6:str": 0
},
{
header1 header2:num header3:const header4:str header5:flex header6\:str
0 0 0 0 0 0
8882 8882 8882 8882 8882 8882
-8882 -8882 -8882 -8882 -8882 -8882
3.14159 3.14159 3.14159 3.14159 3.14159 3.14159
Michael Jordan Michael Jordan Michael Jordan Michael Jordan Michael Jordan Michael Jordan
Lionel Messi Lionel Messi Lionel Messi Lionel Messi Lionel Messi Lionel Messi
日本語 日本語 日本語 日本語 日本語 日本語
not empty
TRUE TRUE TRUE TRUE TRUE TRUE
[
{
"id": 1001,
"name": "egg",
"type": "food",
"price": 200
},
{
"id": 1002,
"name": "hook",
id name type price
1001 egg food 200
1002 hook dvd 999
1003 hammer tool 300
1004 すし 食べ物 900
@high5
high5 / file0.txt
Last active October 26, 2015 02:07
Go(goquery)でQiitaのスクレイピングライブラリをつくった ref: http://qiita.com/high5/items/8c8dc426fb731d668007
package main
import (
"fmt"
"github.com/high5/go-qiita-explore"
"log"
)
func main() {
@high5
high5 / TodoActions.js
Last active August 29, 2015 14:17
execute ajax on flux action sample
var TodoActions = {
/**
* @param {string} text
*/
create: function(text) {
$.ajax({
cache:false,
type: "POST",
@high5
high5 / TodoStore.js
Created March 13, 2015 03:00
ajax request sample
$.ajax({
async:false,
cache:false,
type: "POST",
url: "/todos",
data: { title: text}
})
.done(function(msg) {
var id = msg;
_todos[id] = {
@high5
high5 / about-bower.md
Created February 4, 2015 02:24
about gist

bower

Bower

.bowerrc

{
 "directory": "js/bower_components",
@high5
high5 / windows-atom-keymap.cson
Last active August 29, 2015 14:14
windows atom editor's keymap.cson
# Your keymap
#
# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors
# to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Atom's built-in keymap: