Skip to content

Instantly share code, notes, and snippets.

View helloanh's full-sized avatar
👻
I may be slow to respond.

Ann K. Hoang helloanh

👻
I may be slow to respond.
View GitHub Profile
function Test({ user }) {
return (
<div className="container">
<Head>
<title>
Pi Network Demo
</title>
<script src="https://downloads.minepi.com/sdk/v1/prod.js"></script>
</Head>
<main>
@helloanh
helloanh / RDS-Aurora-CloudFormation-Example.yaml
Created September 11, 2019 17:29 — forked from sjparkinson/RDS-Aurora-CloudFormation-Example.yaml
A basic CloudFormation template for an RDS Aurora cluster.
---
AWSTemplateFormatVersion: 2010-09-09
Description: >
A basic CloudFormation template for an RDS Aurora cluster.
Parameters:
DatabaseUsername:
AllowedPattern: "[a-zA-Z0-9]+"
ConstraintDescription: must be between 1 to 16 alphanumeric characters.
/*
Homework 8
Hoang, Anh
*/
-- FINAL FORMAT
-- movie id, movie title, release date, IMDB URL, avg_rating
-- step 1) Load u.data and u.item tables from hdfs,
-- assign to proper column names
auto lo
iface lo inet loopback
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan0
#iface wlan0 inet dhcp
iface wlan0 inet static
@helloanh
helloanh / only-human.rb
Last active April 27, 2017 03:39
codepoem #30dayschallenge #poetrychallenge
# Title: Only Human
class Human
def initialize(name)
@name = name.uppercase
@consciousness = Consciousness.new
@greed = Random.rand(0..100)
@love = Random.rand(0..100)
def loveCapacity
@helloanh
helloanh / AWS-Certified-Architecture-Lecture-Notes.md
Last active October 13, 2016 15:12
AWS setup, IAM, S3, EC2

Sesction 3. Identity Access Management 101

IAM allows you to manage users and their level of access to the AWS Console.

What IAM gives you?

    + centralized control your AWS account  
    + shared access to your AWS account  
    + granular permissions  
    + identity federation (including Active Directory, Fb, Linkedin, etc)  
  • multifactor authen
@helloanh
helloanh / code_4_am.py
Last active August 29, 2015 14:21
program to parse a large txt file, and find pop and housing densities in relation to place PIPs
"""
Name: Anh Kim Hoang
Info: program to parse a text file and calculate population and housing densities for each place,
and to find densest and sparsest places
NOTES:
place PIPs as place - 4th column
population - 14th
#-----------------------------------------------------------------------------
# Name: Tic Tac Toe
# Purpose: Simple game of tic tac toe with tkinter library for GUI
# Info: Tested with Python 3.4.1 on Mac OS v.10.9.5
#-----------------------------------------------------------------------------
import tkinter
import random
from itertools import permutations
# Compare Fibonacci!
# At this point you should be good at refactoring your code to make it better,
# but do you feel comfortable determining "good" vs. "bad" code? In this exercise
# you will evaluate four different solutions to the same challenge and evaluate
# their clarity, effectiveness, and overall "good"ness.
# By the end of this challenge, you should be able to:
# 1) Confidently read other people's code and figure out how it works
# 2) Recognize good and not so good practices
# 3) Consider ways to improve solutions