This is now an actual repo:
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
// Skeleton jQuery plugin | |
function($) | |
{ | |
$.fn.myPlugin = function( options ) | |
{ | |
// options. | |
$.fn.myPlugin.settings = $.extend( {}, $.fn.myPlugin.defaults, options ); | |
// Go through the matched elements and return the jQuery object. |
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 urlEncode(str){ | |
//everything except [a-zA-Z0-9-_~.] must be percent encoded: http://tools.ietf.org/html/rfc5849#section-3.6 | |
} | |
function hmac_sha1(key, text){ | |
//you'll definitely want a library for this. I used Crypto-JS: http://code.google.com/p/crypto-js/ | |
} | |
function base64me(key, text){ | |
//I used Crypto-JS for this too. | |
} | |
/* |
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 (very) WIP collection of optimized/recommended jQuery plugin patterns | |
from @addyosmani, @cowboy, @ajpiano and others. | |
Disclaimer: | |
----------------------- | |
Whilst the end-goal of this gist is to provide a list of recommended patterns, this | |
is still very much a work-in-progress. I am not advocating the use of anything here | |
until we've had sufficient time to tweak and weed out what the most useful patterns |
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
<?php defined("BASEPATH") or exit("No direct script access allowed"); | |
class Migrate extends CI_Controller{ | |
public function index($version){ | |
if(ENVIRONMENT != 'development'){ | |
show_404("migrate"); | |
exit; | |
} | |
$this->load->library("migration"); |
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
$('body').on('click', '.partial', function() { | |
if (Modernizr.history) { | |
$('#content').load(this.href, function() { | |
history.pushState(null, this.title, this.href); | |
}); | |
return false; | |
} | |
} |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
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
Rem Just an example of how to sync your Sublime Text 2 settings with googledrive. Only works on Windows Vista+ | |
Rem Uses mklink to create links to your google drive http://technet.microsoft.com/en-us/library/cc753194(v=ws.10).aspx | |
Rem http://www.justfen.com/post/24560405011/syncing-sublime-text-2-with-google-drive | |
cd %APPDATA%\Sublime Text 2\ | |
mklink /d "Backup" "C:\Users\fen\Google Drive\Sublime\Backup" | |
mklink /d "Installed Packages" "C:\Users\fen\Google Drive\Sublime\Installed Packages" | |
mklink /d "Packages" "C:\Users\fen\Google Drive\Sublime\Packages" | |
mklink /d "Pristine Packages" "C:\Users\fen\Google Drive\Sublime\Pristine Packages" | |
mklink /d "Settings" "C:\Users\fen\Google Drive\Sublime\Settings\" |
OlderNewer