Mostly css but requires js if you are picky like me. Feel free to remove the js.
A Pen by Adam Wicks on CodePen.
@echo off | |
set /p userDBName= Enter db name to backup: | |
set /p userHost= Enter mysql host (e.g. 127.0.0.1): | |
set /p userName= Enter mysql username (e.g. root): | |
:: This is set to my local time, in uk time format I would presume | |
md C:\backups\%userDBName%-%DATE:~-4%-%DATE:~-7,2%-%DATE:~0,2% |
// backbone collections lack a search functionality. This adds it to all collections. | |
// fuse.js is the library that powers the fuzzy search and requires being downloaded and included into your app | |
// http://kiro.me/projects/fuse.html | |
_.extend(Backbone.Collection.prototype, { | |
searchableFields: null, | |
buildSearchIndex: function(options) { | |
options = (typeof options !== 'undefined') ? options : {}; |
// A multi columns sort implementation that sorts like SQL ORDER BY. | |
_.extend(Backbone.Collection.prototype, { | |
sortOptions: null, | |
comparator: function(a, b) { | |
var atts = [], dirs = [], att, i; | |
if(!this.sortOptions) { | |
return 0; | |
} |