Skip to content

Instantly share code, notes, and snippets.

Rob Yoder robyoder

Block or report user

Report or block robyoder

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
robyoder / bad_private_keys.js
Last active Apr 17, 2018
Private keys that error in different browsers
View bad_private_keys.js
const pk_a = {
"alg": "RSA-OAEP",
"d": "SEI7RlFFuwpNtM7OBbz-rakRPa8tA7JosHCFbDp8rpnPgaQqE3Nx3XkemNDn8eypqdwGXo1PSHRFn40BPOjidNb5QvsdLcp9fgwF66fyzT0tRAYWK14Fuh042WciYvb3wk55CcmIK1PI4-nsGiQW8flPHSnmJJowdD23qajcJDkSozm0I44AAiEgp9pNgAIgDfPWh8qvjm0dqq10U20aYTOVeMUZz_sDAr9N9pcl9yrItouqnuWVzRzs-S2P55JXgUj87KxvQtcMr4vl6Ek9p_Pqn2ktcJpBM5Qsx_Bu-_fEqVjpDZr34CgENY89OA3MxLsOiMIOC4sD3z7h6GNB",
"dp": "YRLeNGJByvFv4Jpv2Ef-mmknlNmZdg2MCk7xsQh3-nufKxEssdN_jTF1lTR5mnYKJyaGfsuADRy-xzIuili91xx2631VXIpzO4EApt-_droErdjzwJiOVqbMQmEU9ithLWWbpa0IPm5HZCa7PD-2ctt79aMFualsmwQ2Auc2ET0",
"dq": "KbWh0933yZ1ndCe5KW_QF0RlF57QsLL3Lc6bfOB2uY9AitUv5s4Q0BrHwdlS-0v1S0s3T_XJKjN5XRd-TEGOX0xZMRGuA99QyGm_arw4Rkrm27u3zBBUaN5Hm1rHMYugrbb4Ch1BQioCdlR1yfJwVR5w8cpp6J68jWl1ST0Oj7k",
"e": "AQAB",
"ext": true,
"key_ops": [
robyoder / consumer.ts
Created Mar 13, 2018
A functional package model using TypeScript's declaration merging
View consumer.ts
// Here I can use `User` as a type, a function, or a namespace
import { User } from "./functional_model";
const sayHi = (user: User): string => (
`Hi, ${}!`
const joe = User({ name: "Joe" });
User.isActive(joe) //=> true
robyoder / at_least_one.js
Last active Jul 30, 2018
Password Strength – "at least one"
View at_least_one.js
/** Convenient utilities in functional form */
const reduce =;
const filter =;
const pow = Math.pow;
const log2 = Math.log2;
const size = (set) => set.size;
/** Iterable conversions */
const toSet = (iterable) => new Set(iterable);
const toArray = (iterable) => [...iterable];
robyoder / ordinalNumberString.ts
Created Oct 26, 2016
Ordinal Number Strings in TypeScript
View ordinalNumberString.ts
// I made this for something and ended up not needing it.
// It was too much fun to throw away though.
* intToOrdinalNumberString converts an integer to an ordinal
* number string. For example: 1 => "1st", 12 => "12th", 23 => "23rd"
export const intToOrdinalNumberString = (num: number): string => {
num = Math.round(num);
let numString = num.toString();
robyoder /
Created Nov 29, 2014
Verification of identity on

Keybase proof

I hereby claim:

  • I am robyoder on github.
  • I am robyoder ( on keybase.
  • I have a public key whose fingerprint is EA47 BBDB 9DAC E8FA AB11 7C62 8A87 7635 A4A3 4878

To claim this, I am signing this object:

You can’t perform that action at this time.