Skip to content

Instantly share code, notes, and snippets.

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