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; | |
my %rank_hour; # Access per hour | |
my %rank_file; # Access per file | |
open LOG, "<", "access_log"; # Open log file | |
open CSV, ">", "access_log.csv"; # Open CSV output file |
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
require 'formula' | |
# Contact celery [at] g-language.org for questions | |
# Or should I call this formula plain ecell...? | |
class Ecell4 < Formula | |
homepage 'http://www.e-cell.org/' | |
url 'https://github.com/ecell/ecell4/tarball/master' | |
sha1 '2b1bdf70b0bdfd09e091943eb110b1aab03db6c6' | |
version '4' |
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 ruby | |
require 'net/http' | |
require 'uri' | |
require 'json' | |
url = 'http://hack.sfc.keioac.jp/sfcbusapi/index.php' | |
uri = URI.parse( url ) | |
res = Net::HTTP.get( uri ) | |
m = /^callback\((.+)\);$/.match( res ) |
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
#include <stdio.h> | |
#include <stdlib.h> | |
void reverse(char** Pstring); | |
int match(char a, char b); | |
int main(int argc, char* argv[]) { | |
if(argc < 2) { | |
fprintf(stderr, "Usage: needle <sequence 1> <sequence 2>"); | |
} |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <math.h> | |
#define BLOCK 30 | |
#define CHECK(X, Y) (X & (1 << (Y - 1))) | |
int main(int argc, char** argv) { |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <math.h> | |
#define BLOCK 64 | |
int main(int argc, char** argv) { | |
uint64_t *prime, *mask, limit, i, j; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <math.h> | |
#define BLOCK 64 | |
#define SHIFT(X) (1ULL << (X - 1)) | |
#define CHECK(X,Y) (X & SHIFT(Y)) |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <math.h> | |
const uint64_t mask64[] = { | |
0x0000000000000001,0x0000000000000002,0x0000000000000004,0x0000000000000008, | |
0x0000000000000010,0x0000000000000020,0x0000000000000040,0x0000000000000080, | |
0x0000000000000100,0x0000000000000200,0x0000000000000400,0x0000000000000800, |
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
/* とりあえずここの中はテンプレだと思って大丈夫。 | |
** #include <ライブラリ名.h> ってやるとライブラリを使える。 | |
** stdioとstdlibがあれば大抵できるけど他にもほしくなるケースもあるよ。 | |
** int main() っていうのも定型文で、メインの処理をここに書くよ。 | |
** ※だからmainっていう名前なのね。 | |
** int argcとchar** argvはコマンドライン引数って言うよ。 | |
** コンパイルしたあとに実行するときに | |
** ./hoge 10 20 みたいにするとスペースで区切られた文字列が入ってるよ。 | |
** テンプレここから *********************************************************** |
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
/* とりあえずここの中はテンプレだと思って大丈夫。 | |
** #include <ライブラリ名.h> ってやるとライブラリを使える。 | |
** stdioとstdlibがあれば大抵できるけど他にもほしくなるケースもあるよ。 | |
** int main() っていうのも定型文で、メインの処理をここに書くよ。 | |
** ※だからmainっていう名前なのね。 | |
** int argcとchar** argvはコマンドライン引数って言うよ。 | |
** コンパイルしたあとに実行するときに | |
** ./hoge 10 20 みたいにするとスペースで区切られた文字列が入ってるよ。 | |
** テンプレここから *********************************************************** |
OlderNewer