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
$(function() { | |
var badge_unreadMessages = $("#unread_message_count"); | |
// Script to check for notifications runs | |
// If the script comes back with new notifications: | |
badge_unreadMessages.text( parseInt( badge_unreadMessages.text() ) + 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
<script type="x-handlebars-template" id="messages_messageListItem"> | |
<div class="list"> | |
<div class="sub"> | |
<div class="subject"> | |
{{subject}} | |
</div> | |
<div class="notification"> | |
{{unread}} | |
</div> | |
<div class="message"> |
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
git log --pretty=format:'%s' | tr '[:upper:]' '[:lower:]' | tr '[:space:]' '\n' | sort | uniq -c | sort -nr | grep -iE "(fuck|shit|bitch|damn|hate|ugly|stupid|asshole|moron|eff|worthless|piss)" |
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> | |
// Blah Blah Blah | |
</head> | |
<body> | |
<script type="text/javascript"> | |
/** | |
* We make absolutely positive that the first thing on the stack is our timer starting. | |
*/ | |
// And away we go! |
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
[ | |
{ | |
"keys": [ | |
"alt+g" | |
], | |
"command": "toggle_setting", | |
"args": { | |
"setting": "gutter" | |
} | |
}, |
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
// For the purposes of this gist, assume we have declared the variable str and it is actually a string. | |
var str = "This is my awesome string. \n I love strings. \n\t\t\t Stringy string string! \n\t\t\t\tWhat??"; | |
// Regex to remove all tabs and newlines. | |
str = str.replace(/[\t]|[\n]/gm, ''); | |
// Regex to replace all sets of 2 or more space characters with a single space | |
str = str.replace(/\s{2,}/g, ' '); | |
// Regex to remove all HTML comments |
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
Show hidden characters
[ | |
// Nil theme for Sublime Text 2 | |
// https://github.com/nilium/st2-nil-theme | |
// TABS | |
// ========================================================== | |
// - Tabset |
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
/** | |
* All of the following Mixins are credited to their original authors, I DID NOT write ANY of these awesome things | |
* unless I specifically commented immediately preceding the mixin. | |
*/ | |
// underscore-pickrandom.js | |
// (c) 2012 Simon Kågedal Reimer | |
// This file is freely distributable under the MIT license. | |
// https://gist.github.com/skagedal/1709989 | |
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
/** | |
* Links and such | |
* | |
* http://docs.mongodb.org/manual/reference/mongo-shell/ | |
* http://docs.mongodb.org/manual/reference/javascript/ | |
* http://docs.mongodb.org/manual/reference/meta-query-operators/ | |
*/ | |
/** | |
* Show the names of all collections and the number of documents in each of them. |
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
// Let's wrap all these into the same file :D | |
@mixin i-class($name,$pua) { | |
.#{$classPrefix}#{$name}:before { | |
content: "\f#{$pua}"; | |
} | |
} | |
@mixin ie-class($name,$pua) { | |
.#{$classPrefix}#{$name} { |