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
#!/bin/bash | |
# Set up the Heroku scheduler to run this command every hour. | |
# Source: https://gist.github.com/ralph/b1b4023e0c03aa8c68f8219cd089de46 | |
utc_hour=`date -u +'%H' | sed 's/^0*//'` | |
modulo="${RESTART_EVERY_X_HOURS:-6}" | |
n=$(($utc_hour % $modulo)) | |
echo $n |
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
run: | |
rbenv install ./2.2.2-railsexpress | |
or edit install.sh to include the RUBY_VERSION you want to install and run the script. |
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
//location: app/components/list-link.js | |
var ListLinkComponent = Ember.Component.extend({ | |
tagName: 'li', | |
classNameBindings: ['active'], | |
active: function() { | |
return this.get('childViews').anyBy('active'); | |
}.property('[email protected]') | |
}); | |
export default ListLinkComponent; |
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
/* Put your CSS here */ | |
html, body { | |
margin: 20px; | |
} | |
.color { | |
height: 200px; | |
width: 200px; | |
} |