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
| /** | |
| * Bootstrap File Input directive wrapper. | |
| */ | |
| angular.module('bfi', []) | |
| .directive('bfi', function () { | |
| return { | |
| restrict: 'A', | |
| link: function (scope, element, attrs) { | |
| element.bootstrapFileInput(); | |
| } |
| <?php | |
| require_once __DIR__.'/../vendor/autoload.php'; | |
| require_once __DIR__.'/boot.php'; | |
| use Silex\Application; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Synfony\Component\HttpFoundation\Response; | |
| $app = new Application(); |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"