I hereby claim:
- I am choro3 on github.
- I am choro3 (https://keybase.io/choro3) on keybase.
- I have a public key whose fingerprint is 7404 A81D AD63 A3B5 E411 0B32 BEAB 4EA5 9598 C188
To claim this, I am signing this object:
mod_moving_state = {direction = nil, tick = 0} | |
commands.add_command("keep_going", nil, function(command) | |
mod_moving_state = {direction = defines.direction.north, tick = 30} | |
end) | |
script.on_event(defines.events.on_tick, | |
function(event) | |
if mod_moving_state.tick > 0 then |
I hereby claim:
To claim this, I am signing this object:
extern crate rand; | |
use rand::Rng; | |
use std::cmp; | |
use std::fs::File; | |
use std::io::prelude::*; | |
use std::io::BufReader; | |
use std::path::Path; | |
use std::fmt; |
// static mut isprime: [bool; 1000000] = [true; 1000000]; | |
// dest node id, cost | |
struct Edge(usize, i64); | |
// current node, total cost | |
// struct State(usize, i64); | |
#[derive(Copy, Clone, Eq, PartialEq)] | |
struct State { | |
node: usize, | |
cost: i64 |
# Kickstart file automatically generated by anaconda. | |
#version=DEVEL | |
install | |
autostep | |
reboot | |
url --url=http://ftp.jaist.ac.jp/pub/Linux/CentOS/6.7/os/x86_64 | |
lang ja_JP.UTF-8 | |
keyboard us | |
network --onboot yes --device eth0 --bootproto dhcp --ipv6 auto |
import System.Environment | |
import Data.List | |
import Control.Applicative | |
data Field = Field (Int, Int) (Int, Int) | |
size :: Field -> (Int, Int) | |
size (Field (w, h) _) = (w, h) | |
pos :: Field -> (Int, Int) |
# | |
# Cookbook Name:: mroonga | |
# Recipe:: default | |
# | |
# Copyright 2013, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
["cmake", |
#!/usr/bin/env python | |
# coding: utf-8 | |
import sys | |
import random | |
import argparse | |
def main(filename, linecount): | |
with open(filename, 'r') as f: | |
_l = sum(1 for _ in f) |
# coding: utf-8 | |
""" | |
Yahooファイナンスからトルコリラ/円の為替レートを取得するだけ | |
""" | |
import sys | |
import argparse | |
import urllib |
# coding: utf-8 | |
# 完備辞書 (p.42 | |
# 密なばあい | |
from math import log, ceil | |
class FID (object): | |
def __init__(self, seq=long(0), N=65536): |