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
const yaml = require("js-yaml"); | |
const fs = require("fs"); | |
const path = require("path"); | |
const setting = {}; | |
const CONFIG_DIR = path.join(__dirname, "../", "config"); | |
const ENVIRONMENTS_CONFIG_DIR = path.join(CONFIG_DIR, "settings"); | |
const LOCAL_CONFIG_YAML = path.join(CONFIG_DIR, "settings.local.yml"); | |
const CONFIG_YAML = path.join(CONFIG_DIR, "settings.yml"); |
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
require 'slack-ruby-client' | |
module Rounders | |
module Handlers | |
class Invoice < Rounders::Handlers::Handler | |
# メールをフィルタリングするAND条件、第二引数に渡したSymbolはメソッド名 | |
on({ | |
subject: 'Amazon Web Services Invoice Available', | |
from: '[email protected]' |
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
<ul> | |
<li class="item">item1</li> | |
<li class="item">item2</li> | |
<li class="item">item3</li> | |
</ul> | |
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
# http://k0kubun.hatenablog.com/entry/2014/07/06/033336 | |
# http://qiita.com/wada811/items/78b14181a4de0fd5b497 | |
function peco-select-history() { | |
typeset tac | |
if which tac > /dev/null; then | |
tac=tac | |
else | |
tac='tail -r' | |
fi |
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
# Description: | |
# Search and show your train time in Japan | |
# | |
# Dependencies: | |
# "cheerio-httpcli", "" | |
# | |
# Configuration: | |
# None | |
# | |
# Commands: |
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
# prefixキーをC-aに変更する | |
set -g prefix C-a | |
# C-bのキーバインドを解除する | |
unbind C-b | |
# キーストロークのディレイを減らす | |
set -sg escape-time 1 | |
# ウィンドウのインデックスを1から始める |
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
Array.prototype.sample = function(loop) { | |
var result = [], loop = loop || 1; | |
for(var i = 0; i < loop; i++) { | |
result.push(this[Math.floor(Math.random() * this.length)]); | |
} | |
return result; | |
} |
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
.body--index, .header--interior { | |
background-image: none; | |
} | |
body { | |
background-color: #846059; | |
} |
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
nandatte = [ | |
"http://suiseinanpa.com/wp-content/uploads/434536.jpg" | |
"https://shuyaout.files.wordpress.com/2014/10/1.gif" | |
"http://shimoinaba.cocolog-nifty.com/photos/uncategorized/2010/12/21/photo.jpg" | |
"http://livedoor.blogimg.jp/nandemoj22/imgs/3/9/3998d2a1.jpg" | |
] | |
module.exports = (robot) -> | |
robot.hear /(だったんだよ)/i, (msg) -> |
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
echo ' SELECT chat.friendlyname, ms.timestamp, ms.author, ms.body_xml, ms.from_dispname FROM Messages as ms LEFT JOIN Chats as chat ON ms.chatname = chat.name;' | sqlite3 -csv main.db |
NewerOlder