Skip to content

Instantly share code, notes, and snippets.

View linmic's full-sized avatar

Linmic linmic

View GitHub Profile
h4 {
font: normal 25px/1.76 'Open Sans', 'Pingfang TC', Arial, sans-serif;
}
h3 {
font: normal 28px/1.76 'Open Sans', 'Pingfang TC', Arial, sans-serif;
}
h2 {
font: normal 31px/1.76 'Open Sans', 'Pingfang TC', Arial, sans-serif;
}
@linmic
linmic / h1.scss
Last active August 25, 2016 06:18
h1 {
font-weight: 700;
font-size: 34px;
line-height: 1.76;
}
var d3 = require('d3');
var jsdom = require("jsdom-little");
var React = require('react-native');
var { View, Text } = React;
var Svg = require('./Svg');
var parseDate = d3.time.format("%d-%b-%y").parse;
var D3Chart = React.createClass({
componentDidMount() {
#!/usr/bin/python2.7
PATH='./src/assets/'
import os, subprocess
for f in os.listdir(PATH):
name, ext = os.path.splitext(f)
if ext in ['.svg', '.png', '.jpg', '.ico']:
@linmic
linmic / result.css
Last active September 21, 2015 07:39
<style>
/* your original css */
...
/* if light theme is selected, the corresponding theme styles will be inserted into the end of the styles */
.theme-light {}
</style>
.theme-light body {
background-color: #fff;
}
@linmic
linmic / app.jsx
Created September 21, 2015 07:26
<div className={`theme-${theme}`}>
<Header />
<Main />
<Footer />
<ThemeManager theme={theme} />
</div>
.
├── theme-manager.jsx
├── ThemeDark
│   ├── theme-dark.css
│   ├── theme-dark.jsx
│   └── package.json
├── ThemeLight
│   ├── theme-light.css
│   ├── theme-light.jsx
│   └── package.json