This file contains 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 Googleカレンダーの日曜日に色付ける | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description shows how to use babel compiler | |
// @author You | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser.min.js | |
// @match https://calendar.google.com/calendar/* | |
// ==/UserScript== |
This file contains 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 Renderer | |
class Renderer | |
def initialize x = 100, y = 100 | |
@x = x | |
@y = y | |
@empty = '.' | |
@non_empty = '*' | |
@sleep = 0.02 | |
self.clear |
This file contains 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
{ | |
"profiles": [ | |
{ | |
"name": "Default profile", | |
"selected": true, | |
"simple_modifications": { | |
"caps_lock": "left_control", | |
"left_control": "caps_lock", | |
"right_command": "japanese_kana", | |
"left_option": "japanese_eisuu" |
This file contains 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 | |
cli=/Applications/Karabiner.app/Contents/Library/bin/karabiner | |
$cli set option.emacsmode_controlAE 1 | |
/bin/echo -n . | |
$cli set option.emacsmode_controlH 1 | |
/bin/echo -n . | |
$cli set option.emacsmode_controlK 1 | |
/bin/echo -n . |
This file contains 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: | |
# Die is cast. | |
# | |
# Commands: | |
# hubot さいころ - puts random 1 ~ 6 number | |
# hubot さいころ 10 - puts random 1 ~ 10 number | |
# hubot randompick a b c d e - puts a or b or c or d or e | |
# | |
random = (min, max) -> | |
min = +min or 0 |
This file contains 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: | |
# Get Weather from yahoo 天気 | |
# | |
# Dependencies: | |
# "cheerio-httpcli": "^0.3.3" | |
# | |
# Commands: | |
# hubot 天気 新宿 | |
cheerio = require 'cheerio-httpcli' |
This file contains 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
sayByMemberCurry = (member, [quotationStart, quotationEnd] = ['"', '"'])-> | |
member = member.concat() | |
num = -1 | |
max = member.length | |
(word) -> | |
num = num + 1 | |
if num >= max | |
num = 0 | |
"#{member[num]} #{quotationStart}#{word}#{quotationEnd}" | |
beatlesSay = sayByMemberCurry([ |
This file contains 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 bitbucketのプルリクのファイルのフォルダを全て閉じる | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description shows how to use babel compiler | |
// @author You | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser.min.js | |
// @match https://*/bitbucket/projects/*/repos/*/pull-requests/* | |
// ==/UserScript== |
This file contains 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 BitBucketの表示をマシにする | |
// @namespace http://your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @author You | |
// @match https://*/bitbucket/projects/*/pull-requests* | |
// @grant none | |
// ==/UserScript== |
This file contains 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
Backbone = require('backbone') | |
require('backbone-query-parameters'); | |
var Router = Backbone.Router.extend({ | |
routes: { | |
"users?q=:filter": "showFilteredUsers", | |
"users": "showUsers", | |
"home": "showHome", | |
"users/:id": "showUser", | |
}, |