Skip to content

Instantly share code, notes, and snippets.

View jeroenherczeg's full-sized avatar
💽
Overspecialize, and you breed in weakness.

Jeroen Herczeg jeroenherczeg

💽
Overspecialize, and you breed in weakness.
  • Belgium
  • 03:16 (UTC +02:00)
View GitHub Profile
@jeroenherczeg
jeroenherczeg / openapi.yaml
Created May 16, 2021 14:26
OpenAPI user example
openapi: 3.1.0
info:
title: User service
version: '1.0'
servers:
- url: 'http://localhost:3000'
paths:
'/users/{userId}':
parameters:
- schema:
@jeroenherczeg
jeroenherczeg / deploy.sh
Last active January 27, 2017 13:45
Zero Deployment script for my Laravel project
#!/bin/sh
# Author : Jeroen Herczeg <jeroen@herczeg.be> HASSELT, LIMBURG, BELGIUM, EUROPE, EARTH
#
# Hello. My name is Jeroen Herczeg and I can help you or your team with my broad knowledge
# of frontend & backend web technologies and tools. I'm an eager learner and easily adapt to
# new environments. Work remotely? I like that. Need me on location? I'm sure we'll figure something out!
#
# http://herczeg.be
# Stop the script if there is an error
@jeroenherczeg
jeroenherczeg / install_php_tools.sh
Last active May 3, 2016 13:16
Install script for PHP Tools needed for Jenkins
#!/bin/bash
# Author : Jeroen Herczeg <jeroen@herczeg.be> HASSELT, LIMBURG, BELGIUM, EUROPE, EARTH
#
# Hello. My name is Jeroen Herczeg and I can help you or your team with my broad knowledge
# of frontend & backend web technologies and tools. I'm an eager learner and easily adapt to
# new environments. Work remotely? I like that. Need me on location? I'm sure we'll figure something out!
#
# http://herczeg.be
echo "PHP Tools will be installed to /usr/local/bin and renamed with .phar"
@jeroenherczeg
jeroenherczeg / script.js
Created January 17, 2013 23:56
Grayscale image hover
<script src="jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
// On window load. This waits until images have loaded which is essential
$(window).load(function(){
// Fade in images so there isn't a color "pop" document load and then on window load
$(".item img").fadeIn(500);
// clone image
@jeroenherczeg
jeroenherczeg / bootstrap.php
Created June 19, 2012 12:44 — forked from kkamkou/horizontal.phtml
Zend Navigation for the Twitter Bootstrap
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {
protected function _initNavigation() {
// make sure the layout is loaded
$this->bootstrap('layout');
// get the view of the layout
$layout = $this->getResource('layout');
$view = $layout->getView();