Skip to content

Instantly share code, notes, and snippets.

@ezracelli
ezracelli / id-me.md
Last active May 20, 2020 16:29
id.me status update
# Errors are notated by a diff block

- Lines colored in red are the observed errors
! Lines colored in orange are 1R's temporary fix or resolution for testing purposes
+ Lines colored in green are a potential permanent resolution

ID.me flow

@ezracelli
ezracelli / jquery-serializeobject.js
Created March 13, 2020 21:41
jQuery serializeObject
function convertArrayObjectsToArrays (obj) {
return (function _traverse (obj) {
if (Object.prototype.toString.call(obj) === '[object Array]') {
return obj.map(el => _traverse(el));
}
else if (obj && Object.prototype.toString.call(obj) === '[object Object]') {
const keys = Object.keys(obj);
if (!keys.length || keys.find(key => !/\d/.test(key))) {
{
"root":true,
"parserOptions":{
"parser":"babel-eslint"
},
"env":{
"node":true
},
"extends":[
"eslint:recommended",
@ezracelli
ezracelli / fileio
Created December 17, 2019 00:18
Command-line client for https://file.io -- inspired by http://ix.io/client
#!/usr/bin/env bash
# Examples:
# fileio hello.txt # paste file (name/ext will be set).
# echo Hello world. | fileio # read from STDIN (won't set name/ext).
# fileio -n 1d self_destruct.txt # paste will be deleted after one day, downloaded or not.
# # can set \d(d|w|m|y) for weeks, months, years.
fileio() {
local query