This file contains hidden or 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
#include <boost/format.hpp> | |
#include <boost/shared_ptr.hpp> | |
#include <iostream> | |
#include <iterator> | |
#include <string> | |
#include <vector> | |
#include <list> | |
using namespace std; |
This file contains hidden or 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
/** | |
* スプレットシートとフォームの結び付け | |
*/ | |
function bindForm() { | |
// フォーム取得 | |
var formUrl = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; | |
var form = FormApp.openByUrl(formUrl); | |
// スプレットシート取得 |
This file contains hidden or 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 : | |
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 |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
#!/usr/bin/env ruby | |
refname = ARGV[0] | |
oldrev = ARGV[1] | |
newrev = ARGV[2] | |
puts "push info >> \n(#{refname}) (#{oldrev[0,6]}) (#{newrev[0,6]})" | |
sharevs = `git rev-list #{oldrev[0,6]}..#{newrev[0,6]}`.split("\n") | |
sharevs.each do |rev| |
This file contains hidden or 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 | |
echo "make directory build" | |
mkdir build | |
cd build | |
cmake .. | |
make | |
echo "copy header and library" | |
sudo cp -r ../googletest/include/gtest /usr/local/include/ |
This file contains hidden or 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
ex) | |
irb | |
2.1.0 :001 > require 'active_support' | |
=> true | |
2.1.0 :002 > cahce = ActiveSupport::Cache::MemoryStore.new | |
=> <#ActiveSupport::Cache::MemoryStore entries=0, size=0, options={}> | |
2.1.0 :006 > cahce.method(:blank?).source_location | |
=> ["/Users/xxxx/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/core_ext/object/blank.rb", 16] | |
2.1.0 :007 > cahce.method(:blank?).owner | |
=> Object |
This file contains hidden or 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
/** | |
* canvas_loupe.js | |
*/ | |
var loupe = { | |
x: 0, // Current x. | |
y: 0, // Current y. | |
w: 0, // Image width. | |
h: 0, // Image height. |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Mouse | |
ioreg -c BNBMouseDevice | grep BatteryPercent | grep -v { | sed 's/[^[:digit:]]//g' | |
# Keyboard | |
ioreg -c AppleBluetoothHIDKeyboard | grep BatteryPercent | grep -v { | sed 's/[^[:digit:]]//g' |
This file contains hidden or 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
tree -a -I '.git|node_modules|.bundle|vendor|.DS_Store' |
OlderNewer