Skip to content

Instantly share code, notes, and snippets.

View mneuhaus's full-sized avatar

Marc Neuhaus mneuhaus

View GitHub Profile
<?php
if( ! isset($curl_maxredirs))
$curl_maxredirs = 10;
if( ! isset($curl_timeout))
$curl_timeout = 30;
function sentry_log($message, $logLevel = 'info', $context = array()) {
$sentryUrl = 'http://docker.mia3.com:9000/api/10/store/?sentry_version=7&sentry_client=raven-js%2F3.0.4&sentry_key=80e40c062a184525b2ab66b88f64b4f5&sentry_secret=0394c79e57784c5f841788699c74bf54';
npm install -g monaca
->
└─┬ monaca@2.1.3
├── colors@0.6.2
├─┬ cordova@5.4.1
│ ├── ansi@0.3.1
│ ├─┬ cordova-lib@5.4.1
│ │ ├─┬ aliasify@1.9.0

Keybase proof

I hereby claim:

  • I am mneuhaus on github.
  • I am mneuhaus (https://keybase.io/mneuhaus) on keybase.
  • I have a public key whose fingerprint is 8635 A4FA AEDE 85D0 F3C4 CB61 DDF9 B12D AB3D 533C

To claim this, I am signing this object:

<?php
function determineEncoding($file)
{
$string = file_get_contents($file);
$encodingCandidates = array(
'UTF-8',
'ASCII',
'macintosh',
'ISO-8859-1',
/***
title: Buttons
section: Buttons
description: Very pretty square buttons
exampleVariables:
buttons: "btn-.*"
example: |
<f:for each="{buttons.combinations} as="combinationClass">
<a href="" class="btn {combinationClass}">{combinationClass}</a>
</f:for>
  1. Add sorting field to table in ext_tables.sql
sorting int(11) DEFAULT '0' NOT NULL,
  1. add sorting field in table TCA extension/Configuration/TCA/table_name.php to columns
'sorting' => array(
@mneuhaus
mneuhaus / gist:21a8396235b6f9e437d8
Created October 15, 2014 09:13
teaser subpages in wordpress
<?php
$loop = new WP_Query( array( 'post_type' => 'page', 'orderby' => 'title', 'order'=>'ASC','posts_per_page' => 99, 'post_parent' => get_the_ID()) );
while ( $loop->have_posts() ) : $loop->the_post();
...
endwhile;
?>
<?php
namespace MF\Mfcompana\Form;
/***************************************************************
*
* Copyright notice
*
* (c) 2016 Marc Neuhaus <mneuhaus@famelo.com>
*
* All rights reserved
{namespace v=FluidTYPO3\Vhs\ViewHelpers}
{namespace flux=FluidTYPO3\Flux\ViewHelpers}
{namespace t=Famelo\Template\ViewHelpers}
<f:layout name="{v:extension.loaded(extensionName: 'fluidcontent_core', then: 'ContentCore', else: 'Content')}" />
<f:section name="Configuration">
<flux:form id="event-registration" options="{group: 'forms'}" label="Registrierungsformular für Veranstaltung">
<flux:field.input name="title" label="Veranstaltungsname" required="1" />
<flux:field.text name="introduction" label="Einleitung" rows="3" enableRichText="1" />
<flux:field.text name="information" label="Veranstaltungsinformationen" rows="3" enableRichText="1" />
{namespace v=FluidTYPO3\Vhs\ViewHelpers}
{namespace flux=FluidTYPO3\Flux\ViewHelpers}
{namespace t=Famelo\Template\ViewHelpers}
<f:layout name="{v:extension.loaded(extensionName: 'fluidcontent_core', then: 'ContentCore', else: 'Content')}" />
<f:section name="Configuration">
<flux:form id="contact" options="{group: 'forms'}" label="Kontaktformular für Footer">
<flux:field.text name="introduction" label="Einleitung" rows="3" />
<flux:field.text name="introductionglobalise" label="Einleitung (globalise)" rows="3" />
<flux:field.input name="recipient" label="Empfänger" required="1" />