Skip to content

Instantly share code, notes, and snippets.

View skyzyx's full-sized avatar

Ryan Parman skyzyx

View GitHub Profile
Verifying that +skyzyx is my openname (Bitcoin username).
(function() {
// Declare variables, and provide data to generate a table with.
var cols = ['col-1', 'col-2', 'col-3', 'col-4', 'col-5'],
cells = _.splitBy(['cell-1', 'cell-2', 'cell-3', 'cell-4', 'cell-5', 'cell-6', 'cell-7', 'cell-8', 'cell-9', 'cell-10', 'cell-11', 'cell-12'], cols.length);
var __ = DOMBuilder;
__('p').html('A table, generated programmatically with nested anonymous callbacks, from data.'),
__('table', { 'width':'20%', 'border':'1' }).child([
--- DIBookmarksController-old.m 2011-01-01 15:04:30.000000000 -0800
+++ DIBookmarksController.m 2011-01-01 15:19:23.000000000 -0800
@@ -86,21 +86,21 @@
@"loginwindow", kCFPreferencesCurrentUser, kCFPreferencesAnyHost);
CFPreferencesSynchronize((CFStringRef) @"loginwindow", kCFPreferencesCurrentUser, kCFPreferencesAnyHost);
[loginItems release];
- (KeychainItem *)getKeychainUserAndPass
skyzyx / gist:1982523
Created March 6, 2012 00:45
Inflect between CapitalCase and snake_case
* Prepare the content for reformatting.
function prep_content($_string)
// Strip all non-alphanumeric characters
$_string = preg_replace('/[^a-z0-9\-\_\s]/i', '', $_string);
skyzyx / binary.js
Last active November 20, 2015 05:16
Will you go out with me?

The OAuth Bible

I tried to make this as understandable as possible for any party reading it which means that the wording, references, and terminology used may not reflect that of a technical paper or resource. Excuse me if you may for I wish all to understand this, and not just those with a degree in understanding legal or technical jargon.

Table Of Contents

  1. Reference
    1. Terminology
    2. Signed Requests
  2. OAuth 1.0a
skyzyx / geekweek.js
Last active December 20, 2015 07:29
// YouTube's GeekWeek code challenge
"53 65 61 72 63 68 20 59 6f 75 54 75 62 65 20 66 6f 72 20 2f 20 67 65 65 6b 77 65 65 6b"
.split(' ')
.map(function(v) {
return String.fromCharCode(parseInt(v, 16))
//=> "Search YouTube for / geekweek"
skyzyx /
Last active August 1, 2016 18:53 — forked from anonymous/

I would like to tell my story of burnout at Amazon, considering the fact that there is so many stories out there on both sides of the issue. My story is also on both sides of the issue, and I've had a lot of time to think about why people can see the same culture but come away with completely different conclusions. This is a throwaway because I still work there and I don't plan on changing that, and I don't exactly trust the company to take this in good faith, despite the fact that I mean this as a purely constructive criticism for a company that I really do like.

I am an autodidact (my formal education only tangentially describes what I can do), and a polymath (capable of holding my own amongst PhD-level Operations Researchers, Statisticians, Econometricians, Data Scientists, Computer Scientists, as well as Software Engineers). I love to solve real world problems, and in many ways am the perfect type of person for Amazon's culture. I started in a level 5 position, but felt from the beginning that I warrant

skyzyx /
Created July 24, 2017 18:14
strftime() %P modifier broken in PHP 7.1.7 on Alpine Linux 3.4
# Working
docker run -ti php:7.1.7-fpm-alpine php -r "var_dump(strftime('%c', time()));"
#=> string(24) "Mon Jul 24 18:09:54 2017"
# Also working
docker run -ti php:7.1.7-fpm-alpine php -r "var_dump(strftime('%I:%M%p', time()));"
#=> string(7) "06:12PM"
# Not working
docker run -ti php:7.1.7-fpm-alpine php -r "var_dump(strftime('%I:%M%P', time()));"
skyzyx / metadata
Last active August 30, 2017 00:09
SimplePie: Individual Contributor Non-Exclusive License Agreement including the Patent Pledge OPTION
"name": {
"title": "Full Name",
"type": "string",
"githubKey": "name",
"required": true
"email": {
"title": "Email",
"type": "string",