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": ["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; | |
} | |
} |
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 _original = $.fn.modal.Constructor.prototype.show; | |
function trigger(target, name, relatedTarget) { | |
target.trigger($.Event(name, { relatedTarget: relatedTarget })); | |
} | |
$.extend($.fn.modal.Constructor.prototype, { | |
show: function (_relatedTarget) { | |
var thisModal = this; |
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 vimp() { | |
changed=false | |
for plugin | |
do | |
if grep -q "$plugin" ~/.vimrc.bundles* | |
then | |
echo "$plugin already installed" | |
else | |
echo "Adding $plugin to bundles config" | |
echo Bundle \"$plugin\" >> ~/.vimrc.bundles.local |
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 gulp = require('gulp'); | |
// Using this plugin, you won't manually have to require each plugin you add. This does the work for you. | |
// Just remember you'll have to prepend 'plugins' to your plugin function when you build your tasks. | |
var gulpLoadPlugins = require('gulp-load-plugins'); | |
// Turn lazy loading of plugins off to make the connect plugin work | |
var plugins = gulpLoadPlugins({lazy: false}); | |
// Check out the autoprefixer docs to see how to build settings for gulp-autoprefixer | |
// https://github.com/ai/autoprefixer | |
var prefixerSetting = ['last 1 versions', '> 1%']; |
NewerOlder