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: dna Hands off from content | |
* Description: Don't replace 'Wordpress' with 'WordPress'. Keep ' and " as they are. | |
* Plugin URI: https://gist.github.com/3464269 | |
* Version: 2012.08.25 | |
* Author: David Naber | |
* Author URI: http://dnaber.de/ | |
* License: MIT | |
* License URI: http://www.opensource.org/licenses/mit-license.php |
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
<div id="cse" style="width: 100%;">Loading</div> | |
<script src="http://www.google.de/jsapi" type="text/javascript"></script> | |
<script type="text/javascript"> | |
google.load('search', '1', {language : 'de'}); | |
google.setOnLoadCallback(function() { | |
var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl( | |
'*****************', customSearchOptions); | |
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); | |
customSearchControl.draw('cse'); | |
function parseParamsFromUrl() { |
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 |
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 | |
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
/** | |
* 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
~(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
$( '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
<?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 |