Skip to content

Instantly share code, notes, and snippets.

@zenware
zenware / agraph.svg
Created December 3, 2015 09:47
Graphed It
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zenware
zenware / Contract Killer 3.md
Last active November 5, 2015 07:19 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: October 8th 2015
  • Original post

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDP/uIv+4NCTeHd5czMbRrCq1aH8R0pp8jOuNc+ENWqB5/Z/+qUA59rY+i8Za1omKKODlBkOk7RzBPyP7/e45kP+gOdAVmp1BVcyaSsSB6GV+x5+/zjdQ5HuFshlfUrm9uNKRNyqsftLuYMEt3mQ8mhXEGkAaRGMkLBMd6dYirJMTKHAHcrSvF3TFC+9Ef4NVg+F2gdnQcDLwpy8xwUxBuV7sCsd+vKAe6mXITbHKgUohbX6jMwbHuEXbXdh7q79oaCM73KAQMmLpzehhIuzIfnunZWFXQbNvXNivpN5bt9X0UjslfyCl1CEygi9q9ua3MxxtYPnw55XxoP/LWuzmtx jml@home.jaylooney.us
@zenware
zenware / create_db.sql
Last active August 29, 2015 14:19
This is a collection of working files for our project.
/*
Create tables by considering the following:
1. A primary key for the relation.
2. Foreign key (referential integrity) constraints
3. NOT NULL constraints and default values as appropriate.
*/
use jl790a;
/*
DROP TABLE CourseRoster;
@zenware
zenware / organize_files.sh
Last active August 5, 2019 14:27
Organizes Items in my ~/Downloads Directory into their proper locations. Also works in pretty much any shell, I wrote a separate script to test it against all the shells I had installed at the time, in debug mode. I probably should have uploaded that as well.
#!/bin/bash
usage () {
echo >&2 "Usage: $0 [-f orce] [-v erbose] [-i nteractive]"
exit 1
}
confirm () {
# Maybe add Default Y or N, and perhaps switch to using select...
read -r -p "${1:-Are you sure? [y/N]} " response
@zenware
zenware / randpw.cpp
Created May 21, 2013 12:14
One man's quest for the most optimized random password generator that can be made with C++, hopefully this will be useful.
#include <chrono>
#include <functional>
#include <iostream>
#include <random>
#include <string>
static void show_usage(std::string name)
{
std::cerr << "Usage: " << name << " <option(s)>\n"
<< "Options:\n"
@zenware
zenware / insta-vim-bookmark.js
Last active December 15, 2015 08:29
Instant Vim-Style Editor in any Browser.
data:text/html,
<html style="background:#002b36;font:13px monospace;padding:30px;">
<head>
<link rel="stylesheet" href="http://codemirror.net/lib/codemirror.css">
<style>.CodeMirror{height:100%}.CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor{background:#93a1a1}.CodeMirror-linenumber{color:#b58900}.CodeMirror-gutters{background:#073642;border-color:#073642}</style>
<script src="http://codemirror.net/lib/codemirror.js"></script>
<script src="http://codemirror.net/keymap/vim.js"></script>
<body style="background:#073642;color:#93a1a1;max-width:600px;padding:10px 0;">
<textarea id="code"></textarea>
<script>