Skip to content

Instantly share code, notes, and snippets.

View omostan's full-sized avatar

Stan Omoregie omostan

View GitHub Profile
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@omostan
omostan / post-repeat-directive.js
Created June 28, 2017 11:41 — forked from rkgarg/post-repeat-directive.js
Angular ng-repeat Benchmark
// Post repeat directive for logging the rendering time
angular.module('myApp').directive('postRepeatDirective',
['$timeout',
function($timeout) {
return function(scope) {
if (scope.$first)
window.a = new Date(); // window.a can be updated anywhere if to reset counter at some action if ng-repeat is not getting started from $first
if (scope.$last)
$timeout(function(){
console.log("## DOM rendering list took: " + (new Date() - window.a) + " ms");
@omostan
omostan / copyright.py
Last active August 29, 2015 14:23 — forked from pakdev/copyright.py
<?php
/**
* @version 1.0.0
* @package com_COMPONENTNAME
* @copyright Copyright (C) 2012. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author TCM Services <admin@tcmsvc.net> - http://www.tcmsvc.net
*/
// No direct access
<?xml version="1.0" encoding="utf-8"?>
<config>
<fieldset
name="component"
label="COM_JCONTRACTOR_COMPONENT_LABEL"
description="COM_JCONTRACTOR_COMPONENT_DESC">
<field
name="test"
type="radio"