Skip to content

Instantly share code, notes, and snippets.

@krnwonseungee
krnwonseungee / .bash_profile.sh
Last active October 25, 2017 06:11
sample bash profile
export NVM_DIR="/Users/jyi/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
eval "$(rbenv init -)"
PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
GIT_PS1_SHOWDIRTYSTATE='1'
source ~/.git-prompt.sh
@krnwonseungee
krnwonseungee / LivingThing.java
Last active August 29, 2015 14:13
Modifiers Practice
public abstract class LivingThing {
abstract void methodOfSurvival();
public static void main(String args[]) {
Person person = new Person("Person");
System.out.println(person.firstName);
// calling FINAL STATIC variables
System.out.println(Person.MORALSTANCE); //accessed thru class
System.out.println(person.MORALSTANCE); //accessed thru instance
WHAT ARE ENVIRONMENTAL VARIABLES?
probably saw them in your challenge directories, under config.
such as ENV['BUNDLE_GEMFILE'] in the environment.rb file and
Environment variables are variables passed to programs by the command line or the graphical shell.
Though there are a number of environment variables that only affect the command line or graphical
shell itself (such as PATH or HOME), there are also several that directly affect how Ruby scripts execute.
basically, they are variables that capture a certain element in your environment.
@krnwonseungee
krnwonseungee / jquery_example.html
Last active August 29, 2015 13:55 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
<!DOCTYPE html>
<html>
<head>
<title>DOM manipulation with jQuery</title>
<!-- Add a link to jQuery CDN here script here -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery_example.js"></script>
</head>
<body>
@krnwonseungee
krnwonseungee / 0.2.1-boggle_class_from_methods.rb
Last active January 1, 2016 06:59 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BoggleBoard
def initialize(board)
@board = board
end
def create_word(*coords)
coords.map { |coord| @board[coord.first][coord.last]}.join("")
end
def get_row(row)