Skip to content

Instantly share code, notes, and snippets.

🚧
Working Hard

Vadim Makeev pepelsbey

🚧
Working Hard
Block or report user

Report or block pepelsbey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pepelsbey
pepelsbey / dabblet.css
Created Jan 25, 2012
Custom text-decoration color
View dabblet.css
BODY {
font-family:Arial, sans-serif;
}
DEL {
position:relative;
text-decoration:none;
}
DEL:after {
position:absolute;
top:50%;
View dabblet.css
BODY {
background:#777;
}
DIV, IMG {
float:left;
margin:20px;
}
DIV {
width:200px;
height:400px;
View dabblet.css
BODY {
text-align:center;
font:20px sans-serif;
}
DIV, SPAN {
position:absolute;
}
View dabblet.css
HTML, BODY {
margin:0;
padding:0;
height:100%;
font:16px sans-serif;
}
BODY {
display:inline-table;
width:100%;
height:100%;
View dabblet.css
BODY { background: #dda1ee }
View svground.js
#!/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 = '';
View dabblet.css
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;
View dabblet.css
BODY {
margin:0;
padding:0;
}
DIV {
height:50px;
background:#888;
}
@pepelsbey
pepelsbey / panel.js
Created Mar 8, 2012
DOM manipulation
View panel.js
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 Mar 8, 2012
DOM manipulation with Microjungle.js
View panel.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 = [],
You can’t perform that action at this time.