Skip to content

Instantly share code, notes, and snippets.

View pciapcib's full-sized avatar

Kamisama pciapcib

  • Bytedance
  • Hangzhou, China
View GitHub Profile
@pciapcib
pciapcib / CSS Reset
Last active April 11, 2016 09:58
CSS reset
/*
RESET STYLESHEET
*/
* {
box-sizing: border-box;
}
@pciapcib
pciapcib / HTML Starting Template
Last active April 11, 2016 09:55
HTML starting template
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta http-equiv="Cache-Control" content="no-siteapp">
<meta name="renderer" content="webkit">
@pciapcib
pciapcib / .eslintrc.json
Last active August 17, 2016 02:33
eslint json
module.exports = {
root: true,
extends: "airbnb/base",
plugins: [
"html"
],
rules: {
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
"comma-dangle": [1, "never"],
"indent": [1, 4, {
@pciapcib
pciapcib / template.vue
Last active May 20, 2017 12:44
Vue file template
<template lang="jade">
</template>
<script>
// import { } from '../../vuex/getters'
// import { } from '../../vuex/actions'
export default {
vuex: {
return loader + (options.sourceMap ? extraParamChar + 'sourceMap' : '')
+ (loader == 'css-loader' ? '!autoprefixer-loader?browsers=last 5 version' : '')
# 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 ->