Skip to content

Instantly share code, notes, and snippets.

Avatar
🌀
In a quantum state between coding and procrastinating

Ben Orozco benoror

🌀
In a quantum state between coding and procrastinating
View GitHub Profile
View export_base_meta_from_airtable.js
const fda = ( fields ) => {
let data = []
for(const f of fields ){
data.push(fd(f))
}
return data
}
const fd = ( field ) => {
let data = {
@benoror
benoror / README.md
Created Sep 23, 2020 — forked from ggondim/README.md
Airtable schema API request
View README.md

Airtable Schema API

Replace the variables below in the script

  • YOURBASEID: your Airtable base ID starting with 'app...'
  • YOURCOOKIESFORAIRTABLEDOMAIN your browser cookie for airtable.com domain
@benoror
benoror / cover_letter.md
Last active May 20, 2021
Cover Letter - Ben Orozco - benoror.com
View cover_letter.md

Hi, my name is Ben Orozco. I am a Computer Science Engineer specialized in Full Stack web development, passionate on making and launching software products, leading engineering teams and leveraging technology to tackle big real-world problems. Portfolio: https://benoror.com/portfolio

I am passionate of full stack development (APIs, backend, DevOps, front-end, UI/UX) for the past 9+ years, mainly in Ruby on Rails, Node.js, Elixir and Javascipt frameworks (React, Angular, Ember).

I am ready for my next career challenge! Some fun projects I have been part of that might be relevant:

  • Helped planning, architecture design and hands-on programming of a full AuthN/AuthZ identity provider based on OAuth2/OpenID standards, to support SSO (Single Sign-on) and User Management across many EdTech applications.

  • Launched a Node.js Tax/Invoicing lambda micro-service in record time that ended up replacing a big chunk of a Java monolith codebase and serving 1000's or requests per minute by relying on minimal footprint

@benoror
benoror / index.js
Created Dec 3, 2019
Simple self-auth Airtable Proxy in Node.js
View index.js
var express = require('express');
var proxy = require('http-proxy-middleware'); // This one does most of the heavy lifting
var axios = require('axios');
var base64 = require('base-64');
var cors = require('cors')
require('dotenv').config()
var options = {
target: 'https://api.airtable.com/v0/' + process.env.APP_ID, // Airtable ENV var
@benoror
benoror / latency.markdown
Created Sep 1, 2019 — forked from hellerbarde/latency.markdown
Latency numbers every programmer should know
View latency.markdown

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns  = 250 µs
@benoror
benoror / 00_Heroku-Release-Phase-Review-Apps-Rails_README.md Heroku Release Phase script for managing Rails DB migrations, and playing nice with Review Apps and postdeploy scripts
View 00_Heroku-Release-Phase-Review-Apps-Rails_README.md

Heroku Release Phase + Review Apps + Rails

This is a simplified, but fairly thorough, set of scripts and configuration to enable Heroku Release Phase for Rails apps. Further, this particular set up plays nicely with Heroku Review Apps in that the release phase script will:

  1. Fail, loudly, if the DB does not yet exist.
  2. Load the DB schema if the current schema version (as determined by bin/rails db:version) is 0.
  3. Run DB migrations otherwise.

For a "normal" app that usually means it will run the DB migrations.

@benoror
benoror / xor_validation.md
Last active May 17, 2019
Rails Model XOR Validation for "Custom" fields
View xor_validation.md

XOR Validation

validate :disease_or_custom_disease

#...

private
def disease_or_custom_disease
  custom_disease.blank? ^ disease_id.blank?
@benoror
benoror / LIST.md
Last active Feb 26, 2019
JSON:API (jsonapi.org) resources for React + Redux
View LIST.md
@benoror
benoror / functional-spec.md
Last active Jun 29, 2019
Sundly Sharing (read-only)
View functional-spec.md

User Story

  • Alice adds Bob as a contact
  • Alice shares his data with Alice
  • Bob now can see Alice Profile & Timeline (timestamped) in their contacts

Mockups

[  Bob.id  ](link-to-user-profile/timeline) [Share icon]
View gist:08162f1182845d3d41a494182044640a
Verifying my Blockstack ID is secured with the address 1DAj3qXbJRVG6WTSAJv7DSSN6f5uVwFqBG https://explorer.blockstack.org/address/1DAj3qXbJRVG6WTSAJv7DSSN6f5uVwFqBG