Skip to content

Instantly share code, notes, and snippets.

View leeferwagen's full-sized avatar

Muslim Idris leeferwagen

  • Germany
  • 05:20 (UTC +02:00)
View GitHub Profile
@leeferwagen
leeferwagen / overloading.js
Last active August 29, 2015 14:03
Function for overloading class methods in JavaScript
(function() {
'use strict';
var global;
if (typeof window == 'object') {
global = window;
} else if (typeof exports == 'object') {
global = exports;
}
export FC31="\[\033[31m\]"
export FC32="\[\033[32m\]"
export FC33="\[\033[33m\]"
export FC34="\[\033[34m\]"
export FC35="\[\033[35m\]"
export FC36="\[\033[36m\]"
export FC37="\[\033[37m\]"
export FC38="\[\033[38m\]"
export FC39="\[\033[39m\]"
export FC5="\[\033[5m\]"
@leeferwagen
leeferwagen / jsbin.gisiwu.js
Last active August 29, 2015 14:18
Sorting of array containing objects
(function(scope) {
function cmp(a, b, mul) {
return (a == b ? 0 : (a < b ? -1 : 1)) * mul;
}
function ocmp() {
var _sorting = [].slice.call(arguments).filter(function(v) {
return v != null;
}).map(function(v) {
if (typeof v == 'string') {
<?php
final class Perfbasta
{
private static $instance = null;
private $outputFile = '';
private $outputStream = null;
private $debugBacktraceArg1 = false;
private $outputStreamSupportsLocking = false;