Skip to content

Instantly share code, notes, and snippets.

View amazingandyyy's full-sized avatar
🦄

Andy Chen amazingandyyy

🦄
View GitHub Profile
@amazingandyyy
amazingandyyy / 3dayproject.md
Created May 10, 2017 21:55
Ideas for 7-day projects

A list of ideas of 7-day projects

  • mail generator npm package

    • mailto generator site
  • search eventbrite npm package

    • search on eventbrite cli tool
    • advance search for eventbrite
  • check cypto npm package

@amazingandyyy
amazingandyyy / golang.md
Last active March 18, 2017 03:06
Golang Notes.md

A is equivalent to B

Init and assign value

A
var name string
nameA = "Andy"

B
nameB := "Andy

#2014

  • May: Swift
  • July: HTML/CSS
  • Sept: php, MySQL

#2015

  • Jan: RoR
  • Decide to be a Javascript Ninja
  • Javascript, jQuery
@amazingandyyy
amazingandyyy / Web Design For Complete Newbies.md
Last active February 27, 2017 20:53
A 5hrs X 6weeks Bootcamp for Complete New Web Design Learner

Week 1 Introduction & Browser & HTML structure

####Syllabus

  • Why do we learn HTML/CSS/JS
  • Who is amazingandyyy
  • Web structure and Browser
  • Tags

####project 1

  • Manipulate Facebook/DVC website
  1. Install SolC on Mac OSX
brew tap ethereum/ethereum
brew install solidity
which solc
  1. go to geth console
@amazingandyyy
amazingandyyy / .block
Last active February 7, 2017 02:48
World City Explorer
license: mit
@amazingandyyy
amazingandyyy / debugging-node-elastic-beanstalk-woes
Created January 19, 2017 09:22 — forked from jmar777/debugging-node-elastic-beanstalk-woes
Debugging "Failed to run npm install. Snapshot logs for more details." on Elastic Beanstalk
First, we need to figure out what the actual error is. This is obviously frustrating given that the error message is intentionally truncating it.
1) SSH in to your node (various guides available for this if you're not already familiar with this).
2) Run this command (basically an Elastic Beanstalk wrapper command for npm install I found in a blog post [1]):
$ sudo /opt/elasticbeanstalk/containerfiles/ebnode.py --action npm-install 2
3) Find the actual error message in the output from the npm install.
Once you know the error, it should hopefully be fairly obvious how to fix it. I've run into two different errors over the last couple days on Elastic Beanstalk:
The first was a dependency that was using the new "^X.Y.Z" version syntax, which is only supported in Node >= v0.10.26 (whereas Elastic Beanstalk only supports up to v0.10.21 as of today). The solution here was easy: hardcode a dependency version *prior* to when that dependency adopted to the new syntax.
@amazingandyyy
amazingandyyy / mochaTesting.md
Last active January 7, 2017 21:21
All about unit testing

write es6 in mocha testing files and nested files

(in package.json)

...
"scripts": {
      "test": "mocha --compilers js:babel-core/register --require ./test/test_helper.js --recursive ./test",
 "test:watch": "npm run test -- --watch"
@amazingandyyy
amazingandyyy / eb-deploy.md
Last active January 21, 2017 08:40
deploy express app to AWS by eb

#1. install eb, tutorial

$ brew install awsebcli
$ eb --version

#2. start to deploy

$ eb init
$ eb create
@amazingandyyy
amazingandyyy / yeah-restful.md
Last active January 2, 2017 22:27
Yeah Education Group RESTful API