Skip to content

Instantly share code, notes, and snippets.

View andrew-h-lee's full-sized avatar

Andrew H. Lee andrew-h-lee

View GitHub Profile
@andrew-h-lee
andrew-h-lee / Bootstrap V2.html
Last active December 15, 2015 05:51
Bootstrap Ver.2 Snippets
<!-- Image Carousel -->
<div id="myCarousel" class="carousel-slide">
<div class="carousel-inner">
<div class="item-active"><img src"images/.jpg">
<div class="container-active">
<div class="carousel-caption">
<p><a href="#" class="btn-color-size"></a></p>
</div>
</div>
@andrew-h-lee
andrew-h-lee / Bootstrap V3.html
Last active May 27, 2016 12:29
Bootstrap V3 Snippets
==Bootstrap Ver.3==
<!-- Nested Columns -->
<div class="row">
<div class="col-md-9"> Col-1
<div class="row">
<div class="col-md-6">
<div class="well">Nest Col-1</div>
</div>
<div class="col-md-6">
@andrew-h-lee
andrew-h-lee / Ruby Notes 01.rb
Last active May 27, 2016 12:26
Some Ruby Notes Reminders
<!-- Funcationality of Controller -->
```
def create
@current_user = User.find_by_login_and password(
params[:login], params[:password])
if @current_user
session[:user_id] = @current_user.id
redirect_to XXX_path
else
@andrew-h-lee
andrew-h-lee / calc.css
Last active June 24, 2016 17:44
Github Documentation Structure (in MD)
.element {
width: -webkit-calc(100% + 20px);
width: -moz-calc(100% + 20px);
width: calc(100% + 20px);
}
/* Example */
img {
width: calc(25% - 20px);
@andrew-h-lee
andrew-h-lee / Constructor Function.md
Last active May 27, 2016 12:30
Node Basic Template
  • function Player(n) { this.name = n; }

  • var fred = new Player("Fred");

  • var bob = new Player("Bob");

@andrew-h-lee
andrew-h-lee / Python-cmd.md
Last active May 27, 2016 12:28
Basic Python & Django Commands on Terminal
# Command 0
# 2to3 on command line
$ 2to3 -w file.py

# Command 1
# Importing modules
import math
# or, import one item
from math import sin
@andrew-h-lee
andrew-h-lee / RVM-VirtualENV.md
Last active May 19, 2020 11:40
RVM for Ruby; VirtualENV for Python

###RVM for Pythonistas, Virtualenv for Rubyists

For Python Developers: virtualenv, virtualenvwrapper or Buildout Note: envs = environments For Ruby Developers: rvm

####Installation #####Python

Info Command
Install pip $ sudo pip install virtualenvwrapper
@andrew-h-lee
andrew-h-lee / Basic Github.md
Last active April 18, 2016 02:45
Basic Github Commands
  • git init
  • git add --all
  • git commit -m "initial commit"
  • git remote add origin git@github.com:user/git_name.git
  • git push -u origin master[or branch name]
  • git pull --rebase -> if your branch is ahead by X ammount of commits
@andrew-h-lee
andrew-h-lee / rails-postgresql.md
Last active May 27, 2016 12:22
Create Rails App w/ PostgreSQL

Instructions: Rails & PostgreSQL

  • Creating a new rails app using postgresql
$ mkdir rails_projects
$ cd rails_projects
$ rails new myapp --database=postgresql
$ cd myapp
@andrew-h-lee
andrew-h-lee / div-icon-wrapper.md
Created June 24, 2016 17:43
Write up icon div-tags

Icon div-tags

<div class="wrapper">
  <div class="col-4">
    <p> Text Paragraph </p>
      <i class="iconTech devicon-logo colored"></i> 
  </div>
</div>