Skip to content

Instantly share code, notes, and snippets.

View rockmanvnx6's full-sized avatar

Austin (Thang Pham) rockmanvnx6

View GitHub Profile
@rockmanvnx6
rockmanvnx6 / The Rules.md
Created September 18, 2021 06:59 — forked from sebmarkbage/The Rules.md
The Rules of React

The Rules of React

All libraries have subtle rules that you have to follow for them to work well. Often these are implied and undocumented rules that you have to learn as you go. This is an attempt to document the rules of React renders. Ideally a type system could enforce it.

What Functions Are "Pure"?

A number of methods in React are assumed to be "pure".

On classes that's the constructor, getDerivedStateFromProps, shouldComponentUpdate and render.

@rockmanvnx6
rockmanvnx6 / Adding 'Forgot Password' to login page.md
Created May 1, 2021 04:25 — forked from wendygwo/Adding 'Forgot Password' to login page.md
How to add 'Forgot password' to a Rails app that's using bcrypt for authentication

Credit:

All the steps below came from watching the Railscast below:

http://railscasts.com/episodes/274-remember-me-reset-password

The steps below assumes that your app already has a user and user authentication set up.

  • Add to app/views/sessions/new.html.erb file
<p><%= link_to 'Forgot password?', new_password_reset_path %></p>
@rockmanvnx6
rockmanvnx6 / tutorial.md
Created April 18, 2021 10:52 — forked from thibaudgg/tutorial.md
Rails Authentication from Scratch - Step by Step

Rails Authentication from Scratch - Step by Step

Prerequisites

  • Clone the Cloud9 thibaudgg/rails-weblog workspace. Go to https://c9.io/new/clone and then choose the "MAS-RAD / Ruby on Rails" team, click on the "Clone workspace" tab, then choose the "thibaudgg/rails-weblog" workspace.
  • Seed the database, this will create some posts and comments (see db/seeds.rb):
rails db:seed
@rockmanvnx6
rockmanvnx6 / test.py
Created March 17, 2020 08:00
Telstra Grad Coding Challenge
def get_alice_fav_number(line):
arr = line.split()
return helper(arr, 0)
def helper(arr, remainder):
bufferArr = arr[:]
if(remainder == 42):
return True
@rockmanvnx6
rockmanvnx6 / The Technical Interview Cheat Sheet.md
Created March 5, 2020 21:24 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@rockmanvnx6
rockmanvnx6 / id_rsa.pub
Last active October 9, 2023 12:37
Public Key 👀
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCtgzLGLx4Zo/dQ4WDwdo1vcJIFnkAXczCVI/+e5ZGjOGsa6kcvXaKHLFclz6YpmunlOucui2/yspA0RCYlqMuvqPCvYht5yoMsRMnqfPAG0+uNfLvGYf7mWKY1Y5Y5+9jZNvw+r4hZ20Bg6lyaoe5GtlkZp9OzBoKnp+ofo9fWRQK9l2VZ9jrAr686SgPouymEfZtfChhsr+NIUYy+70QddRnci7Sz02y7fEtv7bGgBt/prvn+CZP2oTKvsvksM/BtLBBkgIacvt0A5l3tzNaT08dImJlxczBb/kEqqZbkWmFGKQJ1Yoj8u7hNXjLNtP5JWTYHCL69MFcYBOpXBARkpDyS+atJjO+AYJN+MZBYb2fZ0fWSYh0h7E4y0xWiLXYWSlfeTxQcf05osG84CF0dC91nRqRBTlQDWUQX9SmqCg5S/0fyX7z4dYcPgYkAdZfZG3Eyu/jfTiJ/VEbhLD4KffZjAn0dAO2Cp2fOFx0WmRvrWJswVhqXU6RVjGLqWgs= austin
@rockmanvnx6
rockmanvnx6 / report-sept.md
Created October 19, 2019 02:35
report-sept

Tom-Yum

Team Members:

Duy Linh Nguyen Thang Pham Lam Tram

Keybase proof

I hereby claim:

  • I am rockmanvnx6 on github.
  • I am rockmanvnx6 (https://keybase.io/rockmanvnx6) on keybase.
  • I have a public key ASBy3i91UqdwaQwHFWOiwCE5tJtNTOCIVg7fMfjdu_z3YQo

To claim this, I am signing this object:

@rockmanvnx6
rockmanvnx6 / checkList.py
Last active June 28, 2019 04:20
checkListGenerator - To generate checklist based on mp4 video
import os
import datetime
a = sorted(os.walk("."))
ignore = ['.dist', '.DS_Store', '.', './.dist']
fileNo = 0
checkedList = []
# ['./Folder',[],['Item1','Item2']]
with open("checkList.md", "r") as read:
for i in read:
{"libs":[{"name":"jQuery 3","src":"@extension@jquery.min.js"}],"settings":{"badgeCounter":false,"editorConfig":{"enableBasicAutocompletion":false,"enableLiveAutocompletion":true,"enableSnippets":true,"fontSize":15,"highlightActiveLine":false,"keyboardHandler":false,"showPrintMargin":false,"tabSize":4,"theme":"ace/theme/tomorrow","useSoftTabs":false,"useWorker":true,"wrap":true},"supportBtn":false,"themesFolder":["chrome","clouds","dawn","dracula","dreamweaver","eclipse","github","monokai","solarized_dark","solarized_light","textmate","tomorrow","tomorrow_night","twilight"],"version":8},"sites":[{"compiledCss":".btn_toggle {position: fixed!important; bottom: 0px!important; right: 0px!important; z-index: 999999!important; font-size: 2em!important; padding: 1em!important;}.answer.selected_answer {opacity: 0.7!important;}","css":".btn_toggle{\n\tposition: fixed;\n\tbottom: 0;\n\tright: 0;\n\tz-index: 999999;\n\tfont-size: 2em;\n\tpadding: 1em;\n}\n\n.answer.selected_answer{\n\topacity: .7;\n}","id":"rmit.instruct