Skip to content

Instantly share code, notes, and snippets.

View xiaody's full-sized avatar
🍼
I may be slow to respond.

xiaody xiaody

🍼
I may be slow to respond.
View GitHub Profile
@xiaody
xiaody / dabblet.css
Created October 12, 2012 04:27
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
section {
background:yellow;
}
#p1 {
background:blue;
width:50%;
@xiaody
xiaody / dabblet.css
Created October 12, 2012 14:30
MeiTuan.com
/**
* MeiTuan.com
*/
body{background:#555}
#left {
float:left;
width:100px;
margin:0 20px 10px 10px;
background:#ccc;
}
@xiaody
xiaody / dabblet.css
Created October 13, 2012 04:25
clear the float
/**
* clear the float
*/
#main_container {
width: 400px;
margin: 20px auto;
border: 2px solid #cccccc;
padding: 5px;
/*overflow:hidden;*/
@xiaody
xiaody / dabblet.css
Created October 17, 2012 04:42
border see through
/**
* border see through
*/
div {
width:275px;
height:250px;
border:20px dashed rgba(0,0,0,.5);
background:red;
}
@xiaody
xiaody / dabblet.css
Created October 20, 2012 11:35
css id selector rules can work on multiple elements
/**
* css id selector rules can work on multiple elements
*/
#d1 {
width:300px;
height:100px;
background:red;
margin:10px;
color:yellow;
@xiaody
xiaody / dabblet.css
Created November 24, 2012 10:25
css id selector rules can work on multiple elements
/**
* css id selector rules can work on multiple elements
*/
#d1 {
position: absolute;
background:red;
margin:10px;
color:yellow;
border:15px dashed;
@xiaody
xiaody / dabblet.css
Created February 25, 2013 11:21
z-index test
/**
* z-index test
*/
.box {
border: 2px solid black;
width: 200px;
height: 200px;
}
#box1 {
/**
* http://kellegous.com/j/2013/02/27/innertext-vs-textcontent/
*/
#!/usr/bin/env python
#
# Script to convert png files to RGBA color space
# Requires Pillow (pip install Pillow)
#
import os
import fnmatch
from PIL import Image
for root, dirnames, filenames in os.walk('sprites'):
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="this" />
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<a id=asdf>shishi</a>
</body>