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
| worker_processes 4; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| default_type application/octet-stream; | |
| log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
| '$status $body_bytes_sent "$http_referer" ' |
| using ServiceStack.Common; | |
| using ServiceStack.OrmLite; | |
| using ServiceStack.ServiceInterface; | |
| using ServiceStack.ServiceInterface.Auth; | |
| using ServiceStack.WebHost.Endpoints; | |
| using System; | |
| using System.Data; | |
| using System.Globalization; | |
| using System.Security.Cryptography; | |
| using System.Text; |
| using ServiceStack.WebHost.Endpoints; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Security; | |
| using ServiceStack.Common.Web; | |
| using ServiceStack.Logging; | |
| using ServiceStack.ServiceHost; | |
| using ServiceStack.ServiceInterface; |
Make sure everything is up to date.
| #!/bin/bash | |
| # install homebrew's official php tap | |
| brew tap josegonzalez/homebrew-php | |
| # install homebrew-dupes (required to install zlib, php54's dependency) | |
| brew tap homebrew/dupes | |
| # install nginx + mysql + php 5.4 + php-fpm + apc + xdebug | |
| brew install nginx mysql |
| /** | |
| * TaskRepository class deals with task persistence | |
| */ | |
| function TaskRepository() { | |
| this.tasks = []; | |
| this.nextId = 1; | |
| } | |
| /** | |
| * Find a task by id | |
| * Param: id of the task to find |
| /** | |
| * TaskRepository class deals with task persistence | |
| */ | |
| function TaskRepository() { | |
| this.tasks = []; | |
| this.nextId = 1; | |
| } | |
| /** | |
| * Find a task by id | |
| * Param: id of the task to find |