Skip to content

Instantly share code, notes, and snippets.

View ggrumbley's full-sized avatar

Gary Grumbley ggrumbley

View GitHub Profile
@ggrumbley
ggrumbley / mysql2sqlite.sh
Last active January 10, 2017 22:37 — forked from esperlu/mysql2sqlite.sh
MySQL to Sqlite converter
#!/bin/sh
# SQL DUMP = $ mysqldump --skip-create-options --compatible=ansi --skip-extended-insert --compact \
# --single-transaction -u root <mydb> > <newdb>.sql
#
#
# 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.
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/4.0.6/rx.all.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div id="app"></div>
@ggrumbley
ggrumbley / bootstrap-navbar.slim
Created November 23, 2015 22:40 — forked from rex/bootstrap-navbar.slim
Default Twitter Bootstrap nav bar, in the Slim templating language
nav.navbar.navbar-default role="navigation"
.container-fluid
/! Brand and toggle get grouped for better mobile display
.navbar-header
button.navbar-toggle data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button"
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
a.navbar-brand href="#" Brand
@ggrumbley
ggrumbley / introrx.md
Created November 20, 2015 15:18 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@ggrumbley
ggrumbley / capybara cheat sheet
Created November 19, 2015 19:31 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')