Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Bastian Allgeier bastianallgeier

Block or report user

Report or block bastianallgeier

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View static.php
<?php
require __DIR__ . '/kirby/bootstrap.php';
$kirby = new Kirby([
'roots' => [
'static' => __DIR__ . '/static'
],
'urls' => [
'index' => '/'
View events.js
panel.plugin('something/cool', {
fields: {
demo: {
created: function () {
this.$events.$on('form.change', this.onFormChange);
this.$events.$on('form.save', this.onFormSave);
this.$events.$on('form.reset', this.onFormReset);
},
destroyed: function () {
this.$events.$off('form.change', this.onFormChange);
View kirbycontent.txt
```kirbycontent
Title: An interesting article
----
Date: 2018-07-09
----
Text:
Really interesting content here...
```
View index.js
panel.plugin("medienbaecker/images", {
fields: {
images: {
props: {
label: String,
buttons: String,
value: String,
images: Array
},
data() {
@bastianallgeier
bastianallgeier / .htaccess
Created Jun 4, 2018 — forked from benjaminfritz/.htaccess
.htaccess mit Kirby Installation auf HostEurope Webhosting Server
View .htaccess
# Kirby .htaccess
# rewrite rules
<IfModule mod_rewrite.c>
# enable awesome urls. i.e.:
# http://yourdomain.com/about-us/team
RewriteEngine on
# make sure to set the RewriteBase correctly
View Microsoft-Github.md

Microsoft seems to have bought Github. Is that a reason to celebrate or despair? I'm not entirely sure yet.

Github has become such an essential place for my work. All my personal repos and our Kirby repos are hosted on Github. We handle all Kirby tickets and the development process for the next version here and I don't know where we would move to, if it stopped to exist or stopped to be great. Bitbucket? Gitlab?

But Microsoft isn't the Microsoft from a couple years ago anymore. I hardly remember any company that positively turned around their image so quickly over such a short period of time. From Steve Ballmer's "Developers, Developers Developers" cringe-fest, to a quite charismatic Nadella. From the nightmarish IE-days to the almost really good Edge. From Clippy to an incredible design vision for hardware and sometimes even for software (can you imagine?)

But more than that, Microsoft is obviously heavily invested in becoming the new BFF for developers.

  • They are pumping lots of resources into VS Co
View article.yml
title: Some title
date: 2018-03-12
Text: Lorem ipsum …
View alignment.php
<?php
// no
return [
'aVeryLongOptionKey' => 'some value',
'foo' => 'another value'
];
// yes
return [
View script.php
<?php
require 'kirby/bootstrap.php';
$kirby = kirby();
$site = site();
foreach (page('posts')->children() as $post) {
// do something with the post here.
}
View create.php
<?php
// create a main page
try {
$newPage = site()->children()->create($uid = 'test', $template = 'test', [
'title' => 'A page title',
'date' => '2016-02-21',
'text' => 'Lorem ipsum dolor set amet ...'
]);
} catch(Exception $e) {
You can’t perform that action at this time.