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
# Remove deleted files from repo | |
$ git add -u | |
# Delete untracked files from local disk | |
$ git clean -f | |
# Amend previous commit (only unpushed commits) | |
$ git commit --amend |
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.droppie = function (options) { | |
// override options | |
var opts = $.extend({}, $.fn.plugin.defaults, options); | |
return this.each(function() { | |
$.fn.plugin.something(); | |
}); | |
}; |
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
/** | |
* Description of the method | |
* @param {Object} param1 description of object | |
* @param {String} param2 description of string | |
* @param {Int} param3 description of integer | |
*/ | |
var something = function(param1, param2, param3) { | |
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
// Global UI object | |
var UI = UI || {}; | |
UI.Generic = (function($) { | |
var my = {}; | |
// Public | |
my.foo = "Something"; | |
my.bar = function() { | |
return "Something else"; |
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
// Global UI object | |
var UI = UI || {}; | |
// Generic methods | |
UI.Generic = (function ($) { | |
var my = {}; | |
// init methods | |
my.init = function () { |
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
<div id="fb-root"></div> | |
<script type="text/javascript"> | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId: 'APP_ID_HERE', | |
status: true, | |
cookie: true, | |
xfbml: 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
ul { | |
float: left; | |
left: 50%; | |
margin: 0; | |
padding: 0; | |
position: relative; | |
} | |
ul li { | |
float: left; | |
left: -50%; |
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
/*jshint asi: false, curly: true, debug: false, eqeqeq: true, onevar: true, undef: true */ | |
/*global jQuery: true, setTimeout: 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
Find: | |
("[\S]+": ")([a-z\-]+:)([a-z\-|]+) | |
Replace: | |
$1$2 $3 |
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
Find: (\S+:\s*[\S]+),(\s+}) | |
Replace: $1$2 |
OlderNewer