Skip to content

Instantly share code, notes, and snippets.

View thomasmery's full-sized avatar

Thomas Mery thomasmery

  • Aaltomeri
  • Paris
View GitHub Profile
/*
_.move - takes array and moves item at index and moves to another index; great for use with jQuery.sortable()
*/
_.mixin({
move: function (array, fromIndex, toIndex) {
array.splice(toIndex, 0, array.splice(fromIndex, 1)[0] );
return array;
}
@thomasmery
thomasmery / ajaxify-html5.js
Created August 18, 2012 13:35 — forked from balupton/README.md
Ajaxify a Website with the HTML5 History API using History.js, jQuery and ScrollTo
// https://gist.github.com/854622
(function(window,undefined){
// Prepare our Variables
var
History = window.History,
$ = window.jQuery,
document = window.document;
// Check to see if History.js is enabled for our Browser