This file contains hidden or 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
var myArray = ["one", "two", "three"]; | |
// console.log( myArray ) => ["one", "two", "three"] | |
myArray.length = 0; | |
// console.log( myArray ) => [] |
This file contains hidden or 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
function get_short_link($url) | |
{ | |
$bitly_login="yourloginname"; | |
$bitly_apikey="yourapikey"; | |
$api_call = file_get_contents("http://api.bit.ly/shorten?version=2.0.1&longUrl=".$url."&login=".$bitly_login."&apiKey=".$bitly_apikey); | |
$bitlyinfo=json_decode(utf8_encode($api_call),true); | |
if ($bitlyinfo['errorCode']==0) | |
{ | |
return $bitlyinfo['results'][urldecode($url)]['shortUrl']; | |
} |
This file contains hidden or 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 | |
$mycontent = $post->post_content; // wordpress users only | |
$word = str_word_count(strip_tags($mycontent)); | |
$m = floor($word / 200); | |
$s = floor($word % 200 / (200 / 60)); | |
$est = $m . ' minute' . ($m == 1 ? '' : 's') . ', ' . $s . ' second' . ($s == 1 ? '' : 's'); | |
?> | |
<p>Estimated reading time: <?php echo $est; ?></p> |
This file contains hidden or 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 _e( '© ' . date('Y') . ' ' ); bloginfo( 'name' ); ?> |
This file contains hidden or 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 | |
/** | |
* Place this file in root of wordpress site to enable | |
* maintenance mode for users who are not logged in. | |
* Also, allows access to /wp-admin during maintenance | |
* | |
* Filename: .maintenance | |
*/ | |
function is_user_logged_in() { | |
$loggedin = false; |
This file contains hidden or 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
<tr> | |
<TD ALIGN="left" VALIGN="top"> | |
<IMG SRC="../images/new13.gif" WIDTH="20" HEIGHT="15" BORDER="0" ALT=""> | |
</TD> | |
<!-- <TD ALIGN="left" VALIGN="top" > | |
<IMG SRC="../images/robbikopf2.jpg" WIDTH="20" HEIGHT="17" BORDER="0" ALT=""> | |
</TD> | |
--> | |
<TD ALIGN="left" VALIGN="top"> | |
STANDORT |