Skip to content

Instantly share code, notes, and snippets.

View dwickwire's full-sized avatar

Derek Wickwire dwickwire

View GitHub Profile
@dwickwire
dwickwire / selectize_no_results.js
Last active February 27, 2024 11:38 — forked from mudassir0909/selectize_no_results.js
A selectize plugin to display "No results found." message.
$(document).ready(function() {
/*
https://github.com/brianreavis/selectize.js/issues/470
Selectize doesn't display anything to let the user know there are no results.
This plugin allows us to render a no results message when there are no
results are found to select for.
*/
Selectize.define( 'no_results', function( options ) {
var self = this;
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite