Skip to content

Instantly share code, notes, and snippets.

View amazingandyyy's full-sized avatar
🦄

Andy Chen amazingandyyy

🦄
View GitHub Profile
@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 / 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 / .block
Last active February 7, 2017 02:48
World City Explorer
license: mit
  1. Install SolC on Mac OSX
brew tap ethereum/ethereum
brew install solidity
which solc
  1. go to geth console
@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

#2014

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

#2015

  • Jan: RoR
  • Decide to be a Javascript Ninja
  • Javascript, jQuery
@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
@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 / addresses.md
Last active June 13, 2017 01:13
wallet address for mining rewards

Andy的Bittrex錢包地址

  • MUSIC(MusicCoin): 0x8dffc25c71dc36faca954ed84b1d6edf7ae55fc7
  • ETH(Ethereum): 0xd1da7401047fd11adf00885611f84243a07dcf97
  • BTC(Bitcoin): 1KyU4VfZGhjHhytupk1BMUS7PNzmjMjaUv
  • ZEC(ZCash): t1ZNjZW5pEqfJeEuCwMecmsdApcg1ADmsUC

Miner Machine Status

@amazingandyyy
amazingandyyy / wallets.md
Last active June 19, 2017 02:36
A step-by-step tutorial of signup for a wallet

After this tutorial, you will have a Bittrex wallet that accept mining-rewards. Bittrex is one the mainly used wallets for miners.

  • step1: sign up a wallet here

  • step2: complete verification 1,2, and 3

  • step3: get your wallet address here

    • for example, click the [+] button of BTC to get your Bitcoin Wallet image1
  • finished