GitHubのリポジトリにフックしたアクションを代行してくれるサービス
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
dgram = require 'dgram' | |
SIO_RIGHT = 2 | |
SIO_LEFT = 1 | |
ID_NECK = 0 | |
ID_SHOULDER_ROTATION = 1 | |
ID_SHOULDER_UP_DOWN = 2 | |
ID_ELBOW = 4 | |
ID_HIP_OPEN_CLOSE = 6 |
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
'use strict' | |
koa = require 'koa' | |
app = koa() | |
router = require 'koa-router' | |
logger = (format = ':method :url') -> | |
return (next) ->* | |
str = format | |
.replace(':method', @method) |
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
var socket = io.connect('http://localhost:3000'); | |
$(function(){ | |
var user = window.prompt('ユーザ名は?'); | |
// sendボタンが押された時の処理 | |
$('#button').on('click', function(){ | |
var text = $('#input').val(); | |
socket.emit('send', { |
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
<h1>hgoe</h1> |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
print 'ISBN: '; | |
$_ = readline(*STDIN); | |
if (/\d{10}/) { | |
s/^\s+|\s+$//g; |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use LWP::UserAgent; | |
my $ua = LWP::UserAgent->new; | |
my $req = HTTP::Request->new(GET => 'http://www.keio.ac.jp/ja/contact/sfc.html'); | |
my $res = $ua->simple_request($req); | |
my $cnv = $res->content; |