Skip to content

Instantly share code, notes, and snippets.

View xfanwu's full-sized avatar

Xiaofan Wu xfanwu

  • Chance.,Inc.
  • ✈Shenzhen, China
View GitHub Profile
@xfanwu
xfanwu / .eslintrc.js
Last active August 30, 2018 10:04
fgg eslintrc standard
module.exports = {
"env": {
"node": true,
"mocha": true
},
"extends": ["standard", "eslint:recommended"],
"rules": {
"prefer-const": ["error", { // 优先使用 const 来声明变量
"destructuring": "any",
"ignoreReadBeforeAssign": true
@xfanwu
xfanwu / .eslintrc.js
Last active August 30, 2018 10:05
fgg eslintrc.js for Vue
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
},
env: {
browser: true,
mocha: true
@xfanwu
xfanwu / VidalPackage.take(30).to_json
Created July 3, 2015 09:34
json for testing bootstrap-table
[{"id":4,"name":"18 FLT 222 MBq/mL S inj Fl/1 [ATUn]","vidal_id":469247,"vidal_product_id":127224,"cip13":null,"otc":false,"created_at":"2015-06-22T16:04:09.000Z","updated_at":"2015-06-22T16:04:09.000Z"},{"id":5,"name":"68 GA/ 68GE 1,1 GBq Générateur radiopharmaceutique B/1 [ATUn]","vidal_id":469240,"vidal_product_id":127225,"cip13":null,"otc":false,"created_at":"2015-06-22T16:04:09.000Z","updated_at":"2015-06-22T16:04:09.000Z"},{"id":6,"name":"A 313 200 000 UI/100 g Pom T/50g","vidal_id":6,"vidal_product_id":3,"cip13":"3400930001479","otc":true,"created_at":"2015-06-22T16:04:09.000Z","updated_at":"2015-06-22T16:04:09.000Z"},{"id":7,"name":"A 313 50 000 UI Caps molle B/30","vidal_id":2,"vidal_product_id":1,"cip13":"3400930000649","otc":false,"created_at":"2015-06-22T16:04:09.000Z","updated_at":"2015-06-22T16:04:09.000Z"},{"id":8,"name":"ABBE CHAUPITRE 05 S buv états grippaux Fl/20ml","vidal_id":17942,"vidal_product_id":8261,"cip13":"3400933080983","otc":false,"created_at":"2015-06-22T16:04:10.000Z","updated_a
@xfanwu
xfanwu / .profile
Created July 3, 2015 00:17
Bakcup for Bash
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
@xfanwu
xfanwu / .gitconfig
Created July 3, 2015 00:14
Backup for .gitconfig
[user]
name = Xiaofan Wu
email = qvanwu@gmail.com
[alias]
co = checkout
st = status
ci = commit
au = !git add -u && git add . && git status
last = log -1 HEAD
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
@xfanwu
xfanwu / .zshrc
Last active August 29, 2015 14:24
Backup for .zshrc file
# For Adonis
# Xiaofan
# 02 Jul 2015
# Path to your oh-my-zsh installation.
export ZSH=/Users/wuxxf/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
@xfanwu
xfanwu / xxf.zsh-theme
Last active November 10, 2022 19:53
Yet another theme for oh-my-zsh
# Copy and self modified from ys.zsh-theme, the one of default themes in master repository
# Clean, simple, compatible and meaningful.
# Tested on Linux, Unix and Windows under ANSI colors.
# It is recommended to use with a dark background and the font Inconsolata.
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white.
# http://xiaofan.at
# 2 Jul 2015 - Xiaofan
# Machine name.
function box_name {