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 Jekyll | |
| module ContextArray | |
| def contextarray(input) | |
| if !input.kind_of?(Array) | |
| src = input | |
| input = [src] | |
| end | |
| data = [] | |
| input.each {|a| |
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
| [ | |
| { | |
| "name": "nyanpass", | |
| "reply": "にゃんぱすー", | |
| "matchword": "にゃん(ぱす|パス)", | |
| "time": "3", | |
| "images" :[ | |
| "http://madosoku.com/wp-content/uploads/2013/10/vlcsnap-2013-10-09-07h18m26s175-300x168.png", | |
| "http://24.media.tumblr.com/fa49d58a370974d5ae74c80b9fd7fe58/tumblr_mv9wb12ZWI1qz53a8o1_1280.jpg", | |
| "http://31.media.tumblr.com/31d3c72a38bb05dc9a4d54f7ca43b911/tumblr_mvsk6uq4vN1qzrx24o1_500.gif", |
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) -> | |
| msg.send "やっほー" |
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) -> | |
| msg.send msg.random ["ちわー", "こんにちはっ", "ちゃーす", "こ、こんにちは"] |
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
| HttpClient = require 'scoped-http-client' | |
| async = require 'async' | |
| CLIENT_ID = '__YOUR_CLIENT_ID__' | |
| API_KEY = '__YOUR_API__KEY__' | |
| class DigitalOcean | |
| constructor: (debug = false) -> | |
| get : (path, params, callback) -> |
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
| (function() { | |
| var fabric, fs, mktemp, d3; | |
| d3 = require('d3'); | |
| mktemp = require('mktemp'); | |
| fabric = require('fabric').fabric; | |
| fs = require('fs'); | |
| path = require('path'); | |
| module.exports = function(robot) { |
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
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <body> | |
| <script src="http://d3js.org/d3.v3.js"></script> | |
| <script> | |
| // この10個のデータを折れ線グラフにする | |
| var dataset =[ 2,0,0,0,0,0,0,0,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
| unbind C-b | |
| set-option -g prefix C-t | |
| bind r source-file ~/.tmux.conf | |
| bind e setw synchronize-panes on | |
| bind E setw synchronize-panes off | |
| # Base | |
| set-window-option -g utf8 on | |
| set -g status-utf8 on |
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://api.hipchat.com/v1/rooms/history?room_id={room_id}&date={date}&timezone=JST&format=json&auth_token={token} |
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
| {"messages":[{"date":"2014-02-06T10:01:07+0900","from":{"name":"daxanya (-v-)","user_id":544xxx},"message":"https:\/\/github.com\/bowery\/orcheTstrate.js"},{"date":"2014-02-06T10:01:11+0900","from":{"name":"daxanya (-v-)","user_id":544xxx},"message":"orchestrate.js"},{"date":"2014-02-06T10:01:18+0900","from":{"name":"daxanya (-v-)","user_id":544xxx},"message":"http:\/\/www.slideshare.net\/who_you_me\/neo4j-24294061"},{"date":"2014-02-06T10:01:22+0900","from":{"name":"daxanya (-v-)","user_id":544xxx},"message":"\u30b0\u30e9\u30d5\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u300cNeo4j\u300d\u306e \u5c0e\u5165\u306e\u5c0e\u5165"}]} |
OlderNewer