Skip to content

Instantly share code, notes, and snippets.

View dawncold's full-sized avatar
🎯
Focusing

Zhen Tian dawncold

🎯
Focusing
View GitHub Profile
import { Index } from './Index';
import { BaseLayout } from './BaseLayout';
<Route path="/" component={BaseLayout} hideHeader="false" hideFooter="false">
<IndexRoute component={Index}/>
</Route>
@dawncold
dawncold / webpack.config.js
Last active January 12, 2017 15:38
my webpack config
const path = require('path');
const webpack = require('webpack');
const pkg = require('./package.json');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const InlineManifestWebpackPlugin = require('inline-manifest-webpack-plugin');
const APP_SRC_PATH = path.resolve(__dirname, 'mobile/frontend');
const APP_DIST_PATH = path.resolve(__dirname, 'static/mobile/dist');
const STATIC_PATH = path.resolve(__dirname, 'static');
const jsTemplate = path.resolve(APP_SRC_PATH, 'frontend-js.ejs');
const cssTemplate = path.resolve(APP_SRC_PATH, 'frontend-css.ejs');
@dawncold
dawncold / hideRows.vba
Created November 13, 2016 10:42
hide some rows in excel
Sub LoopThroughSheets()
Dim ws As Worksheet
Dim endDate As Date
endDate = DateValue("2016/10/09")
For Each ws In ActiveWorkbook.Worksheets
If ws.Name <> "汇总" Then
For Each rw In ws.Rows
If rw.Cells(1).Value = "" Then
Exit For
@dawncold
dawncold / index.html
Created November 30, 2015 10:29
React todo mvc
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Hello React!</title>
<style>
li.todo-item.completed span {
text-decoration: line-through;
}
</style>