🤷♀️
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
.DS_Store | |
node_modules |
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
var sinon = require('sinon'); | |
var assert = require('assert'); | |
var simpleObject = { | |
greet: function() { | |
return 'hello world'; | |
} | |
}; | |
var stub_object = sinon.stub(simpleObject); |
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 | |
# Install the latest Chromium mac nightly build, but only | |
# if it's different from the currently installed version. | |
build_url="http://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac" | |
install_dir="/Applications/Chromium.app" | |
# Determine the currently installed chromium build number | |
if [[ -d $install_dir ]]; then |
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 Song < ActiveRecord::Base | |
belongs_to :session | |
validates_presence_of :file_name | |
validate :file_name_has_to_be_audio | |
private | |
def file_name_has_to_be_audio | |
unless ['mp3', 'flac', 'wav'].include? file_name.split(".").last.downcase |
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
module Archive | |
class Directory | |
def initialize(dir) | |
@directory = dir | |
end | |
def sessions | |
@sessions ||= scan_for_sessions | |
end |
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
jQuery(function($) { | |
var input = document.createElement('input'); | |
var placeholderSupport = 'placeholder' in input; | |
// prevent IE from leaking | |
input = null; | |
if (placeholderSupport) { | |
return; | |
} |
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
diff --git a/js/vendor/pubsub.js b/js/vendor/pubsub.js | |
index ed8ecc4..b7b81cf 100644 | |
--- a/js/vendor/pubsub.js | |
+++ b/js/vendor/pubsub.js | |
@@ -25,61 +25,61 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
/** section: PubSub | |
* PubSubJS is a dependency free library for doing ['publish/subscribe'](http://en.wikipedia.org/wiki/Publish/subscribe) | |
* messaging in JavaScript. | |
- * | |
- * In order to not have surprising behaviour where the execution chain generates more than one 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
diff --git a/js/vendor/pubsub.js b/js/vendor/pubsub.js | |
index ed8ecc4..7d90e2b 100644 | |
--- a/js/vendor/pubsub.js | |
+++ b/js/vendor/pubsub.js | |
@@ -28,7 +28,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
* | |
* In order to not have surprising behaviour where the execution chain generates more than one message, | |
* publication of messages with PubSub are done asyncronously (this also helps keep your code responsive, by | |
- * dividing work into smaller chunkcs, allowing the event loop to do it's business). | |
+ * dividing work into smaller chunks, allowing the event loop to do it's business). |
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 | |
function ohai(msg) { | |
alert(msg); | |
} |
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="text/javascript"> | |
//<![CDATA[ | |
window.foo || document.write('<script src="bla.js"></script>'); | |
//]]> | |
</script> |