Skip to content

Instantly share code, notes, and snippets.

@marke123
marke123 / turbolinks-navigate-back-one-page.js
Last active July 13, 2020 17:03
Turbolinks - Navigate back one page / Navigate to previous page
@marke123
marke123 / js.multifileselector.js
Last active July 10, 2020 00:36
js.multifileselector.js - intercepts HTML file inputbrowse clicks and inserts formatted file name display
/**
* jquery.multifileselector.js
*
* Original code by Rocky Meza
* Portions are Copyright (c) 2013, Fusionbox, Inc.
*
* Updated and modified code by M.E.
*
* This jQuery file picker plugin allows choosing multiple files, via <input type="file" > fields, one at a time, inserting the file names into HTML view
*
@marke123
marke123 / safesearchreplace.php
Created June 26, 2013 21:39
safe search and replace
<?php
// Safe Search and Replace on Database with Serialized Data v2.0.0
// This script is to solve the problem of doing database search and replace
// when developers have only gone and used the non-relational concept of
// serializing PHP arrays into single database columns. It will search for all
// matching data on the database and change it, even if it's within a serialized
// PHP array.