Skip to content

Instantly share code, notes, and snippets.

View geta6's full-sized avatar

geta6 geta6

View GitHub Profile

ましゅいけん

最近みかけた/使ったスジのよさそうなreposとかサービス

wercker

GitHubのリポジトリにフックしたアクションを代行してくれるサービス

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
@geta6
geta6 / sheet.md
Last active January 2, 2016 12:19
node.js waf performances

precondition

node

$ node -v
v0.11.9

curl

'use strict'
koa = require 'koa'
app = koa()
router = require 'koa-router'
logger = (format = ':method :url') ->
return (next) ->*
str = format
.replace(':method', @method)
var socket = io.connect('http://localhost:3000');
$(function(){
var user = window.prompt('ユーザ名は?');
// sendボタンが押された時の処理
$('#button').on('click', function(){
var text = $('#input').val();
socket.emit('send', {
<h1>hgoe</h1>
@geta6
geta6 / README.md
Last active January 3, 2016 20:29
システムプログラミング最終試験

E1

自分の氏名、学籍番号、login名、学年、座席位置を出力せよ。

E2

stdinから与えられた10進の文字をscanf("%d", ...)を用いて取得し、数字の各桁の合計を求めよ。

% ./a.out

list

型番 価格
i72600k null
Z68DX null
GTX670 null
CNPS9900MAX null
CT064M4SSD2 null
#!/usr/bin/env perl
use strict;
use warnings;
print 'ISBN: ';
$_ = readline(*STDIN);
if (/\d{10}/) {
s/^\s+|\s+$//g;
#!/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;