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
git remote add forked [email protected]:NEW_APP_NAME.git | |
git remote rename heroku old | |
git remote rename forked heroku | |
git push heroku master | |
heroku labs:enable user-env-compile -a NEW_APP_NAME |
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
# gemfile | |
gem 'asset_sync' | |
# application.rb | |
config.assets.initialize_on_precompile = true | |
config.assets.precompile += ['stuff.js', 'stuff.css'] | |
# production.rb | |
config.assets.enabled = true |
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() { | |
function setSelectedSize(s) { | |
var arr = document.getElementsByTagName(window.getSelection().baseNode.parentNode.tagName); | |
for(var i=0; i<arr.length; i++) { | |
arr[i].style.fontSize = "" + s + "px"; | |
} | |
} | |
window.addEventListener("mouseup", function() { | |
if(window.getSelection().type == "Range") { |
NewerOlder