Skip to content

Instantly share code, notes, and snippets.

View dohoonk's full-sized avatar
🎯
Focusing

Tony(Dohoon) Kim dohoonk

🎯
Focusing
View GitHub Profile

Practicing Markdown with Gist

this is just for testing

Styling Text

this is normal text. This is bold text, this is italic text and this is strike-through text. This is a link to google

puts "Hellow Word"
@dohoonk
dohoonk / Day2.md
Last active February 19, 2016 20:18
Bootcamp

Ruby Review

General Purpose Programming Language Interpreted Language

object_id

a = "Hello"
b = "World"
@dohoonk
dohoonk / Day1.md
Last active February 19, 2016 20:15
Bootcamp

Unix commands

pwd- user

whami- shows the user

ls- list

ls -a (all)(shows hidden files)

@dohoonk
dohoonk / Day3.md
Last active February 19, 2016 20:17
Bootcamp

Arrays

<< (shovle operator)

.push

the main differnece between the above two is that .push allows multi variables to be pushed into an array not in a form of another array

.include?

@dohoonk
dohoonk / Day4.md
Last active February 19, 2016 20:17
Bootcamp

Hash

me = {"Me" => "Tony"} key => Value (pairs)

me["Me"] me.fetch("Me","unkown") <---- second arguement is the default value to return

my_hash = Hash.new my_hash = Hash.new(0)

@dohoonk
dohoonk / Day5.md
Last active February 19, 2016 20:17
CodeCore Bootcamp

Arguements

multiply(a, *b) <---- multiple arguements

Blocks

yield if block_given?

Procs & Lambdas

@dohoonk
dohoonk / day12.md
Created January 26, 2016 21:38
codecore

Sinatra

HTTP verbs HTTP URL

GET / (homepage) POST /about (about part of your application) PATCH/PUT /info.html /data.json /articles/15 DELETE

@dohoonk
dohoonk / day13.md
Created January 27, 2016 21:04
codecore

Render vs. Redirect

@dohoonk
dohoonk / day14.md
Created January 29, 2016 05:29
codecore

SQL

sqlite3 first.db

relational database

must define names of table and number of colums

dbbrowser sqlitebroweser.org

@dohoonk
dohoonk / day15.md
Last active January 29, 2016 21:08
codecore

#SQL

One to Many

one student <<<<<<<<<<<<<<<< many projects

One to One

one student <<<<<<<<<<<<<<<< single profile