performance
general.js > memonize.js > simple-loop.js
// Vue.js like reactive object pattern | |
// show detail https://github.com/vuejs/vue/blob/master/src/core/observer/index.js | |
const Watcher = function() {} | |
Watcher.prototype.update = function () { | |
console.log('Watcher update') | |
} | |
const Dep = function(watcher) { | |
this.id = this.id ? this.id ++ : 0 | |
this.subs = [] |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> | |
custom-checkbox { |
general.js > memonize.js > simple-loop.js
bundle install
bundle exec ruby app.rb
[2016-09-10 00:01:46] INFO WEBrick 1.3.1
[2016-09-10 00:01:46] INFO ruby 2.2.2 (2015-04-13) [x86_64-darwin15]
create rpm hello using rpmbuild.
docker build -t fedora -f ./fedora.dockerfile .
ocker run -it fedora /bin/bash
bash-4.3# hellow
bash: hellow: command not found
bash-4.3# hello
# setup docker-machine | |
docker-machine create -d virtualbox dev | |
eval "$(docker-machine env dev)" | |
# docker-compose up | |
docker-compose up -d | |
Creating dockerefk_elasticsearch_1 | |
Creating dockerefk_fluentd_1 | |
Creating dockerefk_node_app_1 | |
Creating dockerefk_kibana_1 |
#modal { | |
-moz-opacity: .3; | |
opacity: .3; | |
background: #000; | |
background-image: none; | |
filter: alpha(opacity=30); | |
} |
# config/application.rb | |
require 'active_record/connection_adapters/mysql2_adapter' | |
ActiveRecord::ConnectionAdapters::Mysql2Adapter.emulate_booleans = false |
# Gemfile | |
group :test do | |
... | |
gem 'stackprof' | |
... | |
end |