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
mkdir $BRANCH | |
cd $BRANCH | |
git init | |
git remote add -t $BRANCH -f origin $REMOTE_REPO | |
git checkout $BRANCH | |
oppure | |
mkdir newrepo.git | |
cd newrepo.git | |
git init |
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
Date.prototype.format = function(format) { | |
var returnStr = ''; | |
var replace = Date.replaceChars; | |
for (var i = 0; i < format.length; i++) { var curChar = format.charAt(i); if (i - 1 >= 0 && format.charAt(i - 1) == "\\") { | |
returnStr += curChar; | |
} | |
else if (replace[curChar]) { | |
returnStr += replace[curChar].call(this); | |
} else if (curChar != "\\"){ | |
returnStr += curChar; |
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
Date.prototype.format = function(format) { | |
var returnStr = ''; | |
var replace = Date.replaceChars; | |
for (var i = 0; i < format.length; i++) { var curChar = format.charAt(i); if (i - 1 >= 0 && format.charAt(i - 1) == "\\") { | |
returnStr += curChar; | |
} | |
else if (replace[curChar]) { | |
returnStr += replace[curChar].call(this); | |
} else if (curChar != "\\"){ | |
returnStr += curChar; |
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 | |
function csv2array($content, $delim = ';', $encl = '"', $optional = 1) { | |
if ($content[strlen($content)-1]!="\r" && $content[strlen($content)-1]!="\n") | |
$content .= "\r\n"; | |
$reg = '/(('.$encl.')'.($optional?'?(?(2)':'(').'[^'.$encl.']*'.$encl.'|[^'.$delim.'\r\n]*))('.$delim.'|\r\n)/smi'; | |
preg_match_all($reg, $content, $treffer); | |
$linecount = 0; |
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 | |
function wpt_remove_gallery_css( $css ) { | |
return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css ); | |
} | |
add_filter( 'gallery_style', 'wpt_remove_gallery_css' ); | |
?> |
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 | |
/*-----------------------------------------------------------------------------------*/ | |
/* New Contacts Fiels | |
/*-----------------------------------------------------------------------------------*/ | |
function new_contactmethods( $contactmethods ) { | |
$contactmethods['photo'] = 'Photo Link'; | |
$contactmethods['position'] = 'Position'; | |
$contactmethods['twitter'] = 'Twitter'; // Add Twitter |
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 | |
function theme_slug_filter_the_content( $content ) { | |
$custom_content = 'YOUR CONTENT GOES HERE'; | |
$custom_content .= $content; | |
return $custom_content; | |
} | |
add_filter( 'the_content', 'theme_slug_filter_the_content' ); | |
?> |
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
<form method="get" id="searchform" action="http://www.weedowonka.it/" _lpchecked="1"> | |
<input type="text" value="inserisci il testo da cercare.." name="s" id="s" onfocus="clearText(this)" onblur="clearText(this)"> | |
<input type="submit" id="searchsubmit" value="cerca"> | |
</form> |
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
jQuery('document').ready(function(){ | |
jQuery('#twitter_update_list').cycle({ | |
fx: 'scrollHorz', | |
timeout: 5000, | |
prev: '#prev', | |
next: '#next', | |
easing: 'easeInOutBack', | |
cleartypeNoBg: true | |
}); | |
OlderNewer