A simple proof-of-concept: a slideshow animation using CSS3 only
See the demo by Fabrizio Calderan.
<?php | |
function roundNum($n) { return round(10 * $n)/10; } | |
// Insert your keys/tokens | |
$consumerKey = '<your-key>'; | |
$consumerSecret = '<your-key>'; | |
$oAuthToken = '<your-key>'; | |
$oAuthSecret = '<your-key>'; |
#!/bin/sh | |
CMD="$1" | |
RATE="$2" | |
DELAY="$3" | |
if [ "$RATE" = "" ] ; then | |
RATE=500 | |
fi | |
if [ "$DELAY" = "" ] ; then |
#!/bin/sh | |
# set last 2 digits of the current year | |
year=16 | |
# set terminal title | |
echo "\033]0;FTF Early Bird Checker\007"; | |
A simple proof-of-concept: a slideshow animation using CSS3 only
See the demo by Fabrizio Calderan.
@mixin box-sizing ($box) { | |
-webkit-box-sizing: $box; | |
-moz-box-sizing: $box; | |
box-sizing: $box; | |
} | |
@mixin border-radius ($val) { | |
-webkit-border-radius: $val; | |
-moz-border-radius: $val; | |
border-radius: $val; |
@media only screen and (min-width: 320px) { | |
/* Small screen, non-retina */ | |
} | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px), |
<ul class="ibw"> | |
<li>inline block</li> | |
<li>inline block</li> | |
<li>inline block</li> | |
</ul> | |
<section class="ibw"> | |
<article class="ib">...</article> | |
<aside class="ib">...</aside> | |
</section> |
/** | |
* For a current project I need to wait to execute a code until some images have been loaded. | |
* Beside, I also need to execute a callback (in my specific code I want to show the image | |
* with a fade-in effect) every time a single image has been loaded. | |
* | |
* So basically I used two deferred objects: the nested one which is resolved for a single | |
* image successfull load event (or when image has been discarded) and the outside one, | |
* which is resolved when all deferred objects on single images have been resolved or rejected. | |
* | |
* This snippet also takes care all frequent issues when trying to load an image (excessive |
# Description: | |
# Typical Jamiroquai video explained by a context-free grammar (just for fun) | |
JV ::= <epsilon> | <Someone> <Does> <Something> in a <Place> | <Exceptions> ; | |
Someone ::= He | the invisible man ; | |
SomeoneElse ::= Him | another invisible man ; | |
Does ::= (runs away with | follows | drives) a ; | |
Something ::= (porsche | ferrari | moto | helicopter) followed by <SomeoneElse> <Consequence> ; | |
Consequence ::= wasting fuel | polluting environment | making roads insecure ; | |
Place ::= dull desertic land | desert | bright floor; |
<div>1</div> | |
<div>2</div> | |
<div>3</div> | |
<div>4</div> | |
<div>5</div> |