Skip to content

Instantly share code, notes, and snippets.

View lorecrafting's full-sized avatar
📖
crafting lore!

lorecrafting lorecrafting

📖
crafting lore!
View GitHub Profile
@lorecrafting
lorecrafting / keybase.md
Created June 2, 2018 22:06
keybase proof

Keybase proof

I hereby claim:

  • I am lorecrafting on github.
  • I am lorecrafting (https://keybase.io/lorecrafting) on keybase.
  • I have a public key ASDsl4Lu8_8yYfJE9II-7qIitrGaZ_0dBukN5rc-v85btgo

To claim this, I am signing this object:

@lorecrafting
lorecrafting / Knex-Migrations-Seeding.md
Last active April 14, 2018 16:53 — forked from NigelEarle/Knex-Migrations-Seeding.md
Migration and seeding instructions using Knex.js!

Migrations & Seeding

What are migrations??

Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex command line tool.

To learn more about migrations, check out this article on the different types of database migrations!

Creating/Dropping Tables

@lorecrafting
lorecrafting / s3deploy.md
Last active February 2, 2019 17:33
S3 Deploy Notes

Prequisites: AWS Account

In AWS Console:

  1. Go to IAM Service and create new group, name it S3FullAccessGroup, attach the AmazonS3FullAccess policy to it.
  2. In IAM Service, add new user. Name it something like yourName_macbookpro_cli. Make sure only programmatic access is checked off. Add the user to the S3FullAccessGroup.
  3. When done with wizard, it will give you your secret access key only ONCE. Don't leave this page yet.

In Local Development Terminal:

  1. OSX: brew install awscli Linux: sudo apt update sudo apt install awscli
  2. aws configure
// NOT DEBUGGED
class HashTable {
constructor() {
this._storage = [];
this._count = 0;
this._limit = 10;
}
insert(key, value) {
class CmdLook(COMMAND_DEFAULT_CLASS):
"""
look at location or object
Usage:
look
look <obj>
look *<account>
Observes your location or objects in your vicinity.
"""
key = "look"
@lorecrafting
lorecrafting / LookAtScript.cs
Created August 1, 2017 02:18
Unity3d - have object rotate toward target using quaternions
using UnityEngine;
using System.Collections;
public class LookAtScript : MonoBehaviour {
public Transform target;
void Update() {
Vector3 relativePos = target.position - transform.position;
transform.rotation = Quaternion.LookRotation(relativePos);
}
Goals:
Incoming students should have terminal basics, git basics, their dev environments and js fundamentals down before the first day of class.
These js fundamental structures should be able to be written out from memory in less than five seconds: https://gist.github.com/lorecrafting/4d69396a401c2b1c8e9a435365928ada#gistcomment-2040318
## Week 1
1. Introductions, go around the hangouts and have self-intros. What kind of background programming experience they have, motivations etc.
1. Emphasize teamwork, they are on a team and are accountable for each other.
1. Do a 2-minute max live-code checkin on each student sharing their own screen with simple exercises like 'create an array with numbers 1-5, create a function to loop over the array and print out the numbers. Execute the function'. (Will create a repository of these mini checkin prompts)
1. Give them the JS subset of things to commit to muscle memory. https://gist.github.com/lorecrafting/4d69396a401c2b1c8e9a435365928ada#gistcomment-2040318
1. Assign t
@lorecrafting
lorecrafting / JS_Subset_Cheatsheet.md
Last active June 11, 2019 06:36
Subset of Javascript that is recommended to commit to memory by all new programmers

Be able to write out these skeletons in less than five seconds. It is vital that these are committed to memory and you don't need to think about it when asked to create these.

  1. Defining a function
var aFunc = function(arg1, arg2) {
  // your code in function body here using arg1 and arg2
}
  1. Iterating over an array
# 5-Day Unity Workshop Flow (Maze Game)
*Overview:*
Throughout the entire workshop, twice daily standups and stretching exercises, one in the morning and one before lunch are given with
a brief status update and any difficulties students have. The curriculum is built in a way that hand-coded systems are introduced before using
a turn-key solution such as Unity's Navigation system and built-in FPSController prototyping GameObject so that students can appreciate
what happens at a lower level. The overall flow is also designed to be on train tracks until end of day 2 when the training
wheels slowly come off ending in a Demo Day.
Day 1 and 2 are very rigorous hands-on guided coding and troubleshooting days as students follow along with live-coding scripts.

Keybase proof

I hereby claim:

  • I am lorecrafting on github.
  • I am lorecrafting (https://keybase.io/lorecrafting) on keybase.
  • I have a public key whose fingerprint is F13D 16DE 75E9 087D 58EC 5C07 D292 9189 2D16 862B

To claim this, I am signing this object: