Skip to content

Instantly share code, notes, and snippets.

@loriculberson
loriculberson / Sublime 3 Snippet
Created August 22, 2016 11:33
How to Create a Snippet in Sublime 3
Tools --> Developer --> New snippet
<snippet>
<content><![CDATA[
<View> //Code that gets created as a result of typing the trigger
$1 //Where the cursor ends up
</View> //closing
]]></content>
<tabTrigger>vi</tabTrigger> //type "vi" + tab to create the snippet
@loriculberson
loriculberson / .bash_profile
Created February 17, 2019 17:12
Bash Profile
echo "Good morning sunshine!"
#prompt header
function parse_git_branch {
branch=`git rev-parse --abbrev-ref HEAD 2>/dev/null`
if [ "HEAD" = "$branch" ]; then
echo "(no branch)"
else
echo "$branch"
fi
@loriculberson
loriculberson / firebase.md
Last active April 4, 2020 05:37
Firebase Project Down and Dirty

Create: Project, Database & App

Create Project

  1. + Add project
  2. Add project name -> analytics -> select your account -> click "Create project" -> Wait, then click "Continue"

Create Database for the Project

  1. Scroll down page and under heading "Realtime Database", click "Create database"
@loriculberson
loriculberson / coderBay-solution.js
Created September 28, 2019 19:36
CoderBay Solution 7.2 Intro to Firebase
//initialize firebase
//add config
//boilerplate fb stuff
var config = {
//insert your config data here
};
firebase.initializeApp(config);
@loriculberson
loriculberson / level-one-warm-ups.md
Created March 21, 2020 10:45
Level 1 Warm ups for students
1. Write a function that takes in an integer and outputs the sum of all the numbers from 1 to that integer.
Input: 2
Output 3

Input : 4
Output: 10

Input: 10
Output: 55
@loriculberson
loriculberson / vs-code.md
Created April 14, 2020 21:53
VS Code Key bindings
// Place your key bindings in this file to overwrite the defaults
[
  {"key": "ctrl+1", "command": "workbench.action.terminal.focus"},
  {"key": "ctrl+1", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus"},
  {"key":"cmd+1", "command":"workbench.action.openEditorAtIndex1"},
  {"key":"cmd+2", "command":"workbench.action.openEditorAtIndex2"},
  {"key":"cmd+3", "command":"workbench.action.openEditorAtIndex3"},
  {
 "key": "alt+cmd+p",
@loriculberson
loriculberson / Cohort Projects
Last active December 1, 2020 16:43
Wisconsin cohort Project 1
* Alien Advice Link: https://galaxy-creators.github.io/Robo-Launch/
* Brew Crawler: https://team-awesome-uofw-extended.github.io/Project01/
* Road Trip Playlist App: https://road-trippers.github.io/road-trip-app/
* Celebrity Quest: https://uw-coding-bootcamp-project-1.github.io/Celebrity-Quest/
* Pets Fur Friends: https://team-crush-it.github.io/Project01/
//playerData.js
const alexHobbies = ["dancing", "making YouTube videos", "fishing"];
const joseHobbies = ["travel", "eating burgers", "skiiing"];
const framerberHobbies = ["hunting wabbits", "Sunshine Kids volunteer", "grilling"];
const yordanHobbies = []
const jeremyHobbies = []
export const playerData = [
{ id: 1, firstName: "Alex", lastName: "Bregman", hobbies: alexHobbies, jerseyNumber: 2 },
{ id: 4, firstName: "Yordan", lastName: "Alvarez", hobbies: yordanHobbies, jerseyNumber: 44 },
// Resources:
// https://medium.com/dailyjs/i-never-understood-javascript-closures-9663703368e8
// http://davidshariff.com/blog/javascript-scope-chain-and-closures/
// https://www.freecodecamp.org/news/lets-learn-javascript-closures-66feb44f6a44/
// Purpose: Used to provide data privacy
// Closure: The closure is a collection of all the variables in scope at the time of creation of the function.
// Here is how it works. Whenever you declare a new function and assign it to a variable,

Code-along Demo app

Build a landing page about yourself

  • Name
  • Greeting
  • Favorite Things list