Skip to content

Instantly share code, notes, and snippets.

View VVCepheiA's full-sized avatar

Vera Xiaowen Lin VVCepheiA

View GitHub Profile
@VVCepheiA
VVCepheiA / CS247.md
Last active August 29, 2015 14:20
CS247 Course Notes

#CS247

Objective of OOD/OOP

  • abstraction
    • interface
    • data abstraction/ADT
  • reuse
    • inheritance
    • conposition
  • as is (in client code)
@VVCepheiA
VVCepheiA / CS240.md
Created May 5, 2015 14:09
CS 240 course notes

#CS 240

@VVCepheiA
VVCepheiA / Math239.md
Last active August 29, 2015 14:20
Course Note for Math 239

#Math 239

#####Peter Nelson (MC5134)

#####Tutorial MC2066 3:30-4:20 Tuesday Aaron Chan

##Grading Assignment 11am Wednesday (11 total, 10 used)

@VVCepheiA
VVCepheiA / gist:39c94b2135f53e488aec
Created March 18, 2015 20:17
Working HSQLDB config
rekomendi.jdbc.driverClassName=org.hsqldb.jdbcDriver
rekomendi.jdbc.url=jdbc:hsqldb:file:db/test
rekomendi.jdbc.username=sa
rekomendi.jdbc.password=
jpa.database=HSQL
jpa.dialect=org.hibernate.dialect.HSQLDialect
hibernate.hbm2ddl.auto=update
@VVCepheiA
VVCepheiA / nodejs.md
Last active August 29, 2015 14:16
Node.js installation

Evented I/O for V8 javascript.

To build:

Prerequisites (Unix only):

* GCC 4.2 or newer
* G++ 4.2 or newer
* Python 2.6 or 2.7
@VVCepheiA
VVCepheiA / snippets.md
Last active August 29, 2015 14:15
Snippets

#Testing ###Mongo DB show collections

@VVCepheiA
VVCepheiA / Docker on Linux.md
Last active August 29, 2015 14:14
Docker on Linux

Docker Setup on Linux

Note: THIS GUIDE IS NOT TESTED YET! The following steps are meant to create an environment for deploying app with tomcat and mysql with a war file. Assuming you are using Linux. For the Mac local version, please go here.

  1. Install Docker following the guild here.

  2. Go here and follow the step there to get the mysql image/Dockerfile. It's a good idea to create a new empaty folder for the files from the repo. Replace the "XXXXXXXX" with desired username/password.

$ sudo docker run -d --name db -e MYSQL_USER="XXXXXXXX" -e MYSQL_PASSWORD="XXXXXXXX" -e MYSQL_ROOT_PASSWORD="XXXXXXXX" -e MYSQL_DATABASE="rekomendi" -p 3306:3306 mysql
@VVCepheiA
VVCepheiA / Rek Docker on Mac.md
Last active August 29, 2015 14:14
Rek Docker on Mac

Docker Setup on Mac

Note: The following steps are meant to create an environment for deploying app with tomcat and mysql with a war file. Assuming you are using mac. For the Linux server version, please go here.

  1. Download Docker here. This should give you everything you need to run Docker on Mac. Note: You don't need to install VM or boot2docker if you are on Linux.

If you don't like the convenient way, you can do it manually. Install Docker, VM (for running boot2docker) and boot2docker (for running Docker on Mac)

@VVCepheiA
VVCepheiA / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console