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
version: '2' | |
x-redash-service: &redash-service | |
image: hoge/redash:develop | |
depends_on: | |
- postgres | |
- redis | |
env_file: /opt/redash/env | |
restart: always | |
services: | |
server: |
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
CXX = g++ | |
CXXFLAGS = -std=c++11 -g -MMD -MP | |
SRC_DIR = ./src | |
OBJ_DIR = ./build | |
SOURCES = $(shell ls $(SRC_DIR)/*.cpp) | |
OBJS = $(subst $(SRC_DIR), $(OBJ_DIR), $(SOURCES:.cpp=.o)) | |
TARGET = build/main | |
DEPENDS = $(OBJS:.o=.d) | |
.PHONY: all |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# load .env | |
Dotenv.load | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
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
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.define "host" do |node| | |
node.vm.box = "chef/centos-7.0" | |
node.vm.hostname = "host" | |
node.vm.network :private_network, ip: "192.168.43.51" | |
end |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# load .env | |
Dotenv.load | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
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
#!/bin/sh | |
cd `dirname $0` | |
if [ `uname` = "Darwin" ]; then | |
for target in `find ../Classes -name "*.cpp" -or -name "*.h"` | |
do | |
echo 'format '${target} | |
# nkf --overwrite -w8 -Lu ${target} | |
clang-format -i ${target} |
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
<?PHP | |
#-------------------------------------------------- | |
# Main | |
#-------------------------------------------------- | |
if ($argc < 1) { | |
exit(); | |
} |
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 options = new ExportOptionsPNG24(); | |
var folder = Folder.selectDialog(); | |
var doc = app.activeDocument; | |
if (doc && folder) { | |
var newdoc = app.documents.add(doc.documentColorSpace, doc.width, doc.height); | |
newdoc.artboards[0].artboardRect = doc.artboards[0].artboardRect; | |
saveSubLayers(doc, folder); | |
newdoc.close(SaveOptions.DONOTSAVECHANGES); |
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
<?php | |
//-------------------------------------------------- | |
// 引数で受け取ったCSVかTSVファイルをJSONに変換する | |
// ファイルのフォーマットは拡張子で判断する | |
// 出力ファイル名が指定されていない場合は、 | |
// 入力ファイル名の拡張子を変更して出力する | |
// | |
// $ php convertJson.php -f master.tsv -o master.json | |
//-------------------------------------------------- |
NewerOlder