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
// ==UserScript== | |
// @name Emacs Ctrl + E | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Enable Ctrl + E(go to end-of-line) to Google Spreadsheet | |
// @author Hideki Ikemoto | |
// @match https://docs.google.com/spreadsheets/d/* | |
// @grant none | |
// ==/UserScript== |
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 main() { | |
wakeupTaskumaMail(nowMinusDate(7)); | |
wakeupTaskumaMail(nowMinusDate(30)); | |
} | |
function wakeupTaskumaMail(date) { | |
const query = "label:たすくま " + toYYYYMMDD(date); | |
const threads = GmailApp.search(query); | |
for (var i = 0; i < threads.length; i++) { |
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/bash | |
if [ $# -ne 3 ] | |
then | |
echo "vmimg-to-tar.sh vm-image-path path-to-write tar-out-file" | |
exit 1 | |
fi | |
IMG=$1 | |
PATH_TO_WRITE=$2 |
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/ruby | |
require 'json' | |
require 'uri' | |
require 'open-uri' | |
id = ARGV[0] | |
params = {:id => id} | |
# URLを作成 |
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 | |
DIRECTORY = ENV['HOME'] + '/.check' | |
def check(file) | |
File::open(file) do |f| | |
f.each_line do |line| | |
# ignore blank line | |
next if line =~ /^\n/ |