Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias binding="same">
<family>Arial</family>
<family>Helvetica</family>
<family>Lucida Grande</family>
<family>Tahoma</family>
<family>Verdana</family>
<family>Ubuntu</family>
// Вот такая можно, что бы не дублировать preventDefault
if(e.type == 'keydown') {
var prevent = true;
switch(e.which) {
case 33 :
current--;
break;
...
default:
@alexeyten
alexeyten / Makefile
Created December 6, 2011 15:19 — forked from kazuhisya/README.md
npm.spec
file=$(shell rpm -q --specfile npm.spec --qf 'npm-%{version}.tgz')
rpm: $(file)
rpmbuild -ba npm.spec \
--define '_sourcedir $(CURDIR)' \
--define '_builddir $(CURDIR)' \
--define '_srcrpmdir $(CURDIR)' \
--define '_rpmdir $(CURDIR)'
mv noarch/* .
rm -rf noarch package
/**
* DD
*/
body {
padding: 3em;
background: white;
color: black;
}
@alexeyten
alexeyten / dabblet.css
Created March 14, 2012 07:39 — forked from pepelsbey/dabblet.css
Untitled
BODY { background: #dda1ee }
@alexeyten
alexeyten / dabblet.css
Created March 14, 2012 07:39
3 to 2 col
/**
* 3 to 2 col
*/
html {
min-width: 800px;
}
.main {
margin: 0 150px 0 200px;
height: 500px;
@alexeyten
alexeyten / dabblet.css
Created March 30, 2012 05:08
Magic button
/**
* Magic button
*/
html {
color: black;
padding: 5em 0 0 20em;
background:
radial-gradient(100% 50%, circle, transparent 20%, rgba(255,255,255,.3) 21%, rgba(255,255,255,.3) 34%, transparent 35%, transparent),
radial-gradient(0% 50%, circle, transparent 20%, rgba(255,255,255,.3) 21%, rgba(255,255,255,.3) 34%, transparent 35%, transparent) 0 -50px;
background-color: slategray;
/**
* Candy
*/
html {
background-color: silver;
background-image: linear-gradient(45deg, gray 25%, transparent 25%, transparent 75%, gray 75%, gray),
linear-gradient(45deg, gray 26%, transparent 26%, transparent 75%, gray 75%, gray);
background-size:20px 20px;
background-position:0 0, 10px 10px;
min-height: 100%;
/**
* Candy 2
*/
html {
background-color: #eee;
background-image: linear-gradient(45deg, silver 25%, transparent 25%, transparent 75%, silver 75%, silver),
linear-gradient(45deg, silver 26%, transparent 26%, transparent 75%, silver 75%, silver);
background-size:20px 20px;
background-position:0 0, 10px 10px;
min-height: 100%;
@alexeyten
alexeyten / dabblet.css
Created May 14, 2012 07:44 — forked from anonymous/dabblet.css
Green button
/**
* Green button
*/
body {
padding-top: 100px;
font: 24px/1.2 'Arial', sans-serif;
}
.button {
position: absolute;