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
/** | |
* datetime_iso_to_mysql | |
* | |
* if the iso string comes without timezone information | |
* we gues it's utc and append this to leave no doubt | |
* remeber to set your systems default timezone with | |
* date_default_timezone_set() | |
* | |
* @param string $iso an ISO Formated datetime string | |
* @return array $mysql_date keys are local and utc |
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
/** | |
* personal note | |
* just in case... | |
*/ | |
$( 'hover-me' ).addEvent( 'mouseenter', function() { | |
if ( outTimer ) | |
clearTimeout( outTimer ); | |
inTimer = ( | |
function() { |
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
// js/editor_plugin.js | |
/** | |
* an example tinyMCE Plugin | |
*/ | |
tinymce.create( | |
'tinymce.plugins.myPlugin', | |
{ | |
/** | |
* @param tinymce.Editor editor | |
* @param string url |
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 | |
/* | |
Plugin Name: New_Plugin | |
Description: Empty Plugin to fill with your code | |
Version: 0.0 | |
Author: David Naber <kontakt@dnaber.de> | |
Author URI: http://dnaber.de | |
*/ | |
# @charset utf-8 |
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
$( 'foo' ).addEvent( | |
'mousemove', | |
function( event ) { | |
var pos = this.getPosition( ); | |
var relPos = {}; | |
relPos.x = event.page.x - pos.x; | |
relPos.y = event.page.y - pos.y; | |
console.log( relPos ); | |
} | |
); |
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
~(box(?:-[0-9]+)?\.(?:jpe?g|png))~ |
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
/** | |
* gets the link to the article index | |
* | |
* @global $blog_id | |
* @return string | |
*/ | |
function get_page_for_posts_url() { | |
global $blog_id; | |
$index_id = 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 | |
declare( encoding='UTF-8' ); | |
/** | |
* A template helper to print class-names | |
* to eacht element, matches the equation xn+y | |
* | |
* @author David Naber <kontakt@dnaber.de> | |
*/ | |
class Nth_Child_Class { |
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
@charset "UTF-8"; | |
/** | |
* Technicolor | |
* | |
* A theme for Rainbow.js | |
* | |
* @author David Naber <kontakt@dnaber.de> | |
*/ |
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 Logwriter | |
* | |
* yet another log writer | |
* | |
* @author David Naber <kontakt@dnaber.de> | |
* @charset utf-8 | |
* @version 0.3 | |
* @licence GPLv3 |
OlderNewer