Skip to content

Instantly share code, notes, and snippets.

View joachimdoerr's full-sized avatar

Joachim Dörr joachimdoerr

View GitHub Profile
@joachimdoerr
joachimdoerr / slideshow_augabe.php
Created July 25, 2023 17:36 — forked from skerbis/slideshow_augabe.php
slidesjow_eingabe.php
<?php
$ylink = [['name' => 'News', 'table'=>'rex_news', 'column' => 'title']];
$auswahl = new Mform();
$auswahl->addFieldsetArea('Settings');
$auswahl->addSelectField(16, array(1=>'Ja',2=>'Nein'), array('label'=>'Autoplay'));
$auswahl->addSelectField(18, array('slide'=>'slide','fade'=>'fade','scale'=>'scale','pull'=>'pull','push'=>'push'), array('label'=>'Übergangs-</br>effekt'));
$auswahl->addSelectField(19, array('ja'=>'Ja',2=>'Nein'), array('label'=>'Navigations-</br>punkte anzeigen'));
$auswahl->addSelectField(20, array('ja'=>'Ja',2=>'Nein'), array('label'=>'Höhe wie Bildschirm'));
echo $auswahl->show();
?>
@joachimdoerr
joachimdoerr / 1.How to easily implement a REST API with oAuth2 presentation.md
Created September 30, 2019 16:09 — forked from lologhi/1.How to easily implement a REST API with oAuth2 presentation.md
Symfony2 : How to easily implement a REST API with oAuth2 (for normal guys)

It's still a work in progress...

Intro

As William Durand was recently explaining in his SOS, he "didn't see any other interesting blog post about REST with Symfony recently unfortunately". After spending some long hours to implement an API strongly secured with oAuth, I thought it was time for me to purpose my simple explanation of how to do it.

Ok, you know the bundles

You might have already seen some good explanation of how to easily create a REST API with Symfony2. There are famous really good bundles a.k.a. :

@joachimdoerr
joachimdoerr / IdenticonPlus.php
Created February 18, 2019 07:33 — forked from mistic100/IdenticonPlus.php
PHP implementation of Don Park Identicon algorithm with additional shapes and variations
<?php
/**
* Identicon++
*
* @description: PHP implementation of Don Park Identicon algorithm with additional shapes and variations.
*
* @author: Damien "Mistic" Sorel - http://strangeplanet.fr
* @license: MIT
* @version: 2.0.0
* @date: 21/05/2015
@joachimdoerr
joachimdoerr / readme.md
Created June 5, 2017 18:08 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser

@joachimdoerr
joachimdoerr / copycats.php
Created May 23, 2017 06:58 — forked from dajoho/copycats.php
Copy Categories REDAXO 4.3.x - Duplicates an entire category in REDAXO (including metadata, modules, slices & actions)
<?php
error_reporting(0);
include 'redaxo/include/master.inc.php';
error_reporting(E_ALL ^E_NOTICE);
ini_set('display_errors', 1);
$CLONE_THIS_ID = 184;
$DUPLICATE_MODULES = true;
@joachimdoerr
joachimdoerr / rex_form_beispiel.php
Created May 23, 2017 06:57 — forked from dajoho/rex_form_beispiel.php
REDAXO rex_form-Beispiel (mit Suche)
<?php
$id = rex_request('id', 'int');
$sort = rex_request('sort','string');
$sorttype = rex_request('sorttype','string');
$filter = rex_request('filter','string');
class br_formatter {
function productstatus($params){
@joachimdoerr
joachimdoerr / gist:a97039fad71dbf4aad04cf30c370a4da
Created June 20, 2016 09:31 — forked from aschroder/gist:2469319
Magento REST API PHP test harness (admin and customer)
<?php
/**
* Copyright Magento 2012
* Example of products list retrieve using Customer account via Magento
REST API. OAuth authorization is used
*/
$callbackUrl = "http://yourhost/oauth_customer.php";
$temporaryCredentialsRequestUrl =
"http://magentohost/oauth/initiate?oauth_callback=" .
urlencode($callbackUrl);
@joachimdoerr
joachimdoerr / gist:386ea1a99f758d35cab9
Created November 3, 2015 10:18 — forked from canton7/gist:1053846
git push, tracking, and push.default

git clone path/to/test/repo.git

push.default = matching (the default)

git config push.default matching

git branch -a
   * master
@joachimdoerr
joachimdoerr / .zshrc
Created October 28, 2015 14:06 — forked from metasta/.zshrc
.zshrc
# .zshrc: users generic .zshrc file for zsh(1)
#
# This file is sourced only for interactive shells. It
# should contain commands to set up aliases, functions,
# options, key bindings, etc.
#
# Global Order: zshenv, zprofile, zshrc, zlogin
## General
#
@joachimdoerr
joachimdoerr / mou.md
Last active September 3, 2015 13:14 — forked from zhenyi2697/mou.md
markdown: mou demo

Mou

Mou icon

Overview

Mou, the missing Markdown editor for web developers.

Syntax