Skip to content

Instantly share code, notes, and snippets.

View cyihsu's full-sized avatar
🎯
Focusing

Chen-Yi Hsu cyihsu

🎯
Focusing
  • Taipei
  • 03:49 (UTC +08:00)
View GitHub Profile
@cyihsu
cyihsu / ES6-Setup.md
Created August 27, 2019 18:36 — forked from rahman541/ES6-Setup.md
ES6 Setup with nodemon

ES6 Setup

npm init -y
npm i --save-dev nodemon
npm add babel-preset-env babel-cli

Create a .babelrc config in your project root. Insert the following

{
 "presets": ["env"]
@cyihsu
cyihsu / 2048.c
Last active December 6, 2018 07:29
2048
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<memory.h>
#include<string.h>
int board[4][4] = {}, pboard[4][4] = {};
void initNew(int times){
// Randomize seed