Skip to content

Instantly share code, notes, and snippets.

View flyingzl's full-sized avatar
🎯
Focusing

石头 flyingzl

🎯
Focusing
  • Chengdu,China
View GitHub Profile
@flyingzl
flyingzl / package.json
Last active March 3, 2020 03:29
webpack config configurations on Windows
{
"name": "think-in-react",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"dev": "webpack-dev-server --devtool source-maps --hot --progress --colors --content-base .",
"build": "set NODE_ENV=production&&webpack -pd"
},
"browserify": {
@flyingzl
flyingzl / gist:c587e20bb264c3049546834c5177961a
Created June 17, 2016 10:48 — forked from amitsaxena/gist:9cb0712e572c39a41edc
CustomURL: Launch app if app is installed, else open an alternate URL (Android all browsers)
<script type="text/javascript">
var custom = "myapp://custom_url";
var alt = "http://mywebsite.com/alternate/content";
var g_intent = "intent://scan/#Intent;scheme=zxing;package=com.google.zxing.client.android;end";
var timer;
var heartbeat;
var iframe_timer;
function clearTimers() {
clearTimeout(timer);