Skip to content

Instantly share code, notes, and snippets.

View ricklopez's full-sized avatar

Rick Lopez ricklopez

View GitHub Profile
FAIL src/draftlingpage/DraftlingPage.test.js
● Console
console.log src/draftlingpage/DraftlingPage.js:86
undefined
console.log src/draftlingpage/DraftlingPage.js:87
[] draftlings
console.log src/draftlingpage/DraftlingPage.js:89
@carlosh93
carlosh93 / TF_load_images.py
Last active November 1, 2022 09:31
Tensorflow Load Images in Dataset #python #tensorflow
# https://www.tensorflow.org/tutorials/load_data/images
import tensorflow as tf
AUTOTUNE = tf.data.experimental.AUTOTUNE
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import os
import pathlib
data_dir = tf.keras.utils.get_file(origin='https://storage.googleapis.com/download.tensorflow.org/example_images/flower_photos.tgz',
(() => {
if(!navigator.mediaDevices) {
navigator.mediaDevices = {}
}
if (!navigator.mediaDevices.getUserMedia) {
navigator.mediaDevices.getUserMedia = (
navigator.mediaDevices.webkitGetUserMedia ||
navigator.mediaDevices.mozGetUserMedia ||
navigator.mediaDevices.msGetUserMedia ||

Feedback

Feedback Form

Notes

  1. Sync vs Async
    • JS executes code in a synchronous manner one function at a time one statement at a time
    • JS is single threaded
      • that means only one statement is executed at a time.
    • Asynchronous mean two or more things happening at a time. In JS that means deferring remaining execution of a function
      • We need this because some operation can take be very slow:
  1. What is ES6
  2. Let & Const
    • uses block scoping
    • const cannot be reassigned
    • not hoisted
  3. Arrow Functions
    • uses block scoping
    • implied this value assignment
    • no prototype
  • The real purpose of arrow functions is to handle the THIS keyword withing nested / callback functions

Introduction to Software / Web Development

  1. Humans and Written Languages (10 min)
    1. Breaking down the following English sentence.
      1. "Hello, did you know that it is 271 days until my birthday!"
      2. Our eyes and brains have been trained to interpret characters and symbols.
    2. Morse code
      1. We can teach our brains and eyes to interpret other languages
      2. Let's interpret the following message
  2. ... --- ...
<html>
<head>
<title>Landing bot with BotEngine.ai</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<style type="text/css">
* {
font-family: 'Open Sans', sans-serif;
box-sizing: border-box;

Feedback on the course here

Feedback Form

Course Content

  1. A New Metal Model

    a. The Browser is just a piece of software

b. The Browser is made up of several components responsible for

@ricklopez
ricklopez / prep.md
Last active February 13, 2023 03:45

Instructions

  1. Fork this Gist
  2. Edit to add your answers
  3. Send to your mentor

No cheating! Be open and honest about what you know.

Practice Questions

@alistairewj
alistairewj / install-postgres-10-ubuntu.md
Last active January 4, 2023 19:36
Install PostgreSQL 10 on Ubuntu

Install PostgreSQL 10 on Ubuntu

This is a quick guide to install PostgreSQL 10 - tested on Ubuntu 16.04 but likely can be used for Ubuntu 14.04 and 17.04 as well, with one minor modification detailed below.

(Optional) Uninstall other versions of postgres

To make life simple, remove all other versions of Postgres. Obviously not required, but again, makes life simple. If you have data in your previous version of postgres that you'd like to retain, then this is not recommended. Instead, you'll have to use pg_upgrade or pg_upgradecluster.