#once { _color: blue }
#doce { *color: blue; /* or #color: blue */ }
Q.Sprite.extend("Square",{ | |
init: function(p) { | |
this._super(p,{ | |
// ... | |
}); | |
this.add('box'); | |
this.on('boundaries'); | |
}, | |
boundaries: function(side) { |
defaults write com.apple.finder AppleShowAllFiles TRUE | |
killall Finder |
The -R flag drills recursively into sub folders.
The -F flag writes a trailing slash '/' after folders, and a trailing asterisk '*' after executable files.
<!-- | |
This file is the Canvas URL | |
It's generated automatically | |
--> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Title</title> | |
<meta property="fb:app_id" content="474221426024929" /> | |
<meta property="og:type" content="article" /> | |
<meta property="og:title" content="Title"/> |
<?php | |
// https://github.com/GerHobbelt/nicejson-php/blob/master/nicejson.php | |
// original code: http://www.daveperrett.com/articles/2008/03/11/format-json-with-php/ | |
// adapted to allow native functionality in php version >= 5.4.0 | |
/** | |
* Format a flat JSON string to make it more human-readable | |
* |
#banner { | |
border: 1px solid #666; | |
display: block; | |
width: 100%; | |
height: 1em; | |
font-size: 1em; | |
line-height: 1em; | |
margin: 20px auto; | |
padding: 0px; | |
text-align: justify; |
$('.first').lines({ | |
replace: function(lines) { | |
var lastLine = lines[lines.length-1]; | |
var center = $(this).width()/2 - lastLine.width/2; | |
lines[lines.length-1].text = '<span style="position:relative;margin-left:'+center+'px">'+lastLine.text+'</span>'; | |
return lines; | |
} | |
}); |