This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
<html> | |
<head> | |
<title></title> | |
<style type="text/css"> | |
#list{width:500px;height:auto;background-color: #eee;} | |
.ph{width:500px;height:600px;background-color: #cde;margin:2em 0;} | |
</style> | |
</head> | |
<body> | |
<div style="height:100px;background:#cde;">placeholder1</div> |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<div data-ID="3" data-blogId="4" data-comment-id="4" data-cat_id="5"></div> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script> |
/* | |
var iter = 100 * 100; | |
bm('instanceof',iter,function() { | |
f instanceof Function | |
}) | |
bm('typeof',iter,function() { | |
typeof f === 'function' | |
}) | |
*/ |
/** | |
* ❤ dabblet.com CSS3 playground! | |
*/ | |
html{ | |
font-family: Monaco; | |
transform: scale(2,.5) rotate(30deg); | |
background-color: silver; | |
background-size: 58px 58px; | |
background-position: 0px 2px, 4px 35px, 29px 31px, 34px 6px; |
marginLeft = - ( $container.width() / 2 - parseInt($g.css('right')) - $g.innerWidth() ) = -(450 + 200 - 156)
var BinPacker = require('./binpacker') | |
var blocks = [] | |
blocks.push( | |
// 宽的 | |
{w: 300,h: 390}, | |
{w: 300,h: 390}, | |
// 窄的 | |
{w: 150,h: 195}, |
var express = require('express') | |
var app = express.createServer() | |
var port = 3000 | |
app.use( require('./x-futurama') ) | |
app.get('*',function(req,res,next) { | |
res.end() | |
}) |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>unclosed tag and selectors</title> | |
<style type="text/css"> | |
body>div{margin:2em;border:3px dashed gray;height:3em;} | |
</style> |
# mkdir | |
md output | |
# get-content , set-content -encoding | |
# 括号是必须的 | |
ls *.txt | %{ gc $_ | sc -en utf8 ('output/'+$_.name) } |