Skip to content

Instantly share code, notes, and snippets.

View gongo's full-sized avatar
🍕
Thanks Driven Development

Wataru MIYAGUNI gongo

🍕
Thanks Driven Development
View GitHub Profile
@gongo
gongo / vueify-mmm-mode.el
Created April 1, 2015 12:40
Syntax highlighting/support for vueify file (.vue) using mmm-mode
(require 'mmm-mode)
(setq mmm-global-mode 'maybe)
(dolist (langsets '(("script" . ((coffee . coffee-mode)
(es6 . js2-mode)))
("style" . ((stylus . stylus-mode)
(less . less-css-mode)
(scss . scss-mode)))))
(let ((tag (car langsets)))
(dolist (pair (cdr langsets))
(require 'gamegrid)
(defconst xmas-tree-buffer-name "*XMASTREE*")
(defconst xmas-tree--display-padding-top 5)
(defconst xmas-tree--display-padding-left 3)
(defvar xmas-tree--display-width)
(defvar xmas-tree--display-height)
(defvar xmas-tree--leafs nil)
@gongo
gongo / okinawa_curry.md
Created March 20, 2018 15:23
沖縄の美味しいカレー屋さん
@gongo
gongo / gist:c5a5ecef02ddf023c3d76381022d6755
Last active March 2, 2018 15:25
YAPC::Okinawa 勢向け「沖縄・食」
@gongo
gongo / Gemfile
Last active February 14, 2018 22:14
Capybara の稼働状況を animation gif として保存するようなやつ
source 'https://rubygems.org'
gem 'capybara'
gem 'rake'
gem 'selenium-webdriver'
gem 'json'
gem 'rmagick'
日付イベントptスタドリ10スタドリ20スタドリ30スタドリMAX(84)合計(スタミナ)
5/1926781010100600
5/205156101270550
5/2114113101410111604
5/2216237010020
5/232030700000
5/24420031011100620
5/25511051010100600
5/26524801012100640
@gongo
gongo / shellcheck
Last active March 29, 2017 08:15
Shellcheck wrapper using Docker image http://gongo.hatenablog.com/entry/2017/03/28/223757
#!/bin/sh
(
dir="$(cd "$(dirname "$1")" && pwd)"
name="$(basename "$1")"
docker run --rm -v "${dir}:/scripts" koalaman/shellcheck "/scripts/${name}"
)
@gongo
gongo / main.tf
Last active December 20, 2016 06:40
terraform plan displays "value of 'count' cannot be computed" https://github.com/hashicorp/terraform/issues/10857
# /path/to/main.tf
variable "aws_access_key" {}
variable "aws_secret_key" {}
provider "aws" {
access_key = "${var.aws_access_key}"
secret_key = "${var.aws_secret_key}"
region = "ap-northeast-1"
@gongo
gongo / pizza_order.sh
Last active November 17, 2016 05:24
シェルスクリプトの関数コメントのスタイル、いい感じの模索してる
#!/bin/sh
#
# Short description
#
# Long description (multiline)
# :pizza: :pizza: :pizza:
#
# Examples:
#
@gongo
gongo / line-notify.el
Created October 5, 2016 12:48
Emacs を終了したら LINE に通知が行くやつ
(require 'request)
(defconst line-notify--endpoint
"https://notify-api.line.me/api/notify")
(setq line-notify-token "XXXXXXXXXX")
(defun line-notify-sync (message)
(request
line-notify--endpoint