Skip to content

Instantly share code, notes, and snippets.

View roncioso's full-sized avatar
😴
I may be slow to respond.

Luca roncioso

😴
I may be slow to respond.
  • Amsterdam, The Netherlands
View GitHub Profile
@roncioso
roncioso / jsbin.oxuyop.css
Created November 25, 2013 22:59 — forked from anonymous/jsbin.oxuyop.css
center vertically
html,body{
height: 100%;
text-align: center;
}
.inliner {
height: 100%;
}
.inliner,
@roncioso
roncioso / empty.html
Created October 8, 2011 11:04
FOUJUI - css only :empty
<!DOCTYPE html>
<html>
<head>
<style>
.container {
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
@roncioso
roncioso / 20thingsilearned.js
Created November 18, 2010 22:16
20thingsilearned.com - Nice to study. Original here http://www.20thingsilearned.com/js/twentythings.min.js
/*
Nice to study. Original here http://www.20thingsilearned.com/js/twentythings.min.js
*/
var TT = TT || {};
TT.PAGE_WIDTH = 800;
TT.PAGE_HEIGHT = 500;
TT.PAGE_MIN_WIDTH = 1000;
TT.PAGE_MIN_HEIGHT = 680;
TT.PAGE_MARGIN_LEFT = 32;
* {
outline:1px solid #f00;
}
// 1: how could you rewrite the following to make it shorter?
if (foo) {
bar.doSomething(el);
} else {
bar.doSomethingElse(el);
}
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Multiple jquery</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
var jq142 = $.noConflict(true);
</script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.1.1.pack.js"></script>