Skip to content

Instantly share code, notes, and snippets.

View skyzyx's full-sized avatar
👾
OOICU812

Ryan Parman skyzyx

👾
OOICU812
View GitHub Profile
Verifying that +skyzyx is my openname (Bitcoin username). https://onename.io/skyzyx
(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;
document.getElementById('demo03').appendChild(__.DOM([
__('p').html('A table, generated programmatically with nested anonymous callbacks, from data.'),
__('table', { 'width':'20%', 'border':'1' }).child([
__('thead').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
skyzyx / gist:1982523
Created March 6, 2012 00:45
Inflect between CapitalCase and snake_case
<?php
/**
* Prepare the content for reformatting.
*/
function prep_content($_string)
{
// Strip all non-alphanumeric characters
$_string = preg_replace('/[^a-z0-9\-\_\s]/i', '', $_string);
@skyzyx
skyzyx / binary.js
Last active November 20, 2015 05:16
Will you go out with me?
[
"01010111",
"01101001",
"01101100",
"01101100",
"00100000",
"01111001",
"01101111",
"01110101",
"00100000",

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
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))
})
.join('');
//=> "Search YouTube for / geekweek"
@skyzyx
skyzyx / amazon.md
Last active August 1, 2016 18:53 — forked from anonymous/amazon.md

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
skyzyx / strftime-php71-alpine.sh
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
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",