Skip to content

Instantly share code, notes, and snippets.

😂
Learning

Justin Chen interjc

😂
Learning
Block or report user

Report or block interjc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View vuePicker.vue
<script>
import Pikaday from 'pikaday';
const today = new Date(),
i18n = {
previousMonth: '上月',
nextMonth: '下月',
months: [
'一月',
'二月',
@interjc
interjc / mysql-docker.sh
Created Apr 18, 2017 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
View mysql-docker.sh
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@interjc
interjc / ajax.js
Last active Apr 26, 2017
Axios packaging
View ajax.js
/**
* import Vuejs
*/
import Vue from 'vue'
/**
* import axios
*
* Usage of Axios
* https://github.com/mzabriskie/axios
@interjc
interjc / ajax.js
Created Jul 18, 2016
vue-resource 二次封装
View ajax.js
import Vue from 'vue';
import VueResource from 'vue-resource';
import utils from './utils';
import local from './local';
import toast from './toast';
Vue.use(VueResource);
// Usage
You can’t perform that action at this time.