Skip to content

Instantly share code, notes, and snippets.

View keisukefukuda's full-sized avatar

Keisuke Fukuda keisukefukuda

View GitHub Profile
// ==UserScript==
// @name Titech Portal Auto Login
// @namespace http://www.titech.ac.jp/
// @id [email protected]
// @description 東工大ポータルに自動的にログインします
// @author NAKASHIMA, Makoto <[email protected]>
// @include https://portal1.nap.gsic.titech.ac.jp/*
// @include https://portal.nap.gsic.titech.ac.jp/*
// @include http://portal.titech.ac.jp/*
// @jsversion 1.8
@keisukefukuda
keisukefukuda / gist:1991869
Created March 7, 2012 08:15
iptables script
#!/bin/sh
IF=eth0
iptables -F
iptables -t nat -F
iptables -X
iptables -Z
# drop all packets by default
@keisukefukuda
keisukefukuda / simple_omp.cpp
Created April 25, 2012 08:40
Simple code to test StarPU's combined worker feature.
// Simple program using combined worker.
#include <iostream>
#include <starpu.h>
#include <omp.h>
starpu_perfmodel perf_model, perf_model_omp;
starpu_data_handle_t handle;
starpu_task *task = NULL, *task_omp = NULL;
starpu_codelet cl, cl_omp;
starpu_conf conf;
@keisukefukuda
keisukefukuda / simple_partition.cpp
Created April 27, 2012 09:50
A simple program using StarPU's partitioning feature.
// Simple program using StarPU's partitionning feature.
#include <cmath>
#include <sys/time.h>
#include <iostream>
#include <starpu.h>
starpu_perfmodel perf_model;
starpu_data_handle_t handle;
starpu_codelet cl;
starpu_conf conf;
@keisukefukuda
keisukefukuda / simple_multiformat.cu
Created April 29, 2012 09:12
An example of using StarPU's multiformat feature.
/*
Copyright (c) 2012, Keisuke Fukuda. All rights reserved.
License : new BSD license
# The Makefile looks like this:
NVCC=nvcc
CUDA_SDK=${HOME}/NVIDIA_GPU_Computing_SDK
CUTIL_INC=${CUDA_SDK}/C/common/inc
simple_multiformat: simple_multiformat.cu
@keisukefukuda
keisukefukuda / starpu_pheft.cu
Created July 4, 2012 11:10
StarPU's "pheft" behavior
#include <iostream>
#include <starpu.h>
struct starpu_codelet cl;
struct starpu_perfmodel perf;
starpu_data_handle_t handle;
void cpu_func(void *buffer[], void *arg) {
int N = STARPU_VECTOR_GET_NX(buffer[0]);
double *vec = (double*) STARPU_VECTOR_GET_PTR(buffer[0]);
@keisukefukuda
keisukefukuda / shibuya-el-position-paper.md
Created September 6, 2012 06:22 — forked from ainame/shibuya-el-position-paper.md
shibuya.elのポジションペーパーです。githubアカウントをお持ちの方はforkしてお使いください。

Shibuya.el#1 ポジションペーパー

Personal

  • 名前(任意)

    • Keisuke Fukuda (福田圭祐)
  • Twitter or Facebookのアカウント or HN等

  • @keisukefukuda / @freakda_

#!/usr/bin/python
import sys,os
START = 0
WALL = 1
GOAL = 2
OPEN = 3
class Maze(object):
@keisukefukuda
keisukefukuda / default_ctr.cpp
Created September 24, 2013 19:16
Compiler compatibility test
#include <map>
#include <string>
using namespace std;
// This is OK.
void func(map<string,string> a=map<string,string>()) {
return;
}
@keisukefukuda
keisukefukuda / tbb_minimal.cpp
Created October 23, 2013 14:48
A minimal Intel TBB program
// $ icpc -tbb tbb_minimal.cpp
#include <tbb/task_scheduler_init.h>
int main() {
tbb::task_scheduler_init init;
return 0;
}