Wrapping console.log
(et al.) in your own function to modify logging behavior.
You may want a simple way to:
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="de.mobilej.overlay" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<uses-sdk android:minSdkVersion="14" /> | |
<application android:label="SystemOverlay" > | |
<activity |
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |
curl -Lo concourse https://github.com/concourse/concourse/releases/download/v2.5.0/concourse_darwin_amd64 && chmod +x concourse && mv concourse /usr/local/bin
import React from 'react'; | |
const MIN_SCALE = 0.75; | |
const MAX_SCALE = 2; | |
const SETTLE_RANGE = 0.001; | |
const ADDITIONAL_LIMIT = 0.2; | |
const DOUBLE_TAP_THRESHOLD = 300; | |
const ANIMATION_SPEED = 0.04; | |
const RESET_ANIMATION_SPEED = 0.08; | |
const INITIAL_X = 0; |
A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
Name | Stars | Last Commit | Description |
---|---|---|---|
three.js | ![GitHub |
registry "https://registry.npm.taobao.org" | |
disturl "https://npm.taobao.org/dist" | |
nvm_nodejs_org_mirror "http://npm.taobao.org/mirrors/node" | |
NODEJS_ORG_MIRROR "http://npm.taobao.org/mirrors/node" | |
sass_binary_site "http://npm.taobao.org/mirrors/node-sass" | |
electron_mirror "http://npm.taobao.org/mirrors/electron/" | |
SQLITE3_BINARY_SITE "http://npm.taobao.org/mirrors/sqlite3" | |
profiler_binary_host_mirror "http://npm.taobao.org/mirrors/node-inspector/" | |
node_inspector_cdnurl "https://npm.taobao.org/mirrors/node-inspector" | |
selenium_cdnurl "http://npm.taobao.org/mirrors/selenium" |
let layer = figma.currentPage.selection[0]; | |
let vectorPaths = layer.vectorPaths.map(item => { | |
return {windingRule: 'NONZERO', data: item.data} | |
}) | |
layer.vectorPaths = vectorPaths | |
layer.exportAsync({ | |
format: 'SVG' | |
}).then(uint8Array => { |
/** | |
* 使用方法: | |
* 1. 用 Chrome 打开歌单的 web 页面(可以通过分享拿到链接,链接类似这样:http://music.163.com/playlist?id=xxx&userid=yyy) | |
* 2. 然后右键“检查”(如果有左上角有 device 选项,需要选择 Laptop 开头的,可以在 Edit/编辑 里添加,添加的时候注意 “User Agent string” 里选择 Desktop) | |
* 3. 在 console 里输入下面脚本,即可输出 “歌曲名 - 歌手名” 格式的内容: | |
Springsteen - Eric Church | |
Chattahoochee - Alan Jackson | |
Baby Now That I Found You - Alison Krauss | |
Check Yes or No - George Strait |