Skip to content

Instantly share code, notes, and snippets.

View koppen's full-sized avatar

Jakob Skjerning koppen

View GitHub Profile
@koppen
koppen / gist:6239099
Last active December 21, 2015 02:59
Columnizer
require 'minitest/autorun'
require 'minitest/pride'
class Columnizer
def initialize(elements)
@elements = elements
end
def columns(number_of_columns)
columns = create_columns(number_of_columns)
@koppen
koppen / gist:1704921
Created January 30, 2012 15:16
Placing a div with unknown height first in code, bottom of design
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
.wrapper {
background: yellow;
margin-left: auto;
margin-right: auto;
position: relative;
width: 50%;