This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| padding-top: 50px | |
| } | |
| input[type=radio] { | |
| cursor: pointer; | |
| height: 15px; | |
| line-height: 15px; | |
| outline: none; | |
| width: 15px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Used like this: | |
| var regex = regex_escape([ | |
| 'foo', | |
| 'bar', | |
| 'http://example.com/page' | |
| ]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| min-height: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| if (!window.console) { | |
| window.console = {}; | |
| } | |
| // union of Chrome, FF, IE, and Safari console methods | |
| var m = [ | |
| "log", "info", "warn", "error", "debug", "trace", "dir", "group", | |
| "groupCollapsed", "groupEnd", "time", "timeEnd", "profile", "profileEnd", | |
| "dirxml", "assert", "count", "markTimeline", "timeStamp", "clear" | |
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Drive Google's Streetview Car</title> | |
| <style> | |
| html, body { | |
| height: 100%; | |
| margin: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Escape regular expression | |
| function regex_escape(thing) { | |
| // Escape the string | |
| function esc(str) { | |
| return str.toString().replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1'); | |
| } | |
| // Used in loop | |
| var arr, i; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| body { | |
| background: #fafafa; | |
| } | |
| .question { | |
| width: 300px; | |
| background: #fff; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/solarized_light");e.getSession().setMode("ace/mode/javascript");</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Clip image to hexagon | |
| */ | |
| img { | |
| max-width: 200px; | |
| max-height: 200px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| font-size: 14px; | |
| margin: 0; | |
| padding: 20px; | |
| color: #656565; | |
| font-family: Ubuntu,sans-serif; | |
| font-weight: 300; | |
| background: #fff url("../img/generated.png") 0 0 repeat; | |
| overflow-y: scroll; | |
| } |
NewerOlder