Skip to content

Instantly share code, notes, and snippets.

View marek-saji's full-sized avatar
:shipit:

Marek ‘saji’ Augustynowicz marek-saji

:shipit:
View GitHub Profile
@marek-saji
marek-saji / dabblet.css
Created June 5, 2012 17:37
New default "down due to maintenance" page.
/**
* New default "down due to maintenance" page.
*/
min-height : 100%;
padding-top : 30%;
font-family : sans;
font-size : 1.5em;
text-align : center;
color : #eee;
@marek-saji
marek-saji / dabblet.css
Created May 30, 2012 22:26
/peɪstbɪn/
/**
* /peɪstbɪn/
*/
body { line-height : 2em; }
#a { font-family : sans; }
#b { font-family : Palatino; }
#c { font-family : Palatino Linotype; }
#d { font-family : Georgia; }
@marek-saji
marek-saji / dabblet.css
Created May 24, 2012 22:22
Hourglass loading animations
/**
* Hourglass loading animations
*/
body
{
background-color : #b4da55; /* \m/ */
font-family : sans;
}
/**
* card swap
*/
.a
{
border : #6f6 solid;
animation : a 10s infinite;
z-index : 1;
@marek-saji
marek-saji / dabblet.css
Created April 21, 2012 21:16
Android 2.x does not animate css with position fixed?
/**
* Android 2.x does not animate css with position fixed?
*/
.a
{
border : #6f6 solid;
}
.b
@marek-saji
marek-saji / dabblet.css
Created April 19, 2012 23:02 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
p
{
margin : 0;
}
section
{
@marek-saji
marek-saji / dabblet.css
Created April 12, 2012 01:17
Responsive example with css-only mobile menu switch
/**
* Responsive example with css-only mobile menu switch
*/
html
{
font-family : sans-serif;
}
<?php
error_reporting(E_ALL | E_STRICT);
$foo = array('hello', ' ', 'world', '.');
$prefix = uniqid('♠');
extract($foo, EXTR_PREFIX_ALL|EXTR_REFS, $prefix);
$prefix .= '_';
for ($i = -1 ; isset(${$prefix . ++$i}) ;)
{
@marek-saji
marek-saji / index.html
Created March 15, 2012 23:03
ania's squirrel boy
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=1024" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>squirrel boy</title>
<meta name="description" content="" />
@marek-saji
marek-saji / 5.4.php
Created March 8, 2012 08:51
new stuff in php 5.4
<?php
/**
* `<?=` jest zawsze dostępny, niezależnie od ustawienia `short_open_tag`
*/
/**
* use newly created object on the fly
*/
$this->addFoo(