$ openssl genrsa -out private.key 4096openssl req -new -sha256 \| // There's some better solutions in the comments, so scroll down and see how other folks have improved this! | |
| // USAGE: | |
| // abbrState('ny', 'name'); | |
| // --> 'New York' | |
| // abbrState('New York', 'abbr'); | |
| // --> 'NY' | |
| function abbrState(input, to){ | |
| function getOS() { | |
| var userAgent = window.navigator.userAgent, | |
| platform = window.navigator.platform, | |
| macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'], | |
| windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'], | |
| iosPlatforms = ['iPhone', 'iPad', 'iPod'], | |
| os = null; | |
| if (macosPlatforms.indexOf(platform) !== -1) { | |
| os = 'macOS'; |
| #!/usr/bin/env bash | |
| # checks if branch has something pending | |
| function parse_git_dirty() { | |
| git diff --quiet --ignore-submodules HEAD 2>/dev/null; [ $? -eq 1 ] && echo "*" | |
| } | |
| # gets the current git branch | |
| function parse_git_branch() { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1$(parse_git_dirty)/" |
| function monitorEvents(element) { | |
| var log = function(e) { console.log(e);}; | |
| var events = []; | |
| for(var i in element) { | |
| if(i.startsWith("on")) events.push(i.substr(2)); | |
| } | |
| events.forEach(function(eventName) { | |
| element.addEventListener(eventName, log); | |
| }); |
| { | |
| "AL": { | |
| "MS": 334.2598088903816, | |
| "TN": 356.97821657200916, | |
| "GA": 376.7653825199441, | |
| "SC": 560.5953436665313, | |
| "KY": 658.9065611488494, | |
| "FL": 732.4622655864152, | |
| "MO": 771.1104811304031, | |
| "VA": 788.1610036039323, |
| <?php | |
| /** | |
| * Debug pretty print | |
| * @author https://github.com/reatlat | |
| */ | |
| if (!function_exists('php_pretty_print')) : | |
| /** | |
| * Debug helper | |
| * Pretty print the array | |
| */ |
It is loaded by default by /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist.
If you run
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
| //EnhanceJS isIE test idea | |
| //detect IE and version number through injected conditional comments (no UA detect, no need for cond. compilation / jscript check) | |
| //version arg is for IE version (optional) | |
| //comparison arg supports 'lte', 'gte', etc (optional) | |
| function isIE(version, comparison) { | |
| var cc = 'IE', | |
| b = document.createElement('B'), |