Skip to content

Instantly share code, notes, and snippets.

David Overcash funnylookinhat

Block or report user

Report or block funnylookinhat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am funnylookinhat on github.
  • I am funnylookinhat (https://keybase.io/funnylookinhat) on keybase.
  • I have a public key ASDyW8Os5mUayRbZJ_PhLVfFwq760SRUa8KHINKsjOY0Jwo

To claim this, I am signing this object:

@funnylookinhat
funnylookinhat / test.js
Created Mar 23, 2016
Check if you have any of the recently unpublished dependencies.
View test.js
var fs = require('fs');
var baddies = ['abril-fatface','ada','after-time','alert','andthen','anglicize','ansi-codes','atbash','attr','attrs','available-slug','background-image','ballet','binding','bind-key','blending-modes','boxcars','brick','brick-browser','brick-browserify-plugin','brick-node','browserify-length','bud','bud-babelify','bud-browserify','bud-concat','bud-indexhtml','bud-live-server','call-all','categorize-files','center-box','centered','centered-cover-background','change-object','change-object-path','checkfor','circle','cli-form','cli-qa','combiner','comma-list','comp','concat','config-doc','core-modules','cover-background','create-temp-dir','debounce-fn','declarative-js','default-debug','delegate-dom','dom-children','dom-classes','dom-event','domflow','domquery','dom-select','dom-style','dom-tree','dom-value','door','duba','eksi-server','eksi-sozluk','english-time','environ','every-time','expand-home-dir','failing-code','failing-line','filename-id','filter-stack','findall','first-val','flat-
@funnylookinhat
funnylookinhat / phplint
Created Sep 25, 2015
Quick and easy linter for a directory of PHP.
View phplint
#!/bin/bash
# Add it to your $PATH for extra fun!
for FILE in $(find ./* | grep ".php"); do php -l "$FILE"; done;
@funnylookinhat
funnylookinhat / ssl.conf
Created Jun 24, 2015
ssl.conf - Good practice Apache2 SSL config
View ssl.conf
<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
View Slimdown.md

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 / quick-grid.css
Created Jul 8, 2014
Because sometimes you just need a quick grid that isn't responsive...
View quick-grid.css
.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 {
View gist:8477307
this._computeClient = require('pkgcloud').createClient('compute',{
enableExtensions: true,
provider: this._stackProvider,
username: this._stackUsername,
apiKey: this._stackApiKey,
authUrl: this._stackAuthUrl
});
this._storageClient = require('pkgcloud').createClient('storage',{
enableExtensions: true,
View gist:8045677
{ [Error: rackspace Error (400): Bad Request]
name: 'Error',
provider: 'rackspace',
failCode: 'Bad Request',
statusCode: 400,
href: 'http://10.17.76.8:8774/v2/25ae5144f9824092917e8b4463901dfd/servers',
method: 'POST',
headers:
{ 'content-length': '98',
'content-type': 'application/json; charset=UTF-8',
@funnylookinhat
funnylookinhat / rbgaconvert.js
Last active Dec 28, 2015
RGBA Convert: Using RGBA pixels from images to create a wide array of heightmap values.
View rbgaconvert.js
/**
* RGBA Convert
* Converting RGBA values to/from heightmap values ( i.e. signed "3 decimal" numbers )
* Expected range +/- 999999.999
*/
function convertToRGBA(value) {
value = parseInt(1000 * (parseFloat(value).toFixed(3)));
var a = value & 255; value = value >>> 8;
var b = value & 255; value = value >>> 8;
View new_gist_file
uniform vec2 gridSize;
const vec4 gridColor = vec4(1.0,0.5,0.0, 0.1);
const float gridLineWidth = 0.03;
const float gridLineFade = 0.01;
// overlay grid
vec2 xy = vUv * gridSize;
vec2 dGrid = abs(xy - floor(xy+0.5)); // floor(i+0.5) == round
vec2 d = min( 2.0 * abs(dGrid) - (gridLineWidth/2.0 - gridLineFade), gridLineFade) / gridLineFade;
gl_FragColor.rgb = mix( gl_FragColor.rgb, gridColor.rgb, (1.0 - min(d.x,d.y)) * gridColor.a );
You can’t perform that action at this time.