全体として太一が感覚的に実践している事を論理的に説明しようと試みている為、
説明の粒度が適切でなかったり一貫性が無いように見える部分があるかもしれない。
普段やっているけども書ききれていない事も多分きっとある。
- コードを嗜む
- コードを学ぶ
- 武器を手に入れる
#!/bin/sh | |
mkdir psc_benchmark | |
cd psc_benchmark | |
wget -O cond_signal_benchmark.c https://raw.github.com/gist/1273378/3cfe340710f469fdcfa623653f350184a99679c4/cond_signal_benchmark.c | |
gcc -o cond_signal_benchmark cond_signal_benchmark.c -lpthread | |
base=100000 | |
c=$base |
#include <stdlib.h> | |
#include <iostream> | |
class ChildA; | |
class ChildB; | |
class Base { | |
public: | |
bool isChildA (); | |
bool isChildB (); |
/etc/yum.conf
proxy=http://localhost:3128/
by npm command
#define BUILDING_NODE_EXTENSION | |
#include <node.h> | |
#include <unistd.h> | |
// 趣味。特にnamespaceを切る必要はない | |
namespace addon { | |
// ---------------------------------------------------------------------------- | |
// 引数を受け取って、普通に結果を返すだけの関数 | |
v8::Handle<v8::Value> Add(const v8::Arguments& args) { |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib | |
import json | |
import subprocess | |
import os | |
import time | |
conf = {'host': 'localhost', |
#!/usr/bin/ruby | |
# -*- coding: utf-8 -*- | |
## 実行方法 | |
# /usr/bin/env rubyと書く文化と/usr/bin/ruby と書く文化の両方があるらしい。 | |
# /usr/bin/rubyと書いてもパス検索されるのでほとんどの環境では | |
# 両方動くらしいという記述を見かけた。未検証 | |
puts '--- Syntax --------------' | |
# - 終端記号なしで基本1行1ステートメント、文法上、インデントの制約は無い |
[forge(Darwin):~] % brew -v install R | |
Homebrew 0.9.4 | |
==> Installing dependencies for r: cloog, gfortran | |
==> Installing r dependency: cloog | |
==> Downloading http://www.bastoul.net/cloog/pages/download/count.php3?url=./cloog-0.18.0.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/cloog-0.18.0.tar.gz | |
tar xf /Library/Caches/Homebrew/cloog-0.18.0.tar.gz | |
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/cloog/0.18.0 --with-isl-prefix=/usr/local/opt/isl | |
./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/cloog/0.18.0 --with-isl-prefix=/usr/local/opt/isl | |
checking for a BSD-compatible install... /usr/bin/install -c |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
</head> | |
<body> | |
<div id="chart" style='overflow:auto; width:960px; height:480px; background: #eee;'></div> | |
</body> | |
<script type="text/javascript"> |