Skip to content

Instantly share code, notes, and snippets.

View croucha's full-sized avatar
😎

Andre croucha

😎
  • [the cloud]
View GitHub Profile
// Define start time
Long start = System.currentTimeMillis();
// Run a bunch of things....
// Define total
Long total = start - System.currentTimeMillis();
// Debug
logger.debug("Query time in milliseconds: " + total);
@croucha
croucha / underscore.move.js
Created November 23, 2016 02:18 — forked from kjantzer/underscore.move.js
Underscore.js Mixin: Move - takes array and moves item at index and moves to another index; great for use with jQuery.sortable()
/*
_.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;
}
{
"git.ignoreLegacyWarning": true,
"extensions.ignoreRecommendations": true,
"editor.renderWhitespace": "all",
"editor.insertSpaces": true,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"editor.rulers": [100],
"editor.fontSize": 14,
"editor.useTabStops": true