Skip to content

Instantly share code, notes, and snippets.

View jkaihsu's full-sized avatar

J-kai Hsu jkaihsu

View GitHub Profile
@jkaihsu
jkaihsu / index.html
Last active December 16, 2015 22:09 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
@jkaihsu
jkaihsu / zoo.js
Last active December 16, 2015 22:09 — forked from dbc-challenges/zoo.js
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
function Animal(species, legs) {
this.species = species;
this.legs = legs;
}
var Zoo = {

ActiveRecord Notes


Queries

Create

> User.create(:name => 'jkai', :movie => 'gone with the wind')

Create 9 by 9 Array

string = ["E", "Y", "T", "B", "H", "I", "S", "S", "R", "P", "N", "E", "H", "F", "Qu"]
new_array = Array.new(9) {string.shift(9)}

> [["E", "Y", "T", "B"], ["H", "I", "S", "S"], ["R", "P", "N", "E"], ["H", "F", "Qu"]] 

JavaScript CodeSchool


Objects

Create a new object

var toilet = new Object();
@jkaihsu
jkaihsu / css.md
Last active December 17, 2020 03:17

CSS

Basics

Resource: CSS Basics/Basics/111-html-css-css-cascading-style-sheets-360

  1. HTML describes its structures
  2. CSS descrive its presentation

Selector

@jkaihsu
jkaihsu / debugger.md
Last active December 17, 2015 02:48

JavaScript CodeAcademy

Date: May 8, 2013


1. Intro to Javascript

confirm("I understand the terms")