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
| <html> | |
| <head> | |
| <title>Redirect</title> | |
| <META http-equiv="refresh" content="0;URL=http://www.google.com"> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |
| function solution(roman){ | |
| let RomanNum = { | |
| 10: { 1: 'I', 5: 'V'}, | |
| 100: { 1: 'X', 5: 'L'}, | |
| 1000: { 1: 'C', 5: 'D'}, | |
| 10000: { 1: 'M'} | |
| }; | |
| let result = ''; | |
| for (let d in RomanNum) { | |
| let tmp = ''; |
#For OS X 10.8, 10.9, 10.10
To set an environment variable:
launchctl setenv variable "value"
To view an environment variable:
launchctl getenv variable
| ALTER SCHEMA TargetSchema | |
| TRANSFER SourceSchema.TableName; |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>羅志祥 Dislike Counter</title> | |
| <meta content='zh_HK' property='og:locale'/> | |
| <meta content='https://s3-ap-southeast-1.amazonaws.com/d74689/DislikeShowLo.html' property='og:url'/> | |
| <meta content='羅志祥 Dislike Counter' property='og:title'/> | |
| <meta content='website' property='og:type'/> | |
| <meta content='http://1.bp.blogspot.com/-hSrFzRVJ_XM/Vpx9EDkL9hI/AAAAAAAAh40/OPC3TaUKz24/s1600/plastic.png' property='og:image'/> |
| function getMobileOperatingSystem() { | |
| var userAgent = navigator.userAgent || navigator.vendor || window.opera; | |
| if( userAgent.match( /iPad/i ) || userAgent.match( /iPhone/i ) || userAgent.match( /iPod/i ) ) | |
| { | |
| return 'iOS'; | |
| } | |
| else if( userAgent.match( /Android/i ) ) | |
| { | |
| return 'Android'; | |
| } |
| git rm -r --cached . | |
| git add . | |
| git commit -m ".gitignore is now working" |
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> | |
| </head> | |
| <body style="margin:0px;padding:0px;overflow:hidden"> | |
| <iframe src="__URL_HERE__" frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:100%;width:100%;position:absolute;top:0px;left:0px;right:0px;bottom:0px" height="100%" width="100%"></iframe> | |
| </body> | |
| </html> |
| String.prototype.format = function() { | |
| var str = this; | |
| for (var i = 0; i <= arguments.length - 1; i++) { | |
| var reg = new RegExp("\\{" + i + "\\}", "gm"); | |
| str = str.replace(reg, arguments[i]); | |
| } | |
| return str; | |
| }; |