Skip to content

Instantly share code, notes, and snippets.

View jhcheung's full-sized avatar

Jimmy Cheung jhcheung

  • Web Development
  • Brooklyn, NY
View GitHub Profile
@jhcheung
jhcheung / JimmyCheung.md
Last active July 29, 2020 06:29
Resume for Microsoft LEAP

Jimmy Cheung


Brooklyn, NY | (929) 888-2780 | [email protected] | LinkedIn | GitHub


Summary

Full stack web developer with experience in Ruby, Javascript, Rails, React, and PostgreSQL. My previous experience as a QA Analyst has powered my passion for working with products and solving issues in code and with code.

%-------------------------------------------------------------------------------
\begin{document}
% Print the header with above personal informations
% Give optional argument to change alignment(C: center, L: left, R: right)
\makecvheader
% Print the footer with 3 arguments(<left>, <center>, <right>)
% Leave any of these blank if they are not needed
\makecvfooter
%-------------------------------------------------------------------------------
% PERSONAL INFORMATION
% Comment any of the lines below if they are not required
%-------------------------------------------------------------------------------
% Available options: circle|rectangle,edge/noedge,left/right
% \photo{./examples/profile.png}
\name{Claud D.}{Park}
\position{Software Architect{\enskip\cdotp\enskip}Security Expert}
\address{42-8, Bangbae-ro 15-gil, Seocho-gu, Seoul, 00681, Rep. of KOREA}
@jhcheung
jhcheung / config.tex
Created July 6, 2020 03:39
Config LaTeX AwesomeCV
%-------------------------------------------------------------------------------
% CONFIGURATIONS
%-------------------------------------------------------------------------------
% A4 paper size by default, use 'letterpaper' for US letter
\documentclass[11pt, a4paper]{awesome-cv}
% Configure page margins with geometry
\geometry{left=1.4cm, top=.8cm, right=1.4cm, bottom=1.8cm, footskip=.5cm}
% Specify the location of the included fonts
@jhcheung
jhcheung / setActivePlayers.js
Created June 22, 2020 03:51
setActivePlayers
setActivePlayers({
currentPlayer: 'stage-name',
others: 'stage-name'
all: 'stage-name'
value: {
'0': 'stage-name',
'1': 'stage-name',
...
},
moveLimit: 5,
@jhcheung
jhcheung / stagesExample.js
Created June 22, 2020 03:41
stage example in boardgame.io
const game = {
moves: { ... },
turn: {
stages: {
discard: {
moves: { DiscardCard },
},
},
},
@jhcheung
jhcheung / phases.js
Created June 15, 2020 02:08
phase boardgame.io
const game = {
setup: ctx => ({ deck: 6, hand: Array(ctx.numPlayers).fill(0) }),
turn: { moveLimit: 1 },
phases: {
draw: {
moves: { DrawCard },
},
play: {
@jhcheung
jhcheung / client.js
Created June 8, 2020 03:03
boardgame.io client setup
import { SocketIO } from 'boardgame.io/multiplayer'
const TicTacToeClient = Client({
game: TicTacToe,
board: TicTacToeBoard,
multiplayer: SocketIO({ server: 'localhost:8000' }),
});
@jhcheung
jhcheung / server.js
Created June 8, 2020 02:40
server.js
const { Server } = require('boardgame.io/server');
const { TicTacToe } = require('./Game');
const server = Server({ games: [TicTacToe] });
server.run(8000);
@jhcheung
jhcheung / localMultiplayer.js
Created June 1, 2020 03:11
bg.io local multiplayer
// src/App.js
import React from 'react';
import { Client } from 'boardgame.io/react';
import { Local } from 'boardgame.io/multiplayer';
import { TicTacToe } from './game';
import { TicTacToeBoard } from './board';
const TicTacToeClient = Client({
game: TicTacToe,