Skip to content

Instantly share code, notes, and snippets.

View alejo4373's full-sized avatar

Alejandro Franco alejo4373

View GitHub Profile

Alejandro Franco

+1 (917) 573-6025
alejandrofranco@ac.c4q.nyc
alejo4373.github.io/me
linkedin.com/in/alejandro-franco-525035152
github.com/alejo4373/

SKILLS

Keybase proof

I hereby claim:

  • I am alejo4373 on github.
  • I am alejo4373 (https://keybase.io/alejo4373) on keybase.
  • I have a public key ASAq1jcMyn_xI2o4LYNBtpIgzHUinW3AgECiQKF_bDQDNQo

To claim this, I am signing this object:

@alejo4373
alejo4373 / sensors.py
Last active September 30, 2018 00:11
#!/usr/bin/python
from __future__ import print_function
import boto3
import time
import datetime
import sys
import Adafruit_DHT
from decimal import Decimal
# Type of sensor, can be Adafruit_DHT.DHT11, Adafruit_DHT.DHT22, or Adafruit_DHT.AM2302.
// ------------ db/users.js -----------------
const getAll = async (params) => {
try {
const SQL = "SELECT * FROM reviews WHERE film_id = $/film_id/ AND app_id = $/app_id/"
const reviews = await db.any(SQL, params);
return reviews;
} catch (err) {
throw err;
}
}
const countDownFromN = (n) => {
if (n < 0) {
return
}
console.log('up:', n)
countDownFromN(n - 1)
// console.log('do:', n) // This is weird but its due to the call stack. If you understand why this happens, you understand recursion.
}
// let now = new Date()
// console.log(now)
// console.log(now.getTime())
// console.log(now.toString())
// let petesDate = new Date(1993, 11, 28, 2, 20, 00, 100)
// console.log(petesDate.toString())
// console.log(petesDate.toISOString())
@alejo4373
alejo4373 / Pair_Whiteboarding_Exercise.md
Created August 19, 2020 23:18
Pair whiteboarding exercise.

Pair Whiteboarding Exercise

Goal

Practice whiteboarding and reinforce best practices according to Interview Rubric

Steps

  1. You were assigned a group A or B. Remember your group.
  2. Go to the Whiteboarding Questions Repo
  3. Each readme here has a name in the format NN@.md where N is a number from 0-9 and @ will be a letter A or B for example the first question of group A is 01A.md
  4. You will be put into breakout rooms with other people in your group to discuss the problems and solutions and for you to ask questions about them.