Skip to content

Instantly share code, notes, and snippets.

This is transolation written by me as Japanese about Vue.js

データバインディングについてVue.jsと Backbone.stickitを比較する - mizchi's blog http://mizchi.hatenablog.com/entry/2014/02/18/163721

My Engilish is not so good. So please teach me what to say is better.


This is resource to suite to use vue.js againt my compony so I blame Backbone.stickit :D

@muddydixon
muddydixon / README.md
Last active August 29, 2015 13:56
iris.csvの棒グラフを作ってみよう

サーバの立ち上げ方

  • python: python -m SimpleHTTPServer 5000
  • perl: plackup -MPlack::App::Directory -e 'Plack::App::Directory->new(root => ".")->to_app
  • ruby: ruby -rwebrick -e 'WEBrick::HTTPServer.new(:Port => 5000, :DocumentRoot => ".").start'
  • php: php -S 0.0.0.0:5000
//A perfectly valid Reactive Streams Processor with Reactor (to attach to a Stream or connect with Actions/Promises) :
//This Processor is an Identity Producer/Subscriber - every request is propagated upside and every value propagated downside
// identityProcessor will not affect its input value and will eventually broadcast it to its subscribers.
deferred = Streams.defer(env);
deferred
.parallel(env.getDispatcher(dispatcher))
.map(stream -> stream
.map(i -> i)
.reduce((Tuple2<Integer, Integer> tup) -> {
@voluntas
voluntas / mqtt_meetup_tokyo_201408.rst
Last active August 29, 2015 14:02
MQTT Meetup Tokyo 2014.08

MQTT Meetup Tokyo 2014.08

概要

内容

@pocketberserker
pocketberserker / gist:bb5059a58ddf182bf5a2
Created July 13, 2014 07:00
Scalaz勉強会 データ構造ひと巡り
@ueshin
ueshin / scalamatsuri2014.md
Created September 6, 2014 02:42
SparkSQL samples for ScalaMatsuri2014
#!/usr/bin/env ruby
BIT_OR = '\|'
BIT_AND = '\&'
ADD = '\+'
MULTIPLATION = '\*'
input = ARGV[0]
[BIT_OR, BIT_AND, ADD, MULTIPLATION].each do |operator|
def foo(str)
result = str.scan(/(\*|\+|&|\||\d+)/).flatten
while result.size != 1
result = hoge(result)
end
result.first
end
def hoge(ary)
%w(| & + *).each do |op|
@saboyutaka
saboyutaka / kana01.rb
Last active August 29, 2015 14:13
kana01 ペアプロ
input = [
# [ id, input, expected ],
[ 0, "4*5+6&7|8", "44" ],
[ 1, "15*5", "75" ],
[ 2, "15+5", "20" ],
[ 3, "15&5", "5" ],
[ 4, "15|5", "15" ],
[ 5, "30*15*5", "2250" ],
[ 6, "30*15+5", "600" ],
[ 7, "30*15&5", "150" ],
# 優先順位は変わらないので、優先順位にそってメッソドを再定義する
# メソッドが入れ替わっているので、式内の演算子も置換で入れ替える。
#
# ↑優先順位高
# | ビット or
# & ビット and
# + 加算
# * 乗算
# ↓優先順位低
#