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
(define proc1 '()) | |
(define proc2 '()) | |
(define (coroutine1) | |
(define (yield-for next-cnt) | |
(call/cc (lambda (cnt) | |
(set! proc1 cnt) | |
(next-cnt)))) | |
(define (setup) | |
(call/cc (lambda (cnt) |
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 "graphic.h" | |
#include "math.h" | |
#define PARTITION 40 | |
/** | |
* 楕円を回転させて描画する | |
* a 長辺の長さ | |
* b 短辺の長さ |
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 <unistd.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
/* Size of atomic reads. */ | |
#define BUFFER_SIZE (16 * 1024) | |
int state = 0; | |
void exit_with_error(int state, char c) { |
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
<html> | |
<head> | |
<title> Pomodoro Timer </title> | |
<script type="text/javascript"> | |
<!-- | |
var minTextElem; | |
var secTextElem; |
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
process.stdin.resume(); | |
process.stdin.setEncoding('utf8'); | |
var fragment = ""; | |
process.stdin.on('data', function(chunk){ | |
if (chunk == "") { return ;} | |
var lines = chunk.split("\n"); | |
lines[0] = fragment + lines[0]; | |
fragment = lines.pop(); | |
lines.forEach(function(line){ |
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
<?php | |
$line = 'design Design of Evolvable Computer Languages 2002 IEEE TRANSACTIONS ON EVOLUTIONARY COMPUTATION 6 4 420-424 Charles Ofria Christoph Adami Travis C. Collier'; // delimiter is tabstop | |
print thesis_reference_line($line); | |
// for each line of file | |
function thesis_reference_line($line) | |
{ | |
// split with tab | |
$datas = explode("\t", $line); |
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
[email protected] Mr.Sample | |
[email protected] Ms.Foo |