Skip to content

Instantly share code, notes, and snippets.

@ababup1192
ababup1192 / README.md
Last active August 29, 2015 14:16
React.js 公式ページ(http://facebook.github.io/react/index.html) なぞり 02 Tutorial1

Facebookなどのコメントボックスインターフェース(見る、投稿、バックエンド連携)を作る。以下の構造を再現するチュートリアル。

- CommentBox
  - CommentList
  - Comment
  • CommentForm
@ababup1192
ababup1192 / README.md
Last active August 29, 2015 14:16
React.js 公式ページ(http://facebook.github.io/react/index.html) なぞり 03 Tutorial2

Facebookなどのコメントボックスインターフェース(見る、投稿、バックエンド連携)を作る。以下の構造を再現するチュートリアル。

- CommentBox
  - CommentList
  - Comment
  • CommentForm
@ababup1192
ababup1192 / README.md
Created February 24, 2015 07:40
React.js 公式ページ(http://facebook.github.io/react/index.html) なぞり 04 Tutorial3

Facebookなどのコメントボックスインターフェース(見る、投稿、バックエンド連携)を作る。以下の構造を再現するチュートリアル。

- CommentBox
  - CommentList
  - Comment
  • CommentForm
import lejos.hardware.motor.Motor;
import lejos.robotics.RegulatedMotor;
import lejos.utility.Delay;
public class MotorSample {
private static final RegulatedMotor leftMotor = Motor.A;
private static final RegulatedMotor rightMotor = Motor.B;
@ababup1192
ababup1192 / Client.java
Last active August 29, 2015 14:17
Lego EV3 Socket Program
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Client {
public static void main(String args[]) {
MessageWriter messageWriter = new MessageWriter("192.168.11.37", 8888);
messageWriter.connect();
BufferedReader keyIn = new BufferedReader(new InputStreamReader(System.in));
@ababup1192
ababup1192 / Gemfile
Last active August 29, 2015 14:17
Sinatra hello world with bundler and shotgun
# A sample Gemfile
source "https://rubygems.org"
gem "sinatra"
gem "shotgun"
@ababup1192
ababup1192 / scheme.rb
Last active August 29, 2015 14:17
つくって学ぶプログラミング言語 Scheme in Ruby
# 式expを評価するときに環境envが追加された。
def _eval(exp, env)
# リストじゃなかったら
if not list?(exp)
# 数字の場合、そのまま返す。
if immediate_val?(exp)
exp
# 変数だった場合は、環境から値を取り出す。
else
lookup_var(exp, env)
@ababup1192
ababup1192 / Cafe.scala
Last active August 29, 2015 14:18
FP in Scala. p4~11 Part1 関数型プログラミングの基礎 タグ管理
package org.ababup1192
class Coffee(val price: Int) {
// 補助コンストラクタ ↑基本コンストラクタを必ず呼び出す。
def this() = this(300)
override def toString: String = {
s"Coffee($price)"
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.16470588743686676</real>
<key>Green Component</key>
<real>0.20784313976764679</real>
@ababup1192
ababup1192 / .tmux.conf
Created April 9, 2015 04:55
tmux conf
# prefix key
unbind C-b
set-option -g prefix C-t
# escape遅延設定1ms(default 500ms)
set -sg escape-time 1
# status
setw -g status-fg white
setw -g status-bg black