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
<!doctype html> | |
<head> | |
<style> | |
body { | |
margin: 50px; | |
} | |
ol { |
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
// Views | |
var SchoolsView = Backbone.View.extend({ | |
el: $('#ridley_schools table'), | |
collection: new SchoolList(), | |
matchingSchools: $('#school_row_template').html(), | |
initialize: function(){ | |
_.bindAll(this, 'render'); // to solve the this issue | |
this.collection.bind('reset', this.render); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>untitled</title> | |
<style> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>untitled</title> | |
<style> |
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
$('#chat_app_input').keypress(function(e) { | |
if (e.keyCode === 13) { | |
console.log('enter pressed'); | |
} | |
return false; | |
}); |
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 () { | |
setInterval(function(){ | |
$('.image-preview-wrapper').not('.hideBtnAdded').each(function() { | |
var t = $(this); | |
if (t.find('.hideImg').length === 0) { | |
t.append('<button class="hideImg">Hide This Image</button>'); | |
t.addClass('hideBtnAdded'); | |
} | |
}); |
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
Modernizr.load({ | |
test: Modernizr.mq('only screen and (min-width: 768px)'), | |
yep : ['//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', 'js/plugins.js', '//fonts.googleapis.com/css?family=PT+Sans|PT+Sans+Narrow|Vollkorn:400italic,400'], | |
complete: function() { | |
if (window.jQuery) { | |
var images = '<li><img src="http://dummyimage.com/880x310/efefef/000.png"></li><li><a href="#"><img src="img/slide-marriage.jpg"></a></li><li><a href="#"><img src="http://dummyimage.com/880x310/123/fff.png"></a></li><li><a href="#"><img src="http://dummyimage.com/880x310/999/fff.png"></a></li>'; | |
$('.slides').append(images); | |
Modernizr.load('js/script.js'); | |
console.log('done'); | |
} |
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
// Email ticket to my Wunderlist | |
(function toWunderlist() { | |
var title = document.title | |
.replace(' - Cramer Dev', '') | |
.replace('Scrum Task ', ''), | |
url = document.location.href; | |
$('#content').find('.contextual').prepend('<a href="mailto:[email protected]?body=' + title + ' - ' + url + '" class="to-wunderlist">Add to Wunderlist</a>'); | |
})(); |
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
@mixin flag-rag-right($ragClipColor, $ragShadow, $height, $width) | |
background: red | |
display: block | |
height: $height | |
position: relative | |
width: $width | |
&:before, | |
&:after |
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
/* | |
* Yeah, so rake:assets:precompile will fail if this file is ascii, and something | |
* it imports is utf-8. To fix it, here is a snowman: ☃ (no, really.) | |
*/ |