- $ (show-source)
- ? (show-doc)
- history --grep
- .
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 'date-utils' | |
_ = require 'lodash' | |
github = require 'githubot' | |
getSince = -> | |
date = Date.today() | |
if date.getDay() is 1 | |
date.addDays -3 # since Friday if today is Monday | |
else | |
date.addDays -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
tap 'phinze/homebrew-cask' | |
tap 'homebrew/versions' | |
brew 'brew-cask' | |
brew 'ag' | |
brew 'automake' | |
brew 'ctags' | |
brew 'curl' | |
brew 'gcc' |
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
https://idobata.io/organizations/terakoya4/rooms/sabo-team/join_request/7893076c-e10b-4642-9961-bfb538386677 |
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
language: ruby | |
env: | |
global: | |
- NOKOGIRI_USE_SYSTEM_LIBRARIES=1 | |
- PLAZA_DBUSER=travis | |
rvm: 2.1.0 | |
services: | |
- mysql | |
bundler_args: --without development moxy | |
cache: bundler |
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
module.exports = (robot) -> | |
robot.hear /.*/, (msg) -> | |
if process.env.HUBOT_IDOBATA_GITHUB_MENTION_ROOM and | |
process.env.HUBOT_GITHUB_REPO and | |
msg.message.user.name is 'GitHub' and | |
!/@/.test(msg.message.text) | |
msg.message.data.room_id = process.env.HUBOT_IDOBATA_GITHUB_MENTION_ROOM | |
repo = process.env.HUBOT_GITHUB_REPO |
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
# most useful aliases | |
alias ga='git add' | |
alias gb='git branch' | |
alias gc='git checkout' | |
alias gg=display_git_branch_and_wip_files | |
alias gcm='gc master' | |
alias gd='git diff' | |
alias gdc='git diff --cached' | |
alias gpoc='git push origin `gitcurrentbranch`' | |
alias gwip='git commit -m '\''WIP'\' |
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
util = require('util') | |
cheerio = require('cheerio') | |
# Reply booth items title and image_link | |
module.exports = (robot) -> | |
robot.hear /#(https:\/\/\w+.booth.pm\/items\/\d+)/, (msg) -> | |
msg | |
.http(msg.match[1]) | |
.get() (err, res, body) -> | |
if res.statusCode != 200 |
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
util = require 'util' | |
module.exports = (robot) -> | |
robot.respond /debug( snippet)?/, (msg) -> | |
if msg.match[1]? | |
msg.send '```\n' + util.inspect(msg) + '\n```' | |
else | |
msg.send util.inspect msg | |
pixiv Inc.
Tuurbolinks v2.2.0 https://github.com/rails/turbolinks