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
// Spamsichere E-Mail-Links (http://www.peterkroener.de/wiki/javascript/mootools/spamsichere_e-mail-links) | |
(function() { | |
var links = $$('span.mail'); | |
links.each(function(el) { | |
var mail = el.get('text').split('[AT]').join('@').split('[PUNKT]').join('.').split('[MINUS]').join('-').replace(/\s/g, ''); | |
el.set('html', '<a href="mailto:'+ mail +'">'+ mail +'</a>'); | |
}); | |
})(); |
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 | |
if(!isset($url)) return ''; | |
$name = dechex(rand(0, 12345678)); | |
return <<< EOT | |
<div id=swfcontainer{$name}></div> | |
<script> | |
// requires MooTools |
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 | |
// Parameter: &directory | |
if(!function_exists('outputDir')) { | |
function outputDir($dir) { | |
if(substr($dir, -1) != '/') { | |
$dir .= '/'; | |
} | |
if(!is_dir($dir)) { | |
return $dir.' ist kein Verzeichnis!'; |
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 | |
# Snippet to include files from filesystem | |
# [[includeFile? &file=`assets/templates/mytemplate/file.html`]] | |
if ( !isset($file) || $file== "" ) return "No file specified."; //check if there's a file given. | |
//Start the buffer | |
ob_start(); | |
//include |
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 | |
if(isset($text)) { | |
include_once 'assets/snippets/markdown.php'; | |
return Markdown($text); | |
} | |
?> |
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 | |
include 'assets/snippets/bosssearch.php'; | |
return bossSearch(); | |
?> |
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
PATH = ".vim/bundle" | |
def github_url(user, repo) | |
"http://github.com/#{user}/#{repo}.git" | |
end | |
def sh(cmd) | |
print cmd | |
system cmd | |
end |
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
var spawn = require('child_process').spawn; | |
var EventEmitter = require('events').EventEmitter; | |
/////////// | |
// Sound // | |
/////////// | |
function Sound(str, lang, amplitude, speed) { | |
EventEmitter.apply(this); | |
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
/* You may want to style this to your personal need */ | |
.achievement.status { | |
display: none; | |
position: absolute; | |
left: 50%; | |
bottom: -120px; | |
margin-left: -160px; | |
} |
OlderNewer