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
| package com.blazingmammothgames.util; | |
| #if neko | |
| import neko.vm.Thread; | |
| import neko.vm.Mutex; | |
| #elseif cpp | |
| import cpp.vm.Thread; | |
| import cpp.vm.Mutex; | |
| #end |
| package; | |
| import luxe.Mesh; | |
| import haxe.io.StringInput; | |
| import luxe.options.MeshOptions; | |
| import luxe.Vector; | |
| import phoenix.Batcher; | |
| import phoenix.geometry.Geometry; | |
| import PlyParser; | |
| import phoenix.geometry.Vertex; | |
| /** |
| #!/bin/bash | |
| sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
| sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
| javascript | |
| ES6ValidationInspection | |
| JSAccessibilityCheckInspection | |
| JSBitwiseOperatorUsageInspection | |
| JSCheckFunctionSignaturesInspection | |
| JSClosureCompilerSyntaxInspection | |
| JSCommentMatchesSignatureInspection | |
| JSComparisonWithNaNInspection | |
| JSConsecutiveCommasInArrayLiteralInspection |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.graphics.Canvas; | |
| import android.graphics.Rect; | |
| import android.graphics.drawable.Drawable; | |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.util.AttributeSet; | |
| import android.view.View; |
| var React = require('react/addons'); | |
| var ReactIgnore = { | |
| displayName: 'ReactIgnore', | |
| shouldComponentUpdate (){ | |
| return false; | |
| }, | |
| render (){ | |
| return React.Children.only(this.props.children); | |
| } |
| class Tools { | |
| public static macro function extract(value:haxe.macro.Expr.ExprOf<EnumValue>, pattern:haxe.macro.Expr) { | |
| return switch (pattern) { | |
| case macro $a => $b: | |
| macro switch ($value) { | |
| case $a: | |
| $b; | |
| default: | |
| throw "no match"; | |
| } |
| import android.app.Activity; | |
| import android.app.Instrumentation; | |
| import android.app.KeyguardManager; | |
| import android.app.KeyguardManager.KeyguardLock; | |
| import android.content.Context; | |
| import android.content.pm.PackageManager; | |
| import android.os.IBinder; | |
| import android.os.PowerManager; | |
| import android.os.PowerManager.WakeLock; | |
| import android.support.test.InstrumentationRegistry; |