Skip to content

Instantly share code, notes, and snippets.

View lastguest's full-sized avatar
❄️
I may be slow to respond.

Stefano Azzolini lastguest

❄️
I may be slow to respond.
View GitHub Profile
@lastguest
lastguest / gist:2029977
Created March 13, 2012 17:14
Open Graph
<?php
/**
* ...
*/
class OpenGraphNode extends OpenGraph
{
public $id;
public $object;
@lastguest
lastguest / dabblet.css
Created April 24, 2012 12:04
Plastic CSS button
/* Plastic CSS button */
body {
background-color: #cececa;
}
.button>span {
display: inline-block;
width: auto;
padding: 0.5em;
@lastguest
lastguest / dabblet.css
Created April 24, 2012 12:07
Plastic CSS button
/* Plastic CSS button */
body {
background-color: #cececa;
text-align: center;
font-size: 1.5em;
padding-top:120px;
}
.button>span {
@lastguest
lastguest / dabblet.css
Created April 24, 2012 12:48
Plastic CSS button
/* Plastic CSS button */
body {
background-color: #cececa;
text-align: center;
font-size: 1.5em;
padding-top:120px;
}
.button>span {
@lastguest
lastguest / dabblet.css
Created April 24, 2012 12:48
Plastic CSS button
/* Plastic CSS button */
body {
background-color: #cececa;
text-align: center;
font-size: 1.5em;
padding-top:120px;
}
.button>span {
@lastguest
lastguest / dabblet.css
Created April 24, 2012 13:37
Facebook Tab Test
/* Facebook Tab Test */
body{
background: #fff;
min-height: 100%;
padding: 0;
margin: 0;
}
#content {
width: 790px;
@lastguest
lastguest / php_memoize.php
Created May 2, 2012 14:40
PHP Memoization
<?php
function memoize(&$callback){
return $callback = function() use ($callback,$cache){
static $cache = array();
$args = func_get_args();
$hash_key = implode(',',$args);
return isset($cache[$hash_key])?$cache[$hash_key]:$cache[$hash_key]=call_user_func_array($callback, $args);
};
}
@lastguest
lastguest / dabblet.css
Created May 11, 2012 13:27
Facebook Tab Test
@import url(http://fonts.googleapis.com/css?family=Open+Sans:800);
/* Facebook Tab Test */
body{
background: #fff;
min-height: 100%;
padding: 0;
margin: 0;
font-family: 'Open Sans', sans-serif;
}
@lastguest
lastguest / dabblet.css
Created May 11, 2012 14:05
Caffeina - Social Buttons v1
/* Caffeina - Social Buttons v1 */
body{
background: linear-gradient(45deg, #f06, yellow);
height: 500px;
padding: 30px;
}
ul.caffeina-social {
padding:0;list-style:none;
@lastguest
lastguest / dabblet.css
Created May 14, 2012 09:38
Caffeina - Social Buttons v1
/* Caffeina - Social Buttons v1 */
body{
background: linear-gradient(45deg, #f06, yellow);
height: 500px;
padding: 30px;
}
ul.caffeina-social {
padding:0;list-style:none;