Skip to content

Instantly share code, notes, and snippets.

View skyzyx's full-sized avatar

Ryan Parman skyzyx

View GitHub Profile
(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 / svg-and-png-sitting-in-a-tree.html
Last active July 19, 2018 22:26
Load #SVG images with #PNG fallback (HTML-only)
<object data="illustration.svg" width="{w}" height="{h}">
<img src="illustration.png" width="{w}" height="{h}" alt="Helpful alternate text describing the image.">

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 July 19, 2018 22:26
#Keybase proof

Keybase proof

I hereby claim:

  • I am skyzyx on github.
  • I am skyzyx ( on keybase.
  • I have a public key whose fingerprint is 34BE DF13 F373 7393 A974 CF39 FF59 6A5E 5E0B 4682

To claim this, I am signing this object:

Verifying that +skyzyx is my openname (Bitcoin username).
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 / binary.js
Last active November 20, 2015 05:16
Will you go out with me?