Skip to content

Instantly share code, notes, and snippets.

@mattsawyer77
mattsawyer77 / jquery.unserialize-form.js
Created November 17, 2011 18:08 — forked from paulirish/gist:854293
jQuery unserialize Form plugin
// Unserialize (to) form plugin - by Christopher Thielen
// adapted and desuckified (a little) by Paul Irish
// Matt Sawyer changed serialized_values array to an object and handled url-encoding for keys and values
// takes a GET-serialized string, e.g. first=5&second=3&a=b and sets input tags (e.g. input name="first") to their values (e.g. 5)
(function($) {
$.fn.unserializeForm = function(values) {
@mattsawyer77
mattsawyer77 / extract_workbench_data
Created March 23, 2012 02:36
shell script to extract XML data from a MySQL Workbench file
#!/usr/bin/env ruby
begin
def usage(message = nil)
if !message.nil?
print message + "\n"
end
print "\nusage: extract_workbench_data <MWB file> <XML file>\n\n"
end
@mattsawyer77
mattsawyer77 / update_workbench_file
Created March 23, 2012 02:37
shell script to update a MySQL Workbench file from XML
#!/usr/bin/env ruby
begin
def usage(message = nil)
if !message.nil? then
print message + "\n"
end
print "\nusage: update_workbench_file <MWB file> <XML file>\n\n"
end
@mattsawyer77
mattsawyer77 / matokai.tmTheme
Created December 5, 2012 21:50
Matokai theme for Sublime Text 2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Matokai Soda</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>

Keybase proof

I hereby claim:

  • I am mattsawyer77 on github.
  • I am mattsawyer77 (https://keybase.io/mattsawyer77) on keybase.
  • I have a public key ASAHuSOdgpWsQurWLDdza4lHjsHuF_eOSTH3t8yJf_VerAo

To claim this, I am signing this object:

generated Feb 24, 2023 20:20:52
system MacOS 13.2.1 Darwin 22.3.0 arm64
emacs 30.0.50 master dabd7feb9 ~/.emacs.d/
doom 3.0.0-pre PROFILE=_@0 HEAD -> master, origin/master, origin/HEAD f5f9c7222 2023-02-24 16:06:38 -0500 ~/.config/doom/
shell /bin/zsh
features ACL GLIB GMP GNUTLS JPEG JSON LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP ZLIB
traits batch server-running envvar-file custom-file
modules :config use-package :completion (company +childframe) (vertico +icons) :ui doom doom-dashboard hl-todo hydra modeline ophints (popup +defaults +all) (treemacs +lsp) (vc-gutter +pretty) zen :editor (evil +everywhere) file-templates fold (format +onsave) snippets word-wrap :emacs (dired +icons) electric (ibuffer +icons) (undo +tree) vc :term vterm :tools (debugger +lsp) direnv (docker +lsp) editorconfig (eval +overlay) (lookup +dictionary +offline) lsp magit make rgb tree-sitter :os (tty +osc) :lang (cc +lsp) data