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/sh | |
git diff --cached | grep --quiet "^+.*console\.log" | |
RETVAL=$? | |
if [ $RETVAL -eq 0 ]; then | |
echo "Error: detected console.log statement" | |
exit 1 | |
fi |
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
/* | |
* Play an embedded video and trigger a callback when finished playing (using jQuery). | |
* | |
* Vimeo JavaScript library | |
* http://vimeo.com/api/docs/player-js | |
* https://github.com/vimeo/player-api/tree/master/javascript | |
*/ | |
var vimeo = $f('vimeo'); // id of iframe or iframe element |
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
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script src="http://staging.tokbox.com/v0.91/js/TB.min.js"></script> | |
<script type="text/javascript"> | |
function log(message) { | |
console.log(message); | |
$("#console").append("<p>" + message + "</p>"); | |
} |
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/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<scheme name="Jetblack" version="1" parent_scheme="Default"> | |
<option name="LINE_SPACING" value="1.1" /> | |
<option name="EDITOR_FONT_SIZE" value="12" /> | |
<option name="EDITOR_FONT_NAME" value="Monaco" /> | |
<colors> | |
<option name="ADDED_LINES_COLOR" value="808080" /> | |
<option name="ANNOTATIONS_COLOR" value="" /> | |
<option name="ANNOTATIONS_MERGED_COLOR" value="" /> | |
<option name="CARET_COLOR" value="" /> |
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
alias g='git' | |
alias gcd='git checkout dev' | |
alias gcm='git checkout master' | |
alias gd='git diff' | |
alias gmd='git merge dev' | |
alias gp='git push' | |
alias grm='git rebase master' | |
alias gsl='git stash list' | |
alias gsp='git stash pop' | |
alias gss='git stash save' |
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
.share-links, | |
.xg_module_foot .xg_icon-rss, | |
.xj_count_friendRequestsReceived .xj_no_friend_requests { | |
display: none; | |
} |
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
class Views::Layouts::Application < Erector::Widgets::Page | |
# Include view-specific "onready" Javascript, if present | |
def head_content | |
super() | |
javascript_filename = "#{self.class.model_name.singular[/^views_(.+)/,1].gsub(/_/, '.')}.onready.js" | |
if File.exist? "#{ActionView::Helpers::AssetTagHelper::JAVASCRIPTS_DIR}/#{javascript_filename}" | |
javascript_include_tag javascript_filename | |
end | |
end |