Takes a grid and returns an optimal set of rectangles that fills that grid
For example, the following grid:
[[1,1,0,1,1],
[1,1,1,1,1],
[0,1,1,1,0]]
| #!/bin/sh | |
| # uses Google's Closure Compiler - http://code.google.com/p/closure-compiler/ | |
| test -e $1 && java -jar /path/to/compiler.jar --js $1 --js_output_file `basename $1 .js`.min.js |
| .DS_Store | |
| *.csv | |
| javascript:for(var i=0;i<document.links.length;i++){var a=document.links[i];if(a.href.indexOf('mailto:')==0){a.innerHTML=a.href;a.style.backgroundColor='red';a.style.color='white'}};return true; |
| [alias] | |
| st = status | |
| co = checkout | |
| cb = checkout | |
| df = diff --no-prefix && git diff --staged --no-prefix --ignore-space-change | |
| [apply] | |
| whitespace = nowarn | |
| [color] | |
| ui = auto | |
| diff = auto |
| [user] | |
| name = Glenn Pratt | |
| email = glenn@allplayers.com | |
| [color] | |
| grep = auto | |
| diff = auto | |
| status = auto | |
| branch = auto | |
| ui = auto | |
| [color "diff"] |
| # copied from @solidsnack | |
| nethack on | |
| vbell on | |
| defutf8 on | |
| defscrollback 16384 | |
| backtick 1 1 1 date -u +%Y-%m-%dT%TZ | |
| logtstamp on |
| # | |
| # css/js minification/compression makefile | |
| # | |
| # | |
| # JS_TARGETS -- js files to minify/gzip | |
| # CSS_TARGETS -- css files to minify/gzip | |
| # CLEANUP -- additional files to delete during "make clean" | |
| # |
| #!/usr/bin/env node | |
| var http = require('http') | |
| , webapp = require('webapp'); | |
| http.createServer(webapp.bind([])).listen(8000); | |
| // ^^^^^^^^^^^^^^^ | |
| // | (x) | |
| // ROFLSCALE DEQUE ---/ |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Crash IE6 + IE7</title> | |
| <!--[if IE 6]> | |
| <script> |