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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" type="text/css" href="style.css"> | |
| </head> | |
| <body> | |
| <div id="graph"> | |
| <h1>Connecting Two Points with a Line in D3.js</h1> | |
| </div> | |
$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
| [HttpPost] | |
| public HttpResponseMessage CreateCustomer(string name, string billingInfo) | |
| { | |
| Result<BillingInfo> billingInfoResult = BillingInfo.Create(billingInfo); | |
| Result<CustomerName> customerNameResult = CustomerName.Create(name); | |
| return Result.Combine(billingInfoResult, customerNameResult) | |
| .OnSuccess(() => _paymentGateway.ChargeCommission(billingInfoResult.Value)) | |
| .OnSuccess(() => new Customer(customerNameResult.Value)) | |
| .OnSuccess( |
| using System; | |
| using System.Threading; | |
| static class Program { | |
| static void Main() { | |
| Console.Write("Performing some task... "); | |
| using (var progress = new ProgressBar()) { | |
| for (int i = 0; i <= 100; i++) { | |
| progress.Report((double) i / 100); |
| public abstract class Error | |
| { | |
| public abstract ErrorType Type { get; } | |
| } | |
| public class SimpleError : Error | |
| { | |
| public override ErrorType Type { get { return ErrorType.Simple; } } | |
| public string Message { get; private set; } | |
| public partial class AuctionUsersController : WebCommon.Controllers.DapperGridController<Domain.AuctionModels.UserDto> | |
| { | |
| public AuctionUsersController(IDbInterface mediatorInjection) | |
| { | |
| base.DbMediator = mediatorInjection; | |
| } | |
| public virtual ActionResult Index() | |
| { | |
| return View(); | |
| } |
| var elevatorSaga = { | |
| init: function(elevators: Elevator[], floors: Floor[]) { | |
| console.log(floors[1]); | |
| function amin(numArray) { | |
| return Math.min.apply(null, numArray); | |
| } | |
| function amax(numArray) { | |
| return Math.max.apply(null, numArray); | |
| } | |
| /** |
import chunk from 'lodash-es/array/chunk';
import zipObject from 'lodash-es/array/zipObject';
console.log(zipObject(chunk(['a', 'b', 'c', 'd'], 2)));$ rollup -f=iife demo.js > output.jsA Pen by Chris Doble on CodePen.