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 / localstorage-fault.html
Created Jul 24, 2012 — forked from sofish/localstorage-fault.html
localstorage 不能直接包
View localstorage-fault.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>LocalStorage fault</title>
<link rel="stylesheet" href="http://typo.sofish.de/typo.css" />
</head>
<body class="typo" style="width:800px;margin:30px auto;">
<h3># error message</h3>
@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')
@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 / 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
You can’t perform that action at this time.