Skip to content

Instantly share code, notes, and snippets.

@kimschles
kimschles / deploy-server-to-heroku.md
Last active April 26, 2018 17:55
How to deploy an node, express and postgres backend to heroku
  1. Create a new heroku remote
  • heroku create
  1. Push your code to heroku
  • git push heroku master
  1. Add the heroku postgres addon
  • heroku addons:create heroku-postgresql:hobby-dev
  1. Open your heroku app from the command line
  • heroku open
  1. Run knex migrations
  • heroku run knex migrate:latest

What do we do?

  • Outcomes and standards-based education
  • Not a curriculum company

Who is this for?

  • Turning juniors/mids into mids/seniors
  • Turning seniors into leads, principles, VPs
  • Not necessarily with career alignment- they don't have to go all-in
@kimschles
kimschles / Simplest-Express-Server.md
Last active June 15, 2018 22:19
Simplest Express Server
  1. Make a directory
  2. Change into the directory
  3. Create a file called index.js
  4. Install the Express package with npm install express
  5. Copy and paste the Express Server Code
  6. Run your server with node index.js
  7. Look at what's being served up at localhost:3000
  8. Make a change to serve JSON instead of text
@kimschles
kimschles / installing-node-with-nvm.md
Created June 4, 2018 19:32 — forked from d2s/installing-node-with-nvm.md
Installing Node.js for Linux & macOS with nvm
@kimschles
kimschles / ro-shell-commands.sh
Last active June 20, 2018 22:29
RO Onboarding Shell Commands Part 1
# Window 1
echo 'this is file one' > one.txt
echo 'this is file two' >> two.txt
cat one.txt two.txt
cat > three.txt
'this is file three'
^d
echo 'i am adding this to file three' >> three.txt
echo 'here is an additional line' >> three.txt
echo 'and another one...' >> three.txt
@kimschles
kimschles / hamburger_helper.md
Created August 30, 2018 03:57
Hamburger Helper

Before you start:

  • Change the password in connection.js to an empty string ""

Running the app on your computer

  1. Open up mysql and create the burgers_db database
  • mysql -u root -p
  • CREATE DATABASE burgers_db;
  1. Exit out of mysql
  • hit control + d once or twice
@kimschles
kimschles / manual_approval_workflow_yml
Created October 17, 2018 03:35
Example of circleci workflow with manual approval
version: 2
jobs:
build_and_test:
docker:
- image: cypress/base:8
steps:
- checkout
- restore_cache:
keys:
- v1-npm-deps-{{ checksum "package.json" }}
@kimschles
kimschles / LilyPad_blink_alternating.ino
Last active November 23, 2018 19:46
Two alternating lights on LilyPad
@kimschles
kimschles / LilyPad_light_sensor_blink_LED.ino
Last active November 23, 2018 20:09
When the sensor is covered, an LED will blink
/*
LilyPad_touch_LED
When readPin (A4) is connected to ground, LED connected to ledPin (9) will light up.
*/
int ledPin9 = 9;
int ledPin10 = 10;
int ledPin11 = 11;
int ledPin1 = 1;