This file contains hidden or 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
| #!/bin/bash | |
| set -x | |
| set -e | |
| export DEBIAN_FRONTEND=noninteractive | |
| curl -LO https://dev.mysql.com/get/mysql-apt-config_0.8.3-1_all.deb | |
| echo mysql-apt-config mysql-apt-config/select-product select Apply | sudo debconf-set-selections | |
| echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | sudo debconf-set-selections | |
| echo mysql-apt-config mysql-apt-config/select-connector-python select none | sudo debconf-set-selections |
This file contains hidden or 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
| 1. Namespace | |
| 2. Backbone.history.start() | |
| 3. Routers -> Views <- Collections (Model) | |
| <- Templates | |
| => .html() to Render |
This file contains hidden or 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/initializers/devise_encryptor.rb | |
| require "digest/sha1" | |
| REST_AUTH_SITE_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' | |
| REST_AUTH_DIGEST_STRETCHES = 10 | |
| module Devise | |
| module Encryptable | |
| module Encryptors | |
| module ModelClassMethods |
This file contains hidden or 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
| when you don’t create things, you become defined by your tastes rather than ability. your tastes only narrow & exclude people. so create. – Why the lucky stiff | |
| (何も作っていないとき、人は自分の能力よりも好みによって特徴付けられることになる。好みは世界は狭め、他人を排除するばかりだ。だから、作れ) | |
| http://el.jibun.atmarkit.co.jp/rails/2012/04/_why-c06c.html | |
| http://www.youtube.com/watch?v=Urw98i42HsI |
This file contains hidden or 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
| $ coffee -w -cj ../mvc.community.js *.coffee | |
| $ coffee -w -o ../ -c mvc.community.invites.coffee |
This file contains hidden or 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
| <span class="channel-horizontal-menu-badge">ライブ ストリーミング中</span> | |
| .channel-horizontal-menu li a span.channel-horizontal-menu-badge { | |
| background-color: | |
| #9A302C; | |
| color: | |
| white; | |
| font-size: 8px; | |
| font-weight: bold; | |
| padding: 3px 5px; |
This file contains hidden or 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
| function makeArray(arg1, arg2){ | |
| return [ this, arg1, arg2 ]; | |
| } | |
| var gasGuzzler = { year: 2008, model: 'Dodge Bailout' }; | |
| makeArray.apply( gasGuzzler, [ 'one', 'two' ] ); | |
| // => [ gasGuzzler, 'one' , 'two' ] | |
| makeArray.call( gasGuzzler, 'one', 'two' ); | |
| // => [ gasGuzzler, 'one' , 'two' ] |
This file contains hidden or 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
| // Make a function that assigns event handler functions to an array of nodes the right way. | |
| // When you click on a node, an alert box will display the ordinal of the node. | |
| var add_the_handlers = function (nodes) { | |
| var i; | |
| for (i = 0; i < nodes.length; i += 1) { | |
| nodes[i].onclick = function (i) { | |
| return function (e) { | |
| alert(i); | |
| }; |