Skip to content

Instantly share code, notes, and snippets.

@midu
midu / .gitconfig
Created April 11, 2011 22:00 — forked from schacon/.gitconfig
[url "https://github.com/"]
insteadOf = "gh:"
@midu
midu / LICENSE.txt
Created June 9, 2011 21:18 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@midu
midu / dabblet.css
Created January 4, 2012 16:40 — forked from kizu/dabblet.css
Centered heading with rules
/* Centered heading with rules */
h1 {
position: relative;
overflow: hidden;
white-space: nowrap;
text-align: center;
text-overflow: ellipsis;
color: #f2c63f;
font: 1.6em/1.1 Georgia;
padding: .2em 0;
@midu
midu / solrconfig.xml
Created January 10, 2012 22:48 — forked from niuage/gee
hehe
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@midu
midu / template.rb
Created September 4, 2013 20:17 — forked from jnicklas/template.rb
require "minitest/autorun"
require "capybara"
class TestNthChild < Minitest::Unit::TestCase
def setup_with_html(html)
app = proc { |env| [200, { "Content-Type" => "text/html" }, [html] ] }
session = Capybara::Session.new(:rack_test, app)
session.visit("/")
return session