Skip to content

Instantly share code, notes, and snippets.

View HuangStanley050's full-sized avatar
🤙
Wow Micro Frontend

Stanley Huang HuangStanley050

🤙
Wow Micro Frontend
View GitHub Profile
@HuangStanley050
HuangStanley050 / ReduxTypescriptFlow
Created December 23, 2019 23:23
Redux Typescript setup workflow
Add App specific types
Create action types
Create app state types (data in reducers)
Hook up types to Redux actions
Hook up types to Reducers
Hook up types to Store
Hook up types to middleware
Hook up types to React component(mapState,mapDispatch)
# 1. Create a folder named code inside your home directory, cd into it
# 2. Inside the code directory create another directory named ruby
# 3. cd into the ruby directory and create a week_one directory
# 4. cd back to the code directory
# 5. Create a javascript directory inside of code
# 6. Now delete the javascript directory with the rm command, we don't need javascript yet
# 7. cd back into ruby and touch two files, test.rb and command_line.rb
# 8. code . to open both files in vs code
# 9. Create a hidden file name .secrets
# 10. Run ls -la to view it on the command line
@HuangStanley050
HuangStanley050 / index.html
Created February 4, 2018 04:04
Score Keeper
<h1>Score Keeping App</h1>
<h3 >How many to win:<button onclick="increase();"id="plus"class="plus_minus add">+</button><button onclick="decrease();"id="minus"class="plus_minus subtract">-</button></h3>
<h3 id="win">7</h3>
<div class="scores">
<div class="player p1">
<h1 id="P1_score"></h1>
</div>
<div class="player p2">
<h1 id="P2_score"></h1>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Title Goes Here</title>
<link href="./resources/something.css" type="text/css" rel="stylesheet">
</head>
<body>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Title Goes Here</title>
<link href="./resources/something.css" type="text/css" rel="stylesheet">
</head>
@HuangStanley050
HuangStanley050 / index.html
Created January 2, 2018 03:14
Music Search app
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Music Search App</title>
<link href="./resources/something.css" type="text/css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Righteous" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Work+Sans" rel="stylesheet">
@HuangStanley050
HuangStanley050 / index.html
Created December 29, 2017 10:12
Match Game
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Title Goes Here</title>
<link href="./resources/something.css" type="text/css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Work+Sans" rel="stylesheet">
</head>
@HuangStanley050
HuangStanley050 / index.html
Created December 2, 2017 11:46
Random Quote page
<head>
<title>Random Quote generator</title>
</head>
<body>
<h1>This site generate a random quote</h1>
<br>
<br>
<input type="button" class="button" onclick="upDate_quote()" value="Generate">
@HuangStanley050
HuangStanley050 / index.html
Created December 2, 2017 11:44
Wikipedia viewer API
<body>
<div class="containter-fluid">
<h1 class="text-center">Wikipedia Viewer</h1>
<a target="_blank" href="https://en.wikipedia.org/wiki/Special:Random" role="button" class="btn btn-info center-block">Random Article</a>
<br>
<br>
<form onsubmit="return ClickEvent();">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search" id="test" >