This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gh release list | grep Draft | awk '{print $1 " \t"}' | while read -r line; do gh release delete -y "$line"; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import toDoService from './toDo' | |
const TEST_USER_ID = "test-1212" | |
const NOW = String(Date.now()) | |
const UPDATED_NOW = String(Date.now()) | |
const SAMPLE_TODO = { | |
userId: TEST_USER_ID, | |
name: "TODO-1", | |
deadline: NOW, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title</title> | |
</head> | |
<body> | |
<script | |
src="https://unpkg.com/react@17/umd/react.development.js" | |
crossorigin | |
></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>React App</title> | |
</head> | |
<body> | |
<div id="root"></div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import App from "./App"; | |
ReactDOM.render( <App/>, document.getElementById('root') ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
class App extends React.Component { | |
render() { | |
return( | |
<div> | |
Hello World! | |
</div> | |
); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
presets: [ | |
[ | |
"@babel/preset-env", | |
{ | |
modules: false, | |
targets: { | |
browsers: [ | |
"last 2 Chrome versions", | |
"last 2 Firefox versions", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const HtmlWebPackPlugin = require('html-webpack-plugin'); | |
module.exports = { | |
context: path.resolve(__dirname,'src'), | |
entry: './index.js', | |
output: { | |
path: path.resolve(__dirname, 'dist'), | |
filename: 'main.js', | |
publicPath:'./', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import os | |
import sys | |
def load_csv(csv_file_name): | |
print("loading csv @", csv_file_name) | |
buffer = np.loadtxt(csv_file_name, dtype=np.str, delimiter=",") | |
print("csv loaded succesfully") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @apiDefine admin admin title | |
* Only admin has permission to delete user <-- description | |
* apiDefine定義一個叫admin的block | |
* 可以再其他的註譯呼叫這個block | |
*/ | |
/** | |
* @api {get} /user/:userId get user | |
* {method} {route} {desciption} |