Skip to content

Instantly share code, notes, and snippets.

View baadaa's full-sized avatar
🥚
bald

Bumhan Yu baadaa

🥚
bald
View GitHub Profile
@baadaa
baadaa / .gitignore_global
Created August 23, 2018 21:56
Global .gitignore dump from work
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@baadaa
baadaa / .zshrc
Created August 23, 2018 21:56
ZSH setting dump from work
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/bumhanyu/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="cobalt2"
@baadaa
baadaa / b-oauth-summary.md
Last active January 23, 2017 04:56
Prework for #16

OAuth Overview Summary

submitted by Bumhan Yu


Over the web, there have emerged a variety of applications and services (client) that need access to data resources from a user (resource owner) on another service provider (server)--e.g. printing app to access photos on Flickr site--which can cause security/privacy concerns should users provide their full passwords and complete access to private resources. For such uses, OAuth provides a method for users to grand third-party access to their resources without sharing their passwords. Unlike traditional client-server authentication model, where client uses its credentials to access the resources on the server, OAuth model has a third role the resource owner.

OAuth triangle diagram

As shown in the diagram above, user (resource owner) authorized permission for client to access resources. This auth

@baadaa
baadaa / Secret Santa
Created January 11, 2017 15:57 — forked from teabait/Secret Santa
Emulate the game "Secret Santa" where there are 3 or more participants, no participant can receive their own gift or receive more than one gift. Do this in JavaScript.
var participants = [];
function Participant(name, giftToGive) {
this.name = name;
this.giftToGive = giftToGive;
this.giftGiven = [];
this.secretSanta = [];
this.assigned = false;
}
@baadaa
baadaa / b-material-overview.md
Created December 30, 2016 02:29
JavaScript Development @ GA: Material Review

JavaScript Class Material Review

Submitted by Bumhan Yu


Class 2: Data Types

JavaScript has five primitive data types: string(in double- or single-quotation marks), number (only floating point numbers--this type includes NaN), Boolean, undefined, and null. Everything else is considered an object which includes arrays, functions, and objects.

All primitive and object type data can be assigned to variables and be performed on a variety of operations. Arrays are used for storing collections of data, where each item is called an element and identified by its index. Array has a .length property and a series of helper methods and iterator methods for accessing/manipulating data.

@baadaa
baadaa / .gitignore
Created December 23, 2016 16:53 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@baadaa
baadaa / app.js
Created December 20, 2016 21:45
Homework-03: TodoMVC
// curious what this is doing? https://learn.jquery.com/using-jquery-core/document-ready/
$(document).ready(function() {
// write your code here
// 00.
// Set up initial values and variables to use throughout
//
var ENTER_KEY = 13; // ENTER key value
var ESC_KEY = 27; // ESC key value
var enteredValue = ""; // an empty variable to use