Skip to content

Instantly share code, notes, and snippets.

View blaues0cke's full-sized avatar
🏠
Working from home

Thomas Kekeisen blaues0cke

🏠
Working from home
View GitHub Profile
@blaues0cke
blaues0cke / FontWeight.js
Last active October 19, 2017 11:11 — forked from knowbody/RNfontWeights.js
React Native Font Weight Cheatsheet iOS
const fontWeight = {
thin: '100',
ultraLight: '200',
light: '300',
regular: '400',
medium: '500',
semiBold: '600',
bold: '700',
heavy: '800',
black: '900'
@blaues0cke
blaues0cke / CampaignParticipationApiSubscriber.php
Created April 13, 2017 10:03
api-platform write listener: skip creating entity in special cases
<?php
/**
* Created by PhpStorm.
* User: Thomas Kekeisen <thomas@kekeisen.it>
* Date: 13.04.17
* Time: 11:38
*/
namespace AppBundle\Subscriber;
@blaues0cke
blaues0cke / TabTitleText.js
Created April 5, 2017 13:25
react-native-tabs <Text> as own component
/**
* Created by thomaskekeisen on 16/03/2017.
*/
// @formatter:off
import I18n from 'react-native-i18n';
import React from 'react';
import Styles from '../styles/Styles';
import { Text } from 'react-native';
// @formatter:on
@blaues0cke
blaues0cke / IndentlessExtension.php
Last active March 1, 2017 19:00 — forked from seamusleahy/twig-indentless.php
Twig tag to remove indentation at the start of each line: {% indentless %}...{% endindentless %} + symfony3 and twig2 compatibility
<?php
/**
* Created by PhpStorm.
* User: Thomas Kekeisen <thomas@kekeisen.it>
* Date: 01/03/2017
* Time: 19:32
*/
namespace AppBundle\Twig;
@blaues0cke
blaues0cke / style.css
Created April 6, 2016 12:23
JIRA agile board and confluence calendars 9:16 style
.calendar-panel {
margin-right: 0;
}
.fc-view, .timeline-frame {
height: 1410px ;
}
.fc-view.fc-view-agendaWeek.fc-agenda > div > div:last-child {
height: 1000px ;
@blaues0cke
blaues0cke / workshop.php
Created November 3, 2015 14:59
Socialbit Workshop Code 03.11.2015
<pre><?php
set_time_limit(2);
//require('dark.php');
//require('reload.php');
interface LebewesenInterface
{
public function getName();
<?php
if (!empty($_POST['imageData']))
{
$image = base64_decode($_POST['imageData']);
file_put_contents('last-image.png', $image);
}
@blaues0cke
blaues0cke / OrderByRelationFilter.php
Last active October 14, 2015 08:15
A filter that allows you to sort by related entities using DunglasApiBundle (https://github.com/dunglas/DunglasApiBundle).
<?php
namespace Your\AppBundle\Api\Filter;
use Dunglas\ApiBundle\Doctrine\Orm\Filter\AbstractFilter;
use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\ORM\QueryBuilder;
use Dunglas\ApiBundle\Api\IriConverterInterface;
use Dunglas\ApiBundle\Api\ResourceInterface;
@blaues0cke
blaues0cke / EmptyFilter.php
Created September 21, 2015 13:30
DunglasApiBundle "IS NULL" custom filter
<?php
namespace Foo\AppBundle\Api\Filter;
use Dunglas\ApiBundle\Doctrine\Orm\Filter\AbstractFilter;
use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\ORM\QueryBuilder;
use Dunglas\ApiBundle\Api\IriConverterInterface;
use Dunglas\ApiBundle\Api\ResourceInterface;
Set fileSystemObject = CreateObject("Scripting.FileSystemObject")
inputFilePathFull = WScript.Arguments(0)
Set fileObject = fileSystemObject.GetFile(inputFilePathFull)
inputFileName = fileSystemObject.GetFileName(fileObject)
inputFilePath = fileSystemObject.GetParentFolderName(fileObject)