Skip to content

Instantly share code, notes, and snippets.

View pepelsbey's full-sized avatar
🚧
Working Hard

Vadim Makeev pepelsbey

🚧
Working Hard
View GitHub Profile
@pepelsbey
pepelsbey / dabblet.css
Created January 25, 2012 15:03
Custom text-decoration color
BODY {
font-family:Arial, sans-serif;
}
DEL {
position:relative;
text-decoration:none;
}
DEL:after {
position:absolute;
top:50%;
@pepelsbey
pepelsbey / dabblet.css
Created February 1, 2012 11:18
Scaling
BODY {
background:#777;
}
DIV, IMG {
float:left;
margin:20px;
}
DIV {
width:200px;
height:400px;
@pepelsbey
pepelsbey / dabblet.css
Created February 1, 2012 14:51
Aligning
BODY {
text-align:center;
font:20px sans-serif;
}
DIV, SPAN {
position:absolute;
}
@pepelsbey
pepelsbey / dabblet.css
Created February 9, 2012 08:26
Untitled
HTML, BODY {
margin:0;
padding:0;
height:100%;
font:16px sans-serif;
}
BODY {
display:inline-table;
width:100%;
height:100%;
@pepelsbey
pepelsbey / dabblet.css
Created February 15, 2012 09:31
Untitled
BODY { background: #dda1ee }
@pepelsbey
pepelsbey / svground.js
Created February 23, 2012 00:38
SVG Round
#!/usr/bin/env node
var fs = require('fs'), params = process.argv.slice(2);
fs.readFile(params[0], 'utf8', function(error, data) {
var input = data,
quality = params[1],
current = output = '';
@pepelsbey
pepelsbey / dabblet.css
Created February 27, 2012 15:05
Untitled
BODY {
background:url(data:image/gif;base64,R0lGODdhFAAUAPAAAAF1p////yH/C1hNUCBEYXRhWE1QAz94cAAsAAAAABQAFABAAiWEj6HL6MCijK/WiandJgfueWA2Ylw5oZKqWeIWkrDs0pf9vFYBADs=);
}
BODY:after {
position:absolute;
top:50%;
left:50%;
margin:-100px 0 0 -100px;
width:200px;
height:200px;
@pepelsbey
pepelsbey / dabblet.css
Created February 28, 2012 18:12
Untitled
BODY {
margin:0;
padding:0;
}
DIV {
height:50px;
background:#888;
}
@pepelsbey
pepelsbey / panel.js
Created March 8, 2012 08:13
DOM manipulation
function appendPanel(options) {
var body = document.body,
panel = createElement('.sd-panel'),
desc = createElement('.sd-description'),
title = createElement('.sd-title'),
titlePara = createElement('p'),
titleLink = createElement('a'),
titleHead = createElement('h1'),
legend = createElement('p.sd-legend'),
@pepelsbey
pepelsbey / panel.js
Created March 8, 2012 13:31
DOM manipulation with Microjungle.js
var microjungle=function(e){function f(h,b){for(var e=h.length,g=0;g<e;g++){var a=h[g];if(a)if(typeof a=='string')b.innerHTML+=a;else if(typeof a[0]=='string'){var j=i.createElement(a.shift()),c={}.toString.call(a[0])==='[object Object]'&&a.shift(),d;if(c)for(d in c)c[d]&&j.setAttribute(d,c[d]);b.appendChild(f(a,j))}else a.nodeType===11?b.appendChild(a):f(a,b)}return b}var i=document;return f(e,i.createDocumentFragment())};
function appendPanel(options) {
var body = document.body,
panel = document.createElement('div'),
button = document.createElement('button'),
yepList = [], nopeList = [],
maybeFeatures = options.features,
nopeFeatures = [], yepFeatures = [],