Skip to content

Instantly share code, notes, and snippets.


Adnan Urooj Deminem

View GitHub Profile
Deminem / Array#flatten.js
Created Mar 19, 2017
A simple javascript code snippet that provide the flatten method for nested arrays of objects. Raw
View Array#flatten.js
(function() {
'use strict';
// create a method which flatten nested arrays of objects
Array.prototype.flatten = function() {
var flatten = [];
this.slice(0).forEach(function(elem) {
if (Array.isArray(elem)) {
// handle deep level nesting
var result = elem.flatten();
Deminem / sample.js
Created Mar 19, 2017
A simple javascript to ordered the collection through given property and also calculate the average
View sample.js
(function() {
'use strict';
// create a person
function Person(name, ranking) { = name;
this.ranking = ranking;
this.toString = function() {
return '[' + + ' ' + this.ranking + ']';
Deminem /
Created Jan 15, 2017 — forked from lukas-h/
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file. Easily copy and paste the code under the badges into your Markdown files.


  • Badges are made with
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Want to add a License?

Comment this gist or write me an E-Mail (

View UpdateXcodeProject.cs
/* **************************************************************************
Copyright 2012 Calvin Rien
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at