/** * 16-bit Not: * for i=0..15: out[i] = not in[i] */ CHIP Not16 { IN in[16]; OUT out[16]; PARTS: Not(in=in[0],out=out[0]); Not(in=in[1],out=out[1]); Not(in=in[2],out=out[2]); Not(in=in[3],out=out[3]); Not(in=in[4],out=out[4]); Not(in=in[…
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/01/Or16.hdl /** * 16-bit bitwise Or: * for i = 0..15 out[i] = (a[i] or b[i]) */ CHI…
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/01/And16.hdl /** * 16-bit bitwise And: * for i = 0..15: out[i] = (a[i] and b[i]) */…
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/01/DMux.hdl /** * Demultiplexor: * {a, b} = {in, 0} if sel == 0 * {0, in} if sel ==…
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/01/Mux.hdl /** * Multiplexor: * out = a if sel == 0 * b otherwise */ CHIP Mux { IN …
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/01/Xor.hdl /** * Exclusive-or gate: * out = not (a == b) */ CHIP Xor { IN a, b; OUT…
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/01/Or.hdl /** * Or gate: * out = 1 if (a == 1 or b == 1) * 0 otherwise */ CHIP Or {…
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/01/Not.hdl /** * Not gate: * out = not in */ CHIP Not { IN in; OUT out; PARTS: Nand…
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/01/And.hdl /** * And gate: * out = 1 if (a == 1 and b == 1) * 0 otherwise */ CHIP A…
#include <stdio.h> #include <unistd.h> int main(int argc, char *argv[]) { char *delivery = ""; int thick = 0; int count = 0; char ch; while ((ch = getopt(argc, argv, "d:t")) != EOF) switch (ch) { case 'd': delivery = optarg; break; case 't': thick = 1; break</unistd.h></stdio.h>…
対話システム (自然言語処理シリーズ)作者: 中野幹生,船越孝太郎,中野有紀子,駒谷和範,奥村学出版社/メーカー: コロナ社発売日: 2015/01/01メディア: 単行本この商品を含むブログを見る
[iOS] JSONをパースして配列を取得・テーブルビューに表示
iOS - Web APIの叩き方いろいろ - Qiita iOS7から追加されたNSURLSessionを使うパターン。や、NSURLConnectionをつかうパターンとか。 - (void)viewDidLoad { [super viewDidLoad]; NSURLSessionConfiguration *urlSessionConfiguration; urlSessionConfigur…
LinuxへのPylearn2のインストール方法。(対象はubuntu) 1. python、git、pipのインストール aptデータベースの更新 sudo apt-get update gitをインストール sudo apt-get install -y --force-yes git pythonをインストール sudo apt-get install -y --forc…
Pylearn2とは Welcome — Pylearn2 dev documentation Pylearn2 is still undergoing rapid development. Don’t expect a clean road without bumps! まだ開発中のライブラリとのこと。 手法 ニューラルネットワークの課題 誤差情報が伝播されない 収束が遅い…
bayon Tutorial_ja - bayon - a simple and fast clustering tool - Google Project Hosting 文書のカテゴライズ 本来はクラスタリングツールだが文書カテゴライズもできる。 https://code.google.com/p/bayon/wiki/Tutorial_ja#ドキュメントに類似するクラ…
iOS7+Xcode5.1.1で実機で動作するところまで設定した Xcode5時代の「かんたん」iOSアプリ開発セットアップ - Qiita iOSアプリをiPhone実機で動かす (3): 黄昏てなんかいられない
エデュケーションロボット Romo Romo - The Programmable, Telepresence Robot Toy for Kids and Adults Romo(ロモ)公式サイト‐体感型エデュケーショナルロボット‐ Romo(ロモ)はiPhoneなどで動く「体感型のエデュケーショナルロボット」で、誰でも動かす…
gitをインストール yum -y install gitプロキシの設定 git config --global http.proxy http://proxy.mycompany.com:8080 git config --global https.proxy http://proxy.example.com:8080が、git clone でエラーになる。ソースから入れた。
汎用連想計算エンジン GETA GETA3をインストールしてみた。GETA2から、apiやコマンドの仕様が変更されているようだ。 GETA - Sunsept インストール INSTALL.txtに動かし方が書いてある。 wget http://geta.ex.nii.ac.jp/release/geta32u-release.tar.gz tar …
汎用連想計算エンジン GETA単一CPU用のGETA2版と複数CPU対応のGETA3版がある。GETA2の動かし方をメモ。 インストール wget http://geta.ex.nii.ac.jp/getaN2002/release/geta2_200102.tgz tar zxvf getabench_200202.tgz cd geta2 ./configure ここで、CentO…
vagrantでベアボーンを作ったあとの設定メモ。テスト用なのでセキュリティは適当。本来はprovisioningで自動化した方がいいのだが、とりあえず勉強を兼ねて手動で設定してみる。 ネットワーク設定 Vagrantfileでport fowardingとHost Only Networkを設定する…
下記を使って設定した。 KeyRemap4MacBook PCKeyboardHack 変更内容 左command → 英語 右command → 日本語 caps lock → control
base boxes A list of base boxes for Vagrant - Vagrantbox.esべアボーン作成 vagrant box add centos65 http://www.lyricalsoftware.com/downloads/centos65.box vagrant init centos65 vagrant up vagrant ssh休止→再開 vagrant suspend vagrant up破棄 v…
CentOSの開発環境、設定手順(with VirtualBox) | mutter 先ほどカーネルを更新していても、インストール時にもっと新しいカーネル使えよと注意される。が、インストール自体は完了する(Linuxのカーネルとバージョンが異なってはいるけれどCentOS的に必要…