Skip to content

Instantly share code, notes, and snippets.

Eugen Wesseloh codexp

  • Even On Sunday
  • Osnabrück
Block or report user

Report or block codexp

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
@codexp
codexp / txt2po.php
Last active Jul 11, 2018
txt2po converter
View txt2po.php
<?php
/**
* locale txt to po converter (c)2018 by CodeXP <codexp@gmx.de>
* very basic implementation
*
* install:
* copy both files to your bin folder (~/bin)
* make txt2po.sh file executable (chmod +x txt2po.sh)
*
* usage:
@codexp
codexp / phpstorm
Created Aug 17, 2017
PhpStorm starter
View phpstorm
#!/bin/bash
P=`find ~/Software/ -name PhpStorm* | sort -r | head -1`
if [ -z "$P" ]; then
echo "PhpStorm installation not found!"
exit 1
fi
$P/bin/phpstorm.sh
@codexp
codexp / Error.php
Created Oct 19, 2015
F3 Error Controller for set_error_handler()
View Error.php
<?php
namespace CodeXP\Controller;
use CodeXP\Controller\Base\Page;
use Psr\Log\LogLevel;
/**
* Error Controller
*
View lizardpoint.com-press-enter-key-to-submit.js
document.getElementById('response').onkeyup = function (e) { if (13 == e.keyCode) { document.getElementById('response').value = document.getElementById('response').value.replace(',', '.'); document.getElementById('checkanswer').click();} }
@codexp
codexp / openHPI_validate_Hands-On-Final-Exam_Question-1
Last active Aug 29, 2015
validate openHPI - Hands-on final exam - Question 1
View openHPI_validate_Hands-On-Final-Exam_Question-1
<?php
$str = <<<EOD
ApiService.java, SyncManager.java, ndldic.c, MediaProvider.java, ndbdic.c
ndldic.c, ndbdic.c, SyncManager.java, MediaProvider.java, ApiService.java
ApiService.java, MediaProvider.java, ndldic.c, ndbdic.c, SyncManager.java
ndldic.c, ndbdic.c, SyncManager.java, ApiService.java , MediaProvider.java
APIService.java, ndbbic.c, ndldic.c, SyncManager.java, MediaProvider.java
ndldic.c, ndbdic.c, Apiservice.java, MediaProvider.java, SyncManager.java
SyncManager.java, MediaProvider.java, ApiService.java, ndbidic.c, ndldic.c
You can’t perform that action at this time.