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
[user] | |
name = My Name | |
email = me@gradecam.com | |
[color] | |
branch = auto | |
status = auto | |
diff = auto | |
interactive = auto | |
[github] | |
user = robin |
#!/bin/bash | |
function create_dir { | |
if [ ! -d $1 ]; | |
then | |
mkdir $1 | |
fi | |
} | |
echo "create the src directory..." |
function remove_merged_git_branches { | |
# Following sed uses fact that current branch has a '*' in front of it | |
current_branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') | |
if [ "$current_branch" != "master" ]; then | |
echo "WARNING: You are on branch $current_branch, NOT master." | |
fi | |
echo "Fetching merged branches..." | |
git remote prune origin | |
# Gets remove & local merged branches (but not master, nutmeg, sugar7, current branch, etc.) |
<!doctype html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
svg { width:50px; height:50px; } | |
svg > path, | |
svg > use { |
// Example using multiple colors with SVG Sprites .. see it in an example with: | |
// $ git clone -b svg-inline-experiments --single-branch https://github.com/unicorn-ui/Buttons.git Buttons && cd Buttons && npm install && pushd svg-builder && npm install && grunt && popd && grunt dev | |
@mixin svgColors($fillColor: false, $color: false, $patchCurrentColorForIE: false) { | |
@if $fillColor { | |
fill: $fillColor; | |
} | |
@if $color { |
$svg-container-namespace: '.svg-container'; | |
//Give 'em' 1:1 responsive container by default | |
#{$svg-container-namespace} { | |
display: inline-block; | |
position: relative; | |
height: 0; | |
width: 100%; | |
padding: 0; | |
//Default for 1:1 aspect ratio |
require 'fixjour' | |
require File.expand_path("./spec/spec_helpers/builders.rb") | |
include Fixjour | |
w = Workspace.find( YOUR_WORKSPACE_ID_HERE ) | |
60.times { |n| create_story(workspace: w, title: n) } |
user = User.find(ID_FOUND_IN_USERS_TABLE) | |
200.times { |n| | |
w = Workspace.new(:title => 'Workspace-' + n.to_s, :creator_team => 'buyer') | |
w.creator = user | |
w.save! | |
} |
Chris Gannon rocks at SVG animation. This is just me studying his stuff and a total buffoonery not to be taken seriously! Go look at Chris's original here: http://codepen.io/chrisgannon/pen/wKReBX as this is just a decomposition for me to figure out what the dude's doing cuz "imitation is the sincerest form of flattery" and all dat jazz :-)