Skip to content

Instantly share code, notes, and snippets.

View Slowhand0309's full-sized avatar
🏠
Working from home

Slowhand Slowhand0309

🏠
Working from home
View GitHub Profile
@Slowhand0309
Slowhand0309 / git-hooks-msg.txt
Created October 24, 2015 08:33
git-hooks msg at server side
# hook file of the echo target
* pre-receive
* update
* post-update
# script
echo "update >>" >> up.log
echo $# >> up.log
echo $@ >> up.log
echo "--------------" >> up.log
@Slowhand0309
Slowhand0309 / Vagrantfile
Created October 3, 2015 08:54
template for my vagrant was
# -*- mode: ruby -*-
# vi: set ft=ruby :
AWS_ACCESS_KEY_ID = "XXXXXXXXXXXXX"
AWS_SECRET_KEY = "XXXXXXXXXXXXX"
Vagrant.configure(2) do |config|
config.vm.box = "dummy"
config.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box"
config.vm.synced_folder ".", "/vagrant", disabled: true
@Slowhand0309
Slowhand0309 / bindForm.gs
Last active August 29, 2015 14:26
Google Apps Script Form SetDestination
/**
* スプレットシートとフォームの結び付け
*/
function bindForm() {
// フォーム取得
var formUrl = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var form = FormApp.openByUrl(formUrl);
// スプレットシート取得
@Slowhand0309
Slowhand0309 / C++ template samples
Last active August 29, 2015 14:23
C++ template samples
#include <boost/format.hpp>
#include <boost/shared_ptr.hpp>
#include <iostream>
#include <iterator>
#include <string>
#include <vector>
#include <list>
using namespace std;