Skip to content

Instantly share code, notes, and snippets.

Go TAKEUCHI tily

Block or report user

Report or block tily

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View test.rb
class Hello
def hello
"hello"
end
end
@tily
tily / file0.txt
Last active Dec 20, 2017
mocha のテストに無理やり連番を振って番号指定でテスト実行できるようにする ref: https://qiita.com/tily/items/767d1d5acaabe9dcf4fb
View file0.txt
const Mocha = require("mocha");
const originalRun = Mocha.prototype.run;
Mocha.prototype.run = function (fn) {
let i = 1
this.loadFiles(() => {
this.suite.eachTest((test) => {
test.title = `#${i}: ${test.title}`
i += 1
View test.rb
require 'aws-sdk'
q3 = AWS::SQS.new(
:sqs_endpoint => 'q3-global.herokuapp.com',
:access_key_id => 'dummy',
:secret_access_key => 'dummy',
:use_ssl => false
)
queue = q3.queues.create('MyQueue001')
queue.send_message('hello!')
@tily
tily / deck.md
Last active Jan 30, 2017
Gist に置いた markdown を reveal.js でプレゼン資料っぽく表示するやつ
View deck.md

Gist に置いた markdown を reveal.js でプレゼン資料っぽく表示するやつ


発表用の資料を準備しようとしてて、もうパワポで作るの嫌だと思ったので、作ってみた。 (すでに似たようなのたくさんありそうだけど、少し調べて使いたいと思ったものがなかったので。)


使い方

@tily
tily / restore.sh
Last active Jan 29, 2017
restore.sh
View restore.sh
[codesuki/ecs-nginx-proxy: Reverse proxy for AWS ECS. Lets you address your docker containers by sub domain.](https://github.com/codesuki/ecs-nginx-proxy)
@tily
tily / 2016-winter-goods.md
Last active Dec 27, 2016
2016 冬の帰省時に持ち帰るものリスト
View 2016-winter-goods.md
  • キャップ
  • メガネ
  • ジャケット
    • ポケット
      • 財布
        • 切符
        • 保険証
        • クレジットカード
        • お守り
      • iPhone
@tily
tily / add-note.rb
Created Dec 21, 2016
すぐにローカルのメモを書きはじめられるやつ
View add-note.rb
require 'fileutils'
require 'highline'
BASE_DIR = File.join(ENV['HOME'], 'Desktop')
TITLE = 'Untitled'
def main
title = HighLine.new.ask("Title: ")
title = TITLE if title == ""
path = note_path(title)
@tily
tily / detect-data-track.rb
Created Sep 23, 2016
Detect data track from XLD logs
View detect-data-track.rb
def main
Dir["/Users/tily/Music/CDs/*/*.log"].each do |path|
f = File.open(path)
table_num, track_num = parse(f)
if table_num != track_num
puts "#{path}: table -> #{table_num}, track -> #{track_num}"
end
end
end
View rsync.sh
rsync -av ~/Dropbox/ScanSnap/Books/ /Volumes/share/Books/
@tily
tily / dht11-to-twitter.go
Last active Jul 12, 2016
温湿度センサー DHT11 から取得した情報を一定間隔で Twitter へポスト
View dht11-to-twitter.go
package main
import (
"github.com/d2r2/go-dht"
"github.com/ChimeraCoder/anaconda"
"fmt"
"time"
)
func main() {
You can’t perform that action at this time.