Skip to content

Instantly share code, notes, and snippets.

@Neofyt
Neofyt / dabblet.css
Created January 2, 2014 15:44
Untitled
body {
padding-top: 50px
}
input[type=radio] {
cursor: pointer;
height: 15px;
line-height: 15px;
outline: none;
width: 15px;
/*
Used like this:
var regex = regex_escape([
'foo',
'bar',
'http://example.com/page'
]);
@Neofyt
Neofyt / dabblet.css
Created September 8, 2013 21:46
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
min-height: 100%;
(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"
];
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Drive Google's Streetview Car</title>
<style>
html, body {
height: 100%;
margin: 0;
// 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;
@Neofyt
Neofyt / dabblet.css
Created March 25, 2013 21:57
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background: #fafafa;
}
.question {
width: 300px;
background: #fff;
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>
/**
* Clip image to hexagon
*/
img {
max-width: 200px;
max-height: 200px;
}
@Neofyt
Neofyt / dabblet.css
Created January 12, 2013 21:19
Untitled
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;
}