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 scripts = ['js/jquery-1.9.1.js', 'js/jquery.animate-enhanced.min.js','jquery.easing.min.js', 'js/**/*.js', '!js/scripts.js']; | |
module.exports = function (grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
jshint: { | |
options: { |
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
$('a[href^="#"]').on('click',function (e) { | |
e.preventDefault(); | |
var target = this.hash, | |
$target = $(target); | |
$('html, body').stop().animate({ | |
'scrollTop': ($target.offset()) ? $target.offset().top : 0 | |
}, 400, 'ease', function () { // Set the duration and easing function as desired. | |
window.location.hash = target; | |
}); | |
}); |
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
{ | |
"cmd": ["appcfg.py", "update", "$project_path"] | |
} |
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
{ | |
"cmd": ["dev_appserver.py", "$project_path"] | |
} |
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
// Bind input change with a delay | |
$(document).on('input propertychange', 'textarea', function () { // Change 'textarea' to desired element | |
var detailsElement = $(this), | |
details = $(this).val(); | |
// If it's the propertychange event, make sure it's the value that changed. | |
if (window.event && event.type == 'propertychange' && event.propertyName != 'value') | |
return; | |
// Clear any previously set timer before setting a fresh one | |
window.clearTimeout($(this).data('timeout')); |
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
<snippet> | |
<content><![CDATA[ | |
<template name="$1"> | |
$2 | |
</template> | |
]]></content> | |
<tabTrigger>template</tabTrigger> | |
<description>Handlebars template name tag</description> | |
<scope>text.html.handlebars</scope> | |
</snippet> |
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 touchClick(sel, fnc) { | |
$(sel).live('touchstart click', function(event){ | |
event.stopPropagation(); | |
event.preventDefault(); | |
if(event.handled !== true) { | |
fnc(event); | |
event.handled = true; | |
} else { | |
return false; | |
} |
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
<snippet> | |
<content><![CDATA[ | |
<link rel="shortcut icon" href="${1:favicon.ico}"> | |
]]></content> | |
<tabTrigger>favicon</tabTrigger> | |
<description>Favicon link tag</description> | |
<scope>text.html.basic</scope> | |
</snippet> |
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( $ ){ | |
$.fn.colorSlide = function() { | |
var trigger = $(this); | |
var elWidth = trigger.outerWidth(); | |
var elHeight = trigger.outerHeight(); | |
var elPosition = trigger.offset(); | |
var elColor = trigger.css('border-left-color'); | |
trigger.find('a').css({ | |
'position': 'relative', |
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
server { | |
listen 80; | |
server_name www.raddevon.com; | |
location / { | |
rewrite ^(.*)$ http://raddevon.com$1; | |
} | |
} |
NewerOlder