Skip to content

Instantly share code, notes, and snippets.

@jmandzik
jmandzik / README.md
Last active December 16, 2015 15:39
Measuring power levels

Power levels

The ideal power level is calculated at the arithmatic mean of the threshold domain. The origin is centered on the ideal and power levels rendered showing the distance away from the ideal. Gradients represent severity, using the warning and critical levels as inflection points.

@jmandzik
jmandzik / gist:5413242
Created April 18, 2013 14:38
Better *sh history navigation
# ~/.inputrc
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
@jmandzik
jmandzik / gist:5413176
Created April 18, 2013 14:30
Installing PDSH with genders
brew install https://raw.github.com/jmandzik/homebrew/master/Library/Formula/pdsh.rb
@jmandzik
jmandzik / gist:5216975
Last active December 15, 2015 06:29 — forked from padolsey/gist:527683
JS Snippet: Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@jmandzik
jmandzik / gist:4624963
Created January 24, 2013 16:51
sublime text 2 user settings
{
"translate_tabs_to_spaces": true,
"tab_size": 2,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"fade_fold_buttons": false,
"font_size": 15.0,
"highlight_line": true,
"ignored_packages": [],
@jmandzik
jmandzik / noise.sh
Created December 14, 2012 15:40 — forked from rsvp/noise.sh
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-10-04
#
# _______________| noise : ambient Brown noise generator (cf. white noise).
#
# Usage: noise [minutes=59] [band-pass freq center=1786] [wave]
# ^minutes can be any positive integer.
# Command "noise 1" will display peak-level meter.
#
# Dependencies: play (from sox package)
@jmandzik
jmandzik / gist:4265058
Created December 12, 2012 05:21
AngularJS dependency injection styles
// Inline style
// The function parameters can be renamed (or minified) because the '$http' & '$rootScope' strings
angular.module('rio.directives').directive('entityMap', ['$http', '$rootScope', function($http, $rootScope) {
}]);
// functionally equivalent
angular.module('rio.directives').directive('entityMap', ['$http', '$rootScope', function(xhr, rs) {
@jmandzik
jmandzik / gist:4225221
Created December 6, 2012 15:17
List of Tools

#Tools of my trade

##Preferred tech

The majority of my day job work is writing web applications. Modern front ends (to the extent legacy browsers will allow), *AMP backends. My personal work involves realtime data visualization, which I prefer writing on the Node.js, MongoDB, Redis, & AngularJS platforms. I like Mac hardware, but any Unix-based OS is fine. As such, here's how I do my thing...

Services

###Actively using

  • Github (DVCS)