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 ($) { | |
| $.fn.pluginName = function (options) { | |
| if (this.length > 1) { | |
| this.each(function () { $(this).pluginName(options); }); | |
| return this; | |
| } | |
| /* | |
| private variables | |
| var x = ... |
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
| platform :ios, "6.0" | |
| pod 'JSONKit' | |
| pod 'AFAbstractRESTClient' | |
| pod 'SDWebImage' | |
| pod 'SWRevealViewController' |
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
| # NGINX configuration | |
| # System configuration ################## | |
| worker_processes 3; | |
| events { | |
| worker_connections 1024; | |
| } | |
| user nobody; | |
| # Web configuration ##################### |
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
| rm -rf .rvm* | |
| #Next you’ll want to remove the following line from your .bash_profile | |
| [text] | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function | |
| [/text] | |
| #You’ll then want to remove the /etc/rvmrc file as this has some information about the RVM install in your /home folder | |
| [bash] |
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
| $("a[href='#top']").click(function() { | |
| $("html, body").animate({ scrollTop: 0 }, "slow"); | |
| 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
| var $tfoot = $('<tfoot></tfoot>'); | |
| $($('thead').clone(true, true).children().get().reverse()).each(function(){ | |
| $tfoot.append($(this)); | |
| }); | |
| $tfoot.insertAfter('table thead'); |
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
| var maxheight = 0; | |
| $("div.col").each(function(){ | |
| if($(this).height() > maxheight) { maxheight = $(this).height(); } | |
| }); | |
| $("div.col").height(maxheight); |
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
| setInterval(function() { | |
| $("#refresh").load(location.href+" #refresh>*",""); | |
| }, 10000); // milliseconds to wait |
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
| $.preloadImages = function() { | |
| for(var i = 0; i<arguments.length; i++) { | |
| $("<img />").attr("src", arguments[i]); | |
| } | |
| }; | |
| $(document).ready(function() { | |
| $.preloadImages("hoverimage1.jpg","hoverimage2.jpg"); | |
| }); |
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
| $('a').each(function() { | |
| var a = new RegExp('/' + window.location.host + '/'); | |
| if(!a.test(this.href)) { | |
| $(this).click(function(event) { | |
| event.preventDefault(); | |
| event.stopPropagation(); | |
| window.open(this.href, '_blank'); | |
| }); | |
| } | |
| }); |
OlderNewer