Skip to content

Instantly share code, notes, and snippets.

View jankorbel's full-sized avatar

Jan Korbel jankorbel

View GitHub Profile
[@ fakturoid#master]→ bin/rake db:reset
-- enable_extension("plpgsql")
-> 0.1679s
-- enable_extension("hstore")
-> 0.0881s
-- create_table("accounts", {:force=>true})
-> 0.0725s
-- add_index("accounts", ["subdomain"], {:name=>"index_accounts_on_subdomain", :unique=>true, :using=>:btree})
-> 0.0231s
-- create_table("broadcasts", {:force=>true})
@jankorbel
jankorbel / uri.js
Created September 6, 2012 07:14 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@jankorbel
jankorbel / dabblet.css
Created June 2, 2012 19:23 — forked from LeaVerou/dabblet.css
Move in a circle without wrapper elements
/**
* Move in a circle without wrapper elements
* Idea by Aryeh Gregor, simplified by Lea Verou
*/
@keyframes rot {
from {
transform: rotate(0deg)
translate(-150px)
rotate(0deg);
@jankorbel
jankorbel / dabblet.css
Created April 12, 2012 07:26
3D Heading Via CSS
/*
3D Heading Via CSS
*/
body
{
background: #5F616C;
}
h1
{
@jankorbel
jankorbel / dabblet.css
Created April 8, 2012 11:39
3D Heading Via CSS
/*
3D Heading Via CSS
*/
body
{
background: #5F616C;
}
h1
{
@jankorbel
jankorbel / dabblet.css
Created April 8, 2012 10:39
CSS animated loading dots
/*
CSS animated loading dots
*/
body
{
background: #5A5C64;
}
.loading_dots