A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$ if your browser aliases it:
~ 108 byte version
| // code updates are now there: | |
| // https://github.com/Bleuje/processing-animations-code/blob/main/code/sierpinskiloop/sierpinskiloop.pde | |
| // Processing code by Etienne JACOB | |
| // motion blur template by beesandbombs | |
| // See the license information at the end of this file. | |
| // View the rendered result at: https://twitter.com/etiennejcb/status/1367173073250758661 | |
| int[][] result; | |
| float t, c; |
| // Include gulp | |
| var gulp = require('gulp'); | |
| // Include Our Plugins | |
| var sass = require('gulp-sass'); | |
| var lr = require('tiny-lr'), | |
| refresh = require('gulp-livereload'), | |
| server = lr(); |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| ' svg.vba released 11.08.2002 | |
| Private Function get_export_scaling_factor() As Single | |
| '' point to pixel conversion factor | |
| get_export_scaling_factor = (4 / 3) | |
| End Function |
捕捉浏览器中的JS运行时错误,主要通过监听window.onerror来实现。但是对于不同的脚本执行方式以及不同的浏览器,能捕获到的信息会有区别。
window.onerror 讲接收3个参数:
msg:错误描述,比如:a is not definedurl:出错脚本所在的urllineNumber:出错脚本的行数本文将对不同浏览器和不同的脚本执行方式进行测试,并总结这些区别。
| <?php | |
| /** | |
| * @copyright 2012 TheHydroImpulse, Daniel Fagnan | |
| * @version 0.1 | |
| * @todo Add an overwite ability. Among other things. | |
| * @note Use this as you wish. Extend it, Mash it. Enjoy it. | |
| */ |