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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle' | |
}); |
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
$(document).ready(function(){ | |
//Span that the text lives | |
$('.class-name').each(function(){ | |
//Get the width of the span | |
var textWidth = $(this).width(); | |
//If the width of the span is greater than 105px then run the if. | |
if(textWidth > 105){ | |
//Your class that shrinks the the font size | |
$(this).addClass('graph-text-smaller'); | |
} |
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
<!--[if lt IE 9]> | |
<%= stylesheet_link_tag 'ie', media: 'all' %> | |
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<script language="javascript" type="text/javascript" src="/assets/excanvas.js"></script> | |
<![endif]--> |
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
<!-- [if lt IE 9]> | |
<%= stylesheet_link_tag 'ie', media: 'all' %> | |
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<script language="javascript" type="text/javascript" src="/assets/excanvas.js"></script> | |
<![endif] --> |
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 nextPageNumber = 1; | |
function nextPage() { | |
//EX: | |
//http://www.robert-deluca.com/blog/page/2/ | |
nextPageNumber++; | |
var pageNumber = "http://www.robert-deluca.com/blog/page/" + nextPageNumber; | |
//Debugging | |
//console.log(nextPageNumber); | |
//console.log(pageNumber); | |
return pageNumber; |
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
xaxis: { | |
pad: 0, | |
padMin: 0, | |
padMax: 0, | |
min: "2013-11-07", //First date in the graph | |
max: "2014-01-05", //Last date in the graph | |
renderer: $.jqplot.DateAxisRenderer, | |
tickOptions:{ | |
formatString:'%b %#d' | |
} |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle' | |
}); |
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
$("#normal_select").dropkick({ | |
mobile: true | |
}); |
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
// ==UserScript== | |
// @name Vine download link | |
// @namespace http://www.robert-deluca.com | |
// @version 0.1 | |
// @description Download a vine video | |
// @author Robert DeLuca | |
// @match https://vine.co/* | |
// @grant none | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// ==/UserScript== |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |