This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$urls = array( | |
'/http:\/\/www.youtube.com\/watch\?v=([a-zA-Z0-9_-]+)([%&=#a-zA-Z0-9_-])*/', | |
'/http:\/\/www.youtube.com\/watch#\!v=([a-zA-Z0-9_-]+)([%&=#a-zA-Z0-9_-])*/', | |
'/http:\/\/youtu.be\/([a-zA-Z0-9_-]+)/', | |
); | |
$youtube_video_id = preg_replace($urls, '$1', $videoUrl); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//http://jwage.com/2010/08/02/doctrine-annotations-library/ | |
//http://www.doctrine-project.org/projects/common/2.0/docs/reference/annotations/en | |
namespace Orient; | |
require_once 'lib/Doctrine/Common/ClassLoader.php'; | |
use Doctrine\Common\ClassLoader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "schema": { | |
"id": 16, | |
"name": "GraphMotocycle", | |
"properties":{ | |
"inEdges":{ | |
"id": 1, | |
"name": "inEdges", | |
"type": "LINKSET", | |
"mandatory": false, | |
"notNull": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tabBarController = [[UITabBarController alloc] init]; | |
[tabBarController setDelegate:self]; | |
//home | |
IndigeniWebViewController *home = [[IndigeniWebViewController alloc] initWithNibName:@"IndigeniWebViewController" | |
bundle:nil | |
withUrl:[NSString stringWithFormat:@"%@/home%@",urlIdg,coordinate]]; | |
idcontroller = home; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function configure() | |
{ | |
parent::configure(); | |
//visualizzare i campi internazionalizzati | |
$this->i18nize(); | |
//si occupa di integrare nel form la spunta di pubblicazione |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" id="NextGEN-css" href="http://www.tuosito.com/wp-content/plugins/nextgen-gallery/css/nggallery.css?ver=1.0.0" type="text/css" media="screen" /> | |
<link rel="stylesheet" id="shutter-css" href="http://www.tuosito.com/wp-content/plugins/nextgen-gallery/shutter/shutter-reloaded.css?ver=1.3.0" type="text/css" media="screen" /> | |
<script type="text/javascript"> | |
/* <![CDATA[ */ var shutterSettings = { msgLoading: "L O A D I N G", msgClose: "Click to Close", imageCount: "1" }; /* ]]> */ </script> | |
<script type="text/javascript" src="http://www.tuosito.com/wp-content/plugins/nextgen-gallery/shutter/shutter-reloaded.js?ver=1.3.0"></script> | |
<script type="text/javascript" src="http://www.tuosito.com/wp-includes/js/jquery/jquery.js?ver=1.3.2"></script> | |
<script type="text/javascript"> /* <![CDATA[ */ var ngg_ajax = { path: "http://YourSite.com/wp-content/plugins/nextgen-gallery/", loading: "loading" }; /* ]]> */ </script> | |
<script type="text/javascript" src="http://www.tuosito.com/wp-content/plugins/next |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php -S localhost:8124 | |
<?php | |
$a = array( | |
'logger' => function () {echo 'loggin really serious stuff';} | |
); | |
echo $a['logger']() . "\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$('select[name="country"]').change(changeProvince()); | |
var changeProvince = function(){ | |
var country = this.value; | |
console.log(country); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
*/ | |
class ClassName { | |
public function setAuthor($fun) | |
{ |
OlderNewer