Skip to content

Instantly share code, notes, and snippets.

View joachimdoerr's full-sized avatar

Joachim Dörr joachimdoerr

  • Germany
View GitHub Profile
<?php
$nav = new advanced_rex_navigation();
$main_navigation = $nav->get(0,3,FALSE,TRUE,'main');
// 'main' ist der name des navigationstyps
// bitte anpassen je nach einstellung im meta-info-addon
/* weitere setter methoden:
$nav->setClasses(array('menu_item'));
$nav->setSeperator('/');
// jQuery.support.transition
// to verify that CSS3 transition is supported (or any of its browser-specific implementations)
$.support.transition = (function(){
var thisBody = document.body || document.documentElement,
thisStyle = thisBody.style,
support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined;
return support;
})();

PHPSecLib User Testing

The following is an extract of a poem. This is the text we will be using as our example input for encrypting with a password.

Twisted and gnarled, these roots run deep into realms that open whilst I sleep;
designing a counterfeit system composed of intricately versed poem.

Next, we have the password in which we shall encrypt everything with.

@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

@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 / 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 / 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 / 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 / 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 / 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 "[email protected]"
npm set init.author.url "http://yourblog.com"

npm adduser