Skip to content

Instantly share code, notes, and snippets.

Avatar

Erik Terwan terwanerik

View GitHub Profile
View StringHelper.php
<?php
/**
* Made by Erik Terwan
* erik@erikterwan.com
* https://erikterwan.com
*
* All rights reserved
*
* Created on 2019-03-26
*/
@terwanerik
terwanerik / Vue component
Created Apr 16, 2018
Vue component file template for PHPStorm/WebStorm/IntelliJ
View Vue component
#set( $regex = "([a-z])([A-Z]+)")
#set( $replacement = "$1-$2")
#set( $COMPONENT_NAME_KEBAB = $COMPONENT_NAME.replaceAll($regex, $replacement).toLowerCase())
<template>
<div class="$COMPONENT_NAME">
#[[$END$]]#
</div>
</template>
<script type="text/babel">
@terwanerik
terwanerik / DateFlowLayout.h
Created Dec 19, 2016 — forked from vigorouscoding/DateFlowLayout.h
UICollectionView with sticky headers which works for horizontal as well as vertical scrolling
View DateFlowLayout.h
#import <UIKit/UIKit.h>
@interface DateFlowLayout : UICollectionViewFlowLayout
@end