Skip to content

Instantly share code, notes, and snippets.

View JoeMattie's full-sized avatar

Joe Mattie JoeMattie

  • Pluralsight
  • Fairbanks, AK
View GitHub Profile

Keybase proof

I hereby claim:

  • I am joemattie on github.
  • I am joemattie (https://keybase.io/joemattie) on keybase.
  • I have a public key ASCFV9nDTMYAJiZUCvbLwW_WsTtePQH--UPAmJJuTNNEOAo

To claim this, I am signing this object:

@JoeMattie
JoeMattie / Icon.jsx
Created June 3, 2019 18:17
SVG Icon Elements
import React, { Component } from 'react';
import './styles/Icon.scss';
import './styles/hint.min.css';
export default class Icon extends Component {
render() {
let i = {
menu: 'M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z',
contact_mail: 'M21,8V7L18,9L15,7V8L18,10M22,3H2A2,2 0 0,0 0,5V19A2,2 0 0,0 2,21H22A2,2 0 0,0 24,19V5A2,2 0 0,0 22,3M8,6A3,3 0 0,1 11,9A3,3 0 0,1 8,12A3,3 0 0,1 5,9A3,3 0 0,1 8,6M14,18H2V17C2,15 6,13.9 8,13.9C10,13.9 14,15 14,17M22,12H14V6H22',
#!/bin/sh
mysqldump --compact --compatible=ansi --default-character-set=binary mydbname |
grep -v ' KEY "' |
grep -v ' UNIQUE KEY "' |
perl -e 'local $/;$_=<>;s/,\n\)/\n\)/gs;print "begin;\n";print;print "commit;\n"' |
perl -pe '
if (/^(INSERT.+?)\(/) {
$a=$1;
s/\\'\''/'\'\''/g;