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
@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 / 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
View vuePicker.vue
<script>
import Pikaday from 'pikaday';
const today = new Date(),
i18n = {
previousMonth: '上月',
nextMonth: '下月',
months: [
'一月',
'二月',
@interjc
interjc / remove.vue
Created Aug 23, 2016
Use Vue Modal Component
View remove.vue
<script>
import Vue from 'vue';
import Ajax from '../utils/ajax';
import Modal from './modal.vue';
let httpRes = {};
export default {
props: {
@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
@interjc
interjc / node.js.md
Last active May 5, 2016
Node.js 基础入门
View node.js.md
1、nodejs编写HelloWord,了解什么是nodejs,nodejs有什么特点

2、nodejs的模块怎么用,如何载入别的模块(require),如何给另一模块调用(module, module.exports),自己编写的模块与
   node_modules下模块有什么区别,载入顺序是怎样的;自己写一个编写nodejs的一个模块;

3、npm是什么,npm工具如何使用
   npm install 
   npm init 
   npm install xxx
@interjc
interjc / 0_reuse_code.js
Created Jan 20, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@interjc
interjc / gulpfile.js
Created Oct 16, 2015 — forked from alyssaq/gulpfile.js
browserify, babel, gulp, glob, vinyl-source-stream, uglify
View gulpfile.js
/*
npm install gulp gulp-load-plugins gulp-uglify
npm install browserify babelify glob vinyl-source-stream vinyl-buffer
More examples: https://github.com/gulpjs/gulp/tree/master/docs/recipes
*/
var gulp = require('gulp')
var $ = require('gulp-load-plugins')()
var browserify = require('browserify')
You can’t perform that action at this time.