Skip to content

Instantly share code, notes, and snippets.

@jsoizo
jsoizo / nrun
Created June 1, 2018 09:51
scripts
#!/bin/sh
if [ -f ./package.json ]; then
npm run $(cat ./package.json | jq -r '.scripts | keys[]' | peco)
else
echo "package.json not found" >&2
exit 1
fi
@jsoizo
jsoizo / franchise-docker-compose.yml
Last active December 2, 2017 16:39
franchise and franchise-client by docker
version: '3'
services:
web:
ports:
- "3000:80"
image: "jsoizo/franchise"
client:
ports:
- "14645:14645"
image: "jsoizo/franchise-client"
@jsoizo
jsoizo / code.gs
Created August 23, 2014 04:36
GASで文字コード指定してファイルを書き出す ref: http://qiita.com/jsoizo/items/948e23231417d203eefa
function outputSheetToCsvFile() {
// 定数
var fileName = "μ's.csv";
var contentType = "text/csv";
var charSet = "Shift_JIS";
var lineDelimiter = ",";
var newLineChar = "\r\n";
// 開いているシートからデータを取得
var range = SpreadsheetApp.getActiveSheet().getDataRange();
(function(){
var getFlashPlayerVersion = function() {
//[All] Flash Player is NOT installed.
var version = 0;
var tmp = [];
try {
//[IE] Flash Player is installed.
var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
tmp = fo.GetVariable("$version").match(/([0-9]+)/);
version = tmp[0];