Skip to content

Instantly share code, notes, and snippets.

{
"latitude":49.2604,
"longitude":-123.1134,
"timezone":"America/Vancouver",
"offset":-8,
"currently":{
"time":1455756144,
"summary":"Light Rain",
"icon":"rain",
"nearestStormDistance":0,

SlackにHubotを入れてみた

Hubot

インストール

NPMで用意されてる。

yogenerator-hubot はローカルにインストールしたけど、公式ドキュメントだとグローバルになってる。好みで。

他は知らないけどバンクーバーの場合です。違ってたらごめんね。🙇

ワーホリビザ

夢のスービザ。無制限の労働も含め、何でもできるよ!

取得に年齢制限がある。だいたい三十歳まで。取得後、利用開始まで一年間の期限がある。利用開始から改めて一年間有効。一度だけしか発行されない。(他の国で申請するのは可能。)

観光ビザ

copy('0. ['+document.querySelector('article h1').textContent.replace(/(.*/, '')+']('+location.href+')');
Fetching...
https://ja.wikipedia.org/wiki/%E3%82%AE%E3%83%AA%E3%82%B7%E3%82%A2%E7%A5%9E%E8%A9%B1
OK
# ギリシア神話 - Wikipedia
- サカナーソ
- サカナウティカ
- サカナトリア
- サカナトス
- サカナパイアイ
- サカナパイアー
@ginpei
ginpei / gist:5d75a3d77ee6cb77d4c9
Created May 19, 2015 01:07
Railsのスクリプト実行時、Gemのコードを省いてコールスタックを見やすくする
$ RAILS_ENV=test rake db:migrate 2>&1 /dev/null | grep -v "\\.gem"
@ginpei
ginpei / gist:15e77a2d099706b37474
Last active August 29, 2015 14:12
[WIP] JavaScript設計の歴史の話。

ブログ記事用

WIPWIPWIPWIPWIP WIPWIPWIPWIPWIP WIPWIPWIPWIPWIP WIPWIPWIPWIPWIP WIPWIPWIPWIPWIP

JavaScript設計の歴史の話。

// About API:
// https://www.dropbox.com/developers/core/docs#oa2-authorize
// https://www.dropbox.com/developers/core/docs#oa2-token
var config = require('./config.json');
// OR...
// var config = {
// 'appKey': 'xxxxxxxxxxxxxxx',
// 'secretKey': 'xxxxxxxxxxxxxxx'
// };
/**
* HTML文字列中から危険なものを取り除く。
*
* @example
* var src = safeHtml('[<'+'script>alert(1)<'+'/script>]');
* var dest = '[]';
* console.assert(src===dest, 'script');
*
* @example
* var src = safeHtml('<img src="404" onerror="alert(1)">');
@ginpei
ginpei / gist:54fc8da4f18a10eaa2a7
Created June 25, 2014 01:47
Big Brother is watching you
var rx = /^ビッグブラザー[はが]あなたを(見て|見守って)いる$/;
_.all([
'ビッグブラザーはあなたを見ている',
'ビッグブラザーがあなたを見ている',
'ビッグブラザーはあなたを見守っている',
'ビッグブラザーがあなたを見守っている',
], function(text, index) {
return rx.test(text);
});