Skip to content

Instantly share code, notes, and snippets.

View alxtz's full-sized avatar
🙀
Working on a shotgun surgery.

Alex Tzeng alxtz

🙀
Working on a shotgun surgery.
View GitHub Profile
@alxtz
alxtz / cc.diff
Created November 18, 2019 03:48
git diff GitHub/develop...feature/migrate_dashboard_with_external_modules -- . ':(exclude)*/legacy/*' ':(exclude)*.lock' ':(exclude)*/dist/*'
diff --git a/app/javascript/components/pages/DashboardView/index.js b/app/javascript/components/pages/DashboardView/index.js
index daf195608..94b5721a6 100644
--- a/app/javascript/components/pages/DashboardView/index.js
+++ b/app/javascript/components/pages/DashboardView/index.js
@@ -1 +1,3 @@
-export { default } from './DashboardView'
+import { Dashboard } from 'xfers-dashboard'
+
+export default Dashboard
diff --git a/client_app/packages/xfers-dashboard/.gitignore b/client_app/packages/xfers-dashboard/.gitignore
@alxtz
alxtz / App.js
Last active October 18, 2019 08:58
sample react component
import React from 'react'
class App extends React.Component {
// NOTE common fields
static propTypes = {
}
static defaultProps = {
}
module.exports = {
config: {
fontSize: 16,
fontFamily: 'OperatorMono Nerd Font',
fontWeight: 'bold',
cursorShape: 'BLOCK',
cursorBlink: false,
// color of the text
foregroundColor: '#c4c8c6',
// terminal background color
@alxtz
alxtz / .hyper.js
Created January 5, 2018 18:20
AlxTz's .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 16,
// font family with optional fallbacks
@alxtz
alxtz / some.json
Created December 25, 2017 06:52
1231
[
{
"年度": "105",
"作物名稱": "稻米(糙米)",
"產量": "1264128.37",
"單價": "30041.8026374964",
"產值": "37976695"
},
{
"年度": "105",
@alxtz
alxtz / package.json
Created December 18, 2017 09:00
Vue-cli boilerplate 的 package.json
{
"name": "iron-man-demo",
"version": "1.0.0",
"description": "為了 demo 而建的 project",
"author": "Alex Tzeng <[email protected]>",
"private": true,
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"lint": "eslint --ext .js,.vue src",
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
from bs4 import BeautifulSoup
import requests
import time
title = 'foo'
start_date = 'bar'
end_date = 'foo'
location = 'bar'
host = 'foo'
description = 'bar'
from bs4 import BeautifulSoup
import requests
import time
title = 'foo'
start_date = 'bar'
end_date = 'foo'
location = 'bar'
host = 'foo'
description = 'bar'
from bs4 import BeautifulSoup
import requests
import time
title = 'foo'
start_date = 'bar'
end_date = 'foo'
location = 'bar'
host = 'foo'
description = 'bar'