I commonly need to get a big list of all the stuff people think of when they think new and shiny these days. This list is for that.
I take a very inclusionist approach to it. 1
- Web Storage (localStorage, sessionStorage)
- Web SQL Database
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule (.*) index.php/$1 | |
</IfModule> |
I commonly need to get a big list of all the stuff people think of when they think new and shiny these days. This list is for that.
I take a very inclusionist approach to it. 1
// remember to replace all occurences of: | |
// boilerplate | |
// with your plugin namespace | |
(function ($) { | |
var settings = { | |
'setting': 'value' | |
}; |
/* CSS map pins */ | |
body { | |
text-align: center; | |
margin: 80px; | |
background: #eee; | |
} | |
.pin.a { | |
display: inline-block; |
<!-- Load either Zepto or jQuery, as necessary, from a CDN with a local fallback --> | |
<script> | |
document.write('<script src="//cdnjs.cloudflare.com/ajax/libs/' + | |
('__proto__' in {} ? | |
'zepto/1.0/zepto.min' : | |
'jquery/1.10.2/jquery.min') | |
+ '.js"><\/script>') | |
</script> | |
<script> | |
window.$ || document.write('<script src="js/vendor/' + |
body { | |
padding: 0; | |
margin: 0; | |
overflow: hidden; | |
background-color: #000; | |
color: #fff; | |
font-size: 12px; | |
} | |
canvas { | |
padding: 0; |
#desc{ | |
font-size:80%; | |
font-family:tahoma; | |
color:#222; | |
width:250px; | |
float:left; | |
position:absolute; | |
margin:5px; | |
background-color:rgba(255, 255, 255, 0.5); | |
} |
<?php | |
class Person { | |
private $alive = true; | |
protected $gender = ''; | |
protected $genitalOrgan = ''; } | |
class Man extends Person { | |
public function __construct(){ | |
$this->gender = 'male'; |
var Module = (function(){ | |
//variabili e funzioni private | |
var foo; | |
var setFoo = function(val){ foo = val; }; | |
var getFoo = function(){ return foo; }; | |
var increment = function(){ | |
if(!foo){ | |
setFoo(0); |