Skip to content

Instantly share code, notes, and snippets.

View rjisoo's full-sized avatar

Jisoo rjisoo

View GitHub Profile
@rjisoo
rjisoo / index.js
Last active February 29, 2020 03:32
tic tac toe
// npm install prompts && node index.js
const prompts = require('prompts');
class Game {
constructor() {
this.board = []
this.winner = ''
this.currentPlayer = 'O'
this.margin = ' '
@rjisoo
rjisoo / index.html
Created February 16, 2020 05:48
DOM practice
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CS290 - DOM and Events</title>
</head>
<body>
<script src="script.js"></script>
</body>
@rjisoo
rjisoo / gist:fc6b9fb2838d686edd05d11c831864b5
Created December 31, 2019 01:15
download audio by url
<button onclick="(function () {
var filenames = []
var promises = filenames.map(function(filename) {
return new Promise(function(resolve, reject) {
var createObjectURL = function (file) {
if (window.webkitURL) {
return window.webkitURL.createObjectURL(file);
} else if (window.URL && window.URL.createObjectURL) {
return window.URL.createObjectURL(file);
@rjisoo
rjisoo / product_style
Created February 24, 2019 07:38 — forked from atomjar/product_style
Stylesheet for Vue Mastery's Intro to Vue course
body {
font-family: tahoma;
color:#282828;
margin: 0px;
}
.nav-bar {
background: linear-gradient(-90deg, #84CF6A, #16C0B0);
height: 60px;
margin-bottom: 15px;
// Docs!
// 1. getter/setter
// http://docs.sequelizejs.com/en/latest/docs/models-definition/#getters-setters
// 2. when to use this.getDataValue('something') vs. this.something
// http://docs.sequelizejs.com/en/latest/api/instance/#class-instance
User.create({
firstName: 'Jisoo',
lastName: 'Ryu',
@rjisoo
rjisoo / postgres-cheatsheet.md
Created September 23, 2016 14:39 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

If run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).

Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*