Skip to content

Instantly share code, notes, and snippets.

@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;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDP/uIv+4NCTeHd5czMbRrCq1aH8R0pp8jOuNc+ENWqB5/Z/+qUA59rY+i8Za1omKKODlBkOk7RzBPyP7/e45kP+gOdAVmp1BVcyaSsSB6GV+x5+/zjdQ5HuFshlfUrm9uNKRNyqsftLuYMEt3mQ8mhXEGkAaRGMkLBMd6dYirJMTKHAHcrSvF3TFC+9Ef4NVg+F2gdnQcDLwpy8xwUxBuV7sCsd+vKAe6mXITbHKgUohbX6jMwbHuEXbXdh7q79oaCM73KAQMmLpzehhIuzIfnunZWFXQbNvXNivpN5bt9X0UjslfyCl1CEygi9q9ua3MxxtYPnw55XxoP/LWuzmtx jml@home.jaylooney.us
@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

@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 / 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>
@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"

Keybase proof

I hereby claim:

  • I am zenware on github.
  • I am zenware (https://keybase.io/zenware) on keybase.
  • I have a public key whose fingerprint is CE57 E416 3F5F 8B4D ECC5 94A9 096B A1D1 A50F 48A5

To claim this, I am signing this object:

#!/bin/bash
echo "Enter your desired user name: "
read USERNAME
echo "Enter a full name for this user: "
read FULLNAME
echo "Enter a password for this user: "
read -s PASSWORD
@zenware
zenware / _.md
Created April 13, 2016 05:10 — forked from klange/_.md
It's a résumé, as a readable and compilable C source file. Since Hacker News got here, this has been updated to be most of my actual résumé. This isn't a serious document, just a concept to annoy people who talk about recruiting and the formats they accept résumés in. It's also relatively representative of my coding style.

Since this is on Hacker News and reddit...

  • No, I don't distribute my résumé like this. A friend of mine made a joke about me being the kind of person who would do this, so I did (the link on that page was added later). My actual résumé is a good bit crazier.
  • I apologize for the use of _t in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".
  • Since people kept complaining, I've fixed the assignments of string literals to non-const char *s.
  • My use of type * name, however, is entirely intentional.
  • If you're using an older compiler, you might have trouble with the anonymous unions and the designated initializers - I think gcc 4.4 requires some extra braces to get them working together. Anything reasonably recent should work fine. Clang and gcc (newer than 4.4, at le
<?php
/**
* @package Hello_Dolly
* @version 1.6
*/
/*
Plugin Name: Hello Dolly
Plugin URI: http://wordpress.org/plugins/hello-dolly/
Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page.
Author: Matt Mullenweg