Skip to content

Instantly share code, notes, and snippets.

Avatar

Christian Jul Jensen christianjul

View GitHub Profile
@christianjul
christianjul / safari-privacy-mode-session-storage-polyfill.js
Created Feb 2, 2014
Very generic but working implementation of session storage fallback for safari in privacy mode
View safari-privacy-mode-session-storage-polyfill.js
submission = {
handle: function (event) {
event.preventDefault();
event.stopPropagation();
var id,
data,
storage = submission.getStorage(),
nextUrl;
data = storage.getItem('Opeepl');
@christianjul
christianjul / HTTP.php
Last active Sep 2, 2015
Version of PHPs parse_str and http_build_query that handles query strings with more than one parameter with the same identifier in the same way as .NET
View HTTP.php
<?php
namespace christianjul\util;
/** HTTP related utilities */
class HTTP {
/**
* PHP's built-in parse_str cannot properly handle querystrings that have parameters with the same identifier.
*
@christianjul
christianjul / composer.json
Created Sep 9, 2012
FLOW3 Barebone manifest
View composer.json
{
"name": "christianjul/barebone-flow3",
"description" : "Barebone FLOW3 project",
"license": "GPL-3.0+",
"authors": [
{
"name": "Christian Jul Jensen",
"email": "julle@typo3.org"
}
],
@christianjul
christianjul / Installing FLOW3.md
Created Sep 9, 2012
Installing FLOW3 via Composer
View Installing FLOW3.md

Please note: This is work in progress

FLOW3 is installable via Composer and excutable from the commandline with this fork, but has not been fully tested.

Most likely several things are broken. Also the package structure has changed, a migration tool will be provided

Installing FLOW3 with Composer

  1. Create an empty directory for your project
@christianjul
christianjul / stats.txt
Created Sep 11, 2012
TYPO3 Phoenix Copenhagen CodeSprint stats
View stats.txt
TYPO3.FLOW3 60 files changed, 1476 insertions(+), 537 deletions(-)
TYPO3.TYPO3 215 files changed, 61986 insertions(+), 28698 deletions(-)
TYPO3.Admin 83 files changed, 1817 insertions(+), 1478 deletions(-)
TYPO3.TYPO3CR 11 files changed, 495 insertions(+), 76 deletions(-)
Sum : 369 files changed, 65774 insertions(+), 30789 deletions(-)
@christianjul
christianjul / DostuffCommandController.php
Created Oct 6, 2012
Simple commandcontroller and aspect to demo how to use 3rd party components - and AOP on it - in TYPO3 Flow
View DostuffCommandController.php
<?php
namespace Julle\Demo\Command;
/* *
* This script belongs to the TYPO3 Flow package "Julle.Demo". *
* *
* */
use TYPO3\Flow\Annotations as Flow;
@christianjul
christianjul / gist:3844837
Created Oct 6, 2012
Using Composer with TYPO3 Flow now!
View gist:3844837

Using TYPO3 Flow with composer now!

The TYPO3 packages has not yet been submitted to packagist, we want to make sure that everything is working as expected - including the recent name changes, before going official. we do however have our own composer repository available at http://ci.typo3.robertlemke.net/job/composer-packages/ws/repository/packages.json. And http://jul.net/packages.json can be used as a shorthand for that.

so what you can do already now is this:

composer.phar create-project --repository-url="http://jul.net" typo3/flow-base-distribution TYPO3-Flow

or put this in in your composer root-manifest:

View gist:3878490
"typo3/buildessentials":
"typo3/flow"
"typo3/flow-base-distribution"
"typo3/flow-composer-installers"
"typo3/fluid"
"typo3/kickstart"
"typo3/party"
"typo3/welcome"
"typo3/surf"
"typo3/typo3cr"
View gist:3945930
{
"name": "justinrainbow/json-schema",
"description": "A library to validate a json schema.",
"keywords": ["json", "schema"],
"homepage": "https://github.com/justinrainbow/json-schema",
"type": "library",
"license": "NewBSD",
"version": "1.1.0",
"authors": [
{