Stash 2.3.4 (beta) or later
/layouts/
standard.html
/partials/
listing.html
<snippet> | |
<content><![CDATA[ | |
/** | |
* Get $1 | |
* | |
* @return ${2:[type]} \$$1 | |
*/ | |
public function get${1/(.*)/\u$1/}() | |
{ | |
return \$this->${1:$SELECTION}; |
Country | CountryCode | Currency | Code | |
---|---|---|---|---|
New Zealand | NZ | New Zealand Dollars | NZD | |
Cook Islands | CK | New Zealand Dollars | NZD | |
Niue | NU | New Zealand Dollars | NZD | |
Pitcairn | PN | New Zealand Dollars | NZD | |
Tokelau | TK | New Zealand Dollars | NZD | |
Australian | AU | Australian Dollars | AUD | |
Christmas Island | CX | Australian Dollars | AUD | |
Cocos (Keeling) Islands | CC | Australian Dollars | AUD | |
Heard and Mc Donald Islands | HM | Australian Dollars | AUD |
<?php | |
namespace Ormigo\Bundle\OrmigoBundle\Form\Model; | |
use DateTime; | |
class DateRange | |
{ | |
/** | |
* @var DateTime |
Stash 2.3.4 (beta) or later
/layouts/
standard.html
/partials/
listing.html
{!-- Wrapper template --} | |
{embed="wrappers/page_full_width"} | |
{!-- Meta data --} | |
{exp:stash:set name="meta_title"}Our projects{/exp:stash:set} | |
{exp:stash:set name="meta_description"}Projects of the International Polar Foundation{/exp:stash:set} | |
{!-- Navigation --} | |
{exp:stash:set name="nav_current"}projects{/exp:stash:set} |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
require.config({ | |
baseUrl: '/backbone-tests/', | |
paths: { | |
'jquery' : '/app/libs/jquery', | |
'underscore' : '/app/libs/underscore', | |
'backbone' : '/app/libs/backbone', | |
'mocha' : 'libs/mocha', | |
'chai' : 'libs/chai', | |
'chai-jquery' : 'libs/chai-jquery', | |
'models' : '/app/models' |
// Add this to your module tag | |
if($no_results_prefix = $this->EE->TMPL->fetch_param('no_results_prefix')) | |
{ | |
if(preg_match('/\\'.LD.'if '.$no_results_prefix.'no_results\\'.RD.'.*\\'.LD.'\\/if\\'.RD.'/us', $this->EE->TMPL->tagdata, $matches)) | |
{ | |
$this->EE->TMPL->no_results = $this->EE->TMPL->parse_variables_row($matches[0], array( | |
$no_results_prefix.'no_results' => 1 | |
)); | |
} |
from json import load, JSONEncoder | |
from optparse import OptionParser | |
from re import compile | |
float_pat = compile(r'^-?\d+\.\d+(e-?\d+)?$') | |
charfloat_pat = compile(r'^[\[,\,]-?\d+\.\d+(e-?\d+)?$') | |
parser = OptionParser(usage="""%prog [options] | |
Group multiple GeoJSON files into one output file. |
{preload_replace:preload_trick="preload_replace"}
{embed="group/template" preload='{{preload_trick}:pre_url_title="special"}'}
if called via embed you can override the preload_replace once more.
It will insert the embed-variable and parse it early.
{embed:preload}
{if segment_3==""}{preload_replace:pre_url_title="fallback"}{/if}