大学生協のFeliCa,及び諸大学の学生証一体型FeliCaの仕様
レスポンスについては,特に表記のない限り東北大学のもの (学生証一体型ではない)
断りのない限りコードはビッグエンディアンで通信する (下記のドキュメントに合わせた)
記号と区別するため,アルファベットの大文字表記は記号,小文字表記は16進表記とする
FeliCa自体の仕様については,Sony公式のドキュメントを参考に
大学生協のFeliCa,及び諸大学の学生証一体型FeliCaの仕様
レスポンスについては,特に表記のない限り東北大学のもの (学生証一体型ではない)
断りのない限りコードはビッグエンディアンで通信する (下記のドキュメントに合わせた)
記号と区別するため,アルファベットの大文字表記は記号,小文字表記は16進表記とする
FeliCa自体の仕様については,Sony公式のドキュメントを参考に
| func ModifiedFormat() string { | |
| t := time.Now() | |
| return fmt.Sprintf("%s, %02d %s %d %02d:%02d:%02d GMT", | |
| t.Weekday().String()[:3], | |
| t.Day(), | |
| t.Month().String()[:3], | |
| t.Year(), | |
| t.Hour(), | |
| t.Minute(), | |
| t.Second()) |
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "os/user" | |
| "path/filepath" | |
| "strings" |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "os" | |
| "github.com/pkg/errors" | |
| ) |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "net/http" | |
| "os" | |
| "runtime" | |
| "strconv" | |
| "strings" |
| import Foundation | |
| extension String { | |
| var binary: String { | |
| let chars = self.characters.map { String($0).unicodeScalars.first!.value } | |
| return chars.map({ String($0, radix: 2).pad(24) }).joinWithSeparator("") | |
| } | |
| func bintostr() -> String { |
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use utf8; | |
| use Encode qw/encode_utf8 decode_utf8/; | |
| use v5.10; | |
| use Data::Dumper; | |
| use Text::MeCab; | |
| my $mt = Text::MeCab->new(dicdir => "/usr/local/lib/mecab/dic/mecab-ipadic-neologd"); |
| #include <iostream> | |
| #include <algorithm> | |
| #include <vector> | |
| #include <pthread.h> | |
| using namespace std; | |
| void mergesort(vector<int> &n, int i) | |
| { |
| sub github_auth { | |
| my $self = shift; | |
| my $config = $self->config->{github}->{user}; | |
| # login してない場合 | |
| unless ($self->is_login) { | |
| # error 処理 | |
| if (my $error = $self->param('error')) { | |
| return $self->render( | |
| text => "Call to github returned: $error" | |
| ); |
| #include <iostream> | |
| #include <bitset> | |
| #include <algorithm> | |
| #include <string> | |
| #include <math.h> | |
| #include <string.h> | |
| #include <pthread.h> | |
| #define N 8 |