general.js > memonize.js > simple-loop.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#modal { | |
-moz-opacity: .3; | |
opacity: .3; | |
background: #000; | |
background-image: none; | |
filter: alpha(opacity=30); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/application.rb | |
require 'active_record/connection_adapters/mysql2_adapter' | |
ActiveRecord::ConnectionAdapters::Mysql2Adapter.emulate_booleans = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gemfile | |
group :test do | |
... | |
gem 'stackprof' | |
... | |
end |
NewerOlder