Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Remove rubberband scrolling from web apps on mobile safari (iOS)</title> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <meta name="apple-touch-fullscreen" content="yes"> | |
| <meta id="extViewportMeta" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"> | |
| <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script> | |
| <style> | |
| html, body {margin: 0; padding: 0; overflow: hidden} |
| var isWeixin = false; | |
| if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") { | |
| isWeixin = true; | |
| } else { | |
| if (document.addEventListener) { | |
| document.addEventListener("WeixinJSBridgeReady", function() { isWeixin = true; }, false); | |
| } else if (document.attachEvent) { | |
| document.attachEvent("WeixinJSBridgeReady", function() { isWeixin = true; }); | |
| document.attachEvent("onWeixinJSBridgeReady", function() { isWeixin = true; }); |
Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math| npm set registry https://r.npm.taobao.org # 注册模块镜像 | |
| npm set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像 | |
| ## 以下选择添加 | |
| npm set sass_binary_site https://npm.taobao.org/mirrors/node-sass # node-sass 二进制包镜像 | |
| npm set electron_mirror https://npm.taobao.org/mirrors/electron/ # electron 二进制包镜像 | |
| npm set ELECTRON_MIRROR https://cdn.npm.taobao.org/dist/electron/ # electron 二进制包镜像 | |
| npm set puppeteer_download_host https://npm.taobao.org/mirrors # puppeteer 二进制包镜像 | |
| npm set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver # chromedriver 二进制包镜像 | |
| npm set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver # operadriver 二进制包镜像 |
| # | |
| # Configuration files for Manjaro i3 on Lenovo Yoga 2 pro | |
| # to scale properly on HiDPI (3200x1800) | |
| # | |
| ##################################################### | |
| ~/.profile # | |
| ##################################################### | |
| # UI element scaling, icons | |
| export GDK_SCALE=2 |
This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).
This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"