Skip to content

Instantly share code, notes, and snippets.

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

Jeffery Fernandez jeffery

🏠
Working from home
  • Ping Identity
  • Melbourne, Australia
View GitHub Profile
@jeffery
jeffery / add_dom_javascript
Created July 18, 2013 10:22
add_dom_javascript
function add_dom_javascript(scriptFile, callBackFunction, callBackParams)
{
var fileAdded = false;
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = scriptFile;
if ( (callBackFunction) && (arguments.length >= 2) )
{
@jeffery
jeffery / ZfcUser Route
Last active December 20, 2015 14:49
ZfcUser Route
<?php
return array (
'controllers' => array (
'invokables' => array (
'Account\Controller\Index' => 'Account\Controller\IndexController',
),
),
// The following section is new and should be added to your file
'router' => array (
'routes' => array (
@jeffery
jeffery / Account_Module.php
Created August 4, 2013 06:28
Account Module
<?php
namespace Account;
use Zend\Mvc\MvcEvent;
class Module
{
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
@jeffery
jeffery / Account_Module.php
Last active December 20, 2015 14:49
ZfcUser Routes
<?php
namespace Account;
use Zend\Mvc\MvcEvent;
class Module
{
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
@jeffery
jeffery / GitRepoUpdateTimestamp.sh
Created July 30, 2011 13:04
Update Timestamp of files in Checked-out Git Repository
#!/bin/bash -e
####
# Helper script to update the Last modified timestamp of files in a Git SCM
# Projects working Copy
#
# When you clone a Git repository, it sets the timestamp of all the files to the
# time when you cloned the repository.
#
# This becomes a problem when you want the cloned repository, which is part of a
# Web application have a proper cacheing mechanism so that it can re-cache files