Skip to content

Instantly share code, notes, and snippets.

View funnylookinhat's full-sized avatar

David Overcash funnylookinhat

View GitHub Profile
@funnylookinhat
funnylookinhat / quick-grid.css
Created July 8, 2014 15:36
Because sometimes you just need a quick grid that isn't responsive...
.grid-row {
display: block;
box-sizing: border-box;
}
.grid-row, .grid-row:before, .grid-row:after, .grid-row *, .grid-row *:before, .grid-row *:after {
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
.grid-row:after {

Slimdown

A very basic regex-based Markdown parser. Supports the following elements (and can be extended via Slimdown::add_rule()):

  • Headers
  • Links
  • Bold
  • Emphasis
  • Deletions
@funnylookinhat
funnylookinhat / ssl.conf
Created June 24, 2015 14:38
ssl.conf - Good practice Apache2 SSL config
<IfModule mod_ssl.c>
SSLRandomSeed startup builtin
SSLRandomSeed startup file:/dev/urandom 512
SSLRandomSeed connect builtin
SSLRandomSeed connect file:/dev/urandom 512
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
@funnylookinhat
funnylookinhat / phplint
Created September 25, 2015 22:41
Quick and easy linter for a directory of PHP.
#!/bin/bash
# Add it to your $PATH for extra fun!
for FILE in $(find ./* | grep ".php"); do php -l "$FILE"; done;
/**
* Static Quad Tree
* This is a one-way tree that only allows insertion for maximum efficiency.
* @author David Overcash <funnylookinhat@gmail.com>
* Credit to https://github.com/mikechambers/ExamplesByMesh for a great example.
*/
(function(exports) {
var Node = (function (constructParams) {
var _MAX_ITEMS = 4;
/**
* Static Quad Tree
* This is a one-way tree that only allows insertion for maximum efficiency.
* @author David Overcash <funnylookinhat@gmail.com>
* Credit to https://github.com/mikechambers/ExamplesByMesh for a great example.
*/
(function(exports) {
var Node = function (xMin,xMax,yMin,yMax) {
this._quad = {
@funnylookinhat
funnylookinhat / OldStaticQuadTree
Created January 28, 2013 17:30
Comparing two class definitions for NodeJS exports.
/**
* Static Quad Tree
* This is a one-way tree that only allows insertion for maximum efficiency.
* @author David Overcash <funnylookinhat@gmail.com>
* Credit to https://github.com/mikechambers/ExamplesByMesh for a great example.
*/
(function(exports) {
var Node = (function (constructParams) {
var _MAX_ITEMS = 4;
@funnylookinhat
funnylookinhat / gist:5062061
Last active December 14, 2015 08:59
tree.js
{
"metadata" :
{
"formatVersion" : 3.1,
"generatedBy" : "Blender 2.65 Exporter",
"vertices" : 8637,
"faces" : 4778,
"normals" : 8242,
"colors" : 3,
@funnylookinhat
funnylookinhat / interfaces
Last active December 15, 2015 14:19
VirtualBox Devstack setup...
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
[playlist]
NumberOfEntries=4
File1=http://slacker.cvgm.net:8000/cvgm128
File2=http://relay3.slayradio.org:8000/
File3=http://radio.modules.pl:8500/
File4=http://audio.misproductions.com:80/japan128k