I hereby claim:
- I am lukasbestle on github.
- I am lukasbestle (https://keybase.io/lukasbestle) on keybase.
- I have a public key whose fingerprint is 3A6F 39F5 BB6A A8D7 EF8D 0DC7 2B97 B9B6 1C7E A7B7
To claim this, I am signing this object:
<?php | |
// Please note: Use http://getkirby.com/docs/cheatsheet/helpers/kirbytag for tags that don't require access to the files of the page | |
$field = new Field($page, null, '(image: example.jpg)'); | |
echo $field->kirbytext(); |
<?php | |
/** | |
* Fork of the native $pages->search() method | |
* Only searches for full matches | |
*/ | |
function search($collection, $query, $params = array()) { | |
if(is_string($params)) { | |
$params = array('fields' => str::split($params, '|')); |
<?php | |
for($i = 1; $i <= 100; $i++) { | |
$found = false; | |
// Divisible by 3 | |
if($i % 3 == 0) { | |
echo 'Fizz'; | |
$found = true; | |
} |
I hereby claim:
To claim this, I am signing this object:
<?php | |
class kirbytextExtended extends kirbytext { | |
function __construct($text, $markdown=true) { | |
parent::__construct($text, $markdown); | |
$this->addTags('video'); | |
// define custom attributes | |
$this->addAttributes('poster'); |
#!/usr/bin/env bash | |
# Updates every Git repository in direct subdirectories of the script directory | |
# Usage: ./update | |
# Copyright: Lukas Bestle <[email protected]>, 2014 | |
# Check if git is installed | |
hash git &> /dev/null || { | |
echo -e "\033[31mYou don't have git installed.\033[0m" | |
exit 1 |
# Get the default theme and switch to the folder | |
git clone https://github.com/getkirby-themes/default kirbyproject | |
cd kirbyproject | |
# Re-create the Git repo (this is a new site) | |
rm -Rf .git | |
git init | |
# Get the Kirby core as submodule | |
rmdir kirby |
/** | |
* Vanilla JS smooth scrolling | |
* | |
* @version 0.1b1 | |
* @author Lukas Bestle <[email protected]> | |
* @copyright Lukas Bestle | |
* @license http://www.opensource.org/licenses/mit-license.php MIT License | |
*/ | |
// Configuration |
// Check iOS Version and change the META | |
window.onload = function() { | |
var iOSVersion; | |
if (/iP(hone|od|ad)/.test(navigator.platform)) { | |
// supports iOS 2.0 and later | |
var v = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/); | |
iOSVersion = [parseInt(v[1], 10), parseInt(v[2], 10), parseInt(v[3] || 0, 10)]; | |
iOSVersion = parseInt(iOSVersion[0]); | |
} |
curl https://gist.githubusercontent.com/lukasbestle/5477654/raw/9dd750f33d4dbb917308b998b3775f1c7125c76a/spendenbytrag.sh | bash |