Skip to content

Instantly share code, notes, and snippets.

View pcmac77's full-sized avatar
🎯
Focusing

Peter Chuang pcmac77

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pcmac77 on github.
  • I am peterchuang (https://keybase.io/peterchuang) on keybase.
  • I have a public key ASCV027d_9p27T71bwW763LH4sstn6xrmQ2V5RiIfFQDGAo

To claim this, I am signing this object:

@pcmac77
pcmac77 / download-offline-pkgs.sh
Created July 16, 2019 14:18
For downloading HC offline packages from S3
#!/bin/bash
# + management_tar_name=https://s3.amazonaws.com/appcito-docker-builds/hc-waters/HarmonyController-5.0.0-management-hc-waters.tar.gz
# + analytics_tar_name=https://s3.amazonaws.com/appcito-docker-builds/hc-waters/HarmonyController-5.0.0-analytics-hc-waters.tar.gz
# + install_tar_name=https://s3.amazonaws.com/appcito-docker-builds/hc-waters/HarmonyController-5.0.0-install-hc-waters.tar.gz
# + envsetup_tar_name=https://s3.amazonaws.com/appcito-docker-builds/hc-waters/HarmonyController-5.0.0-envsetup-hc-waters.tar.gz
SPACE_NAME=hc-waters
RELEASE=5.0.0
TAG=hc-waters
COMPONENTS=( management analytics install envsetup )
for comp in "${COMPONENTS[@]}"
@pcmac77
pcmac77 / fibonacci.py
Created April 9, 2019 07:56
2019-04-11 created by a10candidate - https://repl.it/@a10candidate/2019-04-11
###########
# Fibonacci
# Write a function fib(n) that returns a Fibonacci num.
# Your solution should be performant
def fibonacci(n):
# terminal condition
if n == 0:
return 0
if n == 1 or n == 2:
return 1
@pcmac77
pcmac77 / 1_toCurrency.js
Last active March 26, 2019 08:21
_JS TEST created by peterchuang - https://repl.it/@peterchuang/JS-TEST JS Coding questions
// Q1
// transform string to currency
function toCurrency(input) {
console.log('1_toCurrency');
}
toCurrency('99000000.5566'); // will return '99,000,000.5566'

Be a better project lead

What is a good project

  • On-time release
  • Good quality
  • Good reporting
  • Good presentation

How to become a better team lead

Keybase proof

I hereby claim:

  • I am pcmac77 on github.
  • I am peterchuang (https://keybase.io/peterchuang) on keybase.
  • I have a public key ASAMb2ZA1XgqIYEr5kn7gDu4RP6h1JMy9nV5hJZq7jCBcgo

To claim this, I am signing this object: