Skip to content

Instantly share code, notes, and snippets.

View KamalHunzai's full-sized avatar
🎯
Focusing

Kamal Hussain KamalHunzai

🎯
Focusing
View GitHub Profile
@KamalHunzai
KamalHunzai / TwitterJSONTweet.js
Created June 23, 2016 04:17 — forked from robjohnson/TwitterJSONTweet.js
Twitter JSON Tweet Schema
{
"place":null,
"coordinates":null,
"retweeted":false,
"in_reply_to_status_id":null,
"id_str":"28039652140",
"truncated":false,
"in_reply_to_status_id_str":null,
"source":"web",
"favorited":false,
@KamalHunzai
KamalHunzai / sortBy.js
Created July 13, 2016 05:07 — forked from jherax/sortBy.js
Sorting Arrays (Schwartzian transform)
/**
* Learn about Schwartzian transform
* https://en.wikipedia.org/wiki/Schwartzian_transform
*/
(function() {
if (typeof Object.defineProperty === 'function') {
try {
Object.defineProperty(Array.prototype, 'sortBy', { value: sortBy });
} catch (e) {}
}
@KamalHunzai
KamalHunzai / Full Stack JavaScript.md
Last active July 14, 2016 12:20 — forked from m0n01d/Full Stack JavaScript.md
Learn Full Stack JavaScript Web Development for FREE using resources like YouTube, Udacity and NodeSchool
@KamalHunzai
KamalHunzai / Generate a Swift Playground for any Pod.txt
Last active September 23, 2016 12:42
Generate a Swift Playground for any Pod.
Generates a Swift Playground for any Pod.
Installation
$ gem install cocoapods-playgrounds
Usage
CocoaPods
@KamalHunzai
KamalHunzai / react_fiber.md
Created April 25, 2017 12:04 — forked from geoffreydhuyvetters/react_fiber.md
What is React Fiber? And how can I try it out today?
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
@KamalHunzai
KamalHunzai / install-mongodb-mac-os-x.md
Created November 17, 2017 05:16 — forked from Sydney-o9/install-mongodb-mac-os-x.md
Install MongoDB on Mac OS X without brew

1. Download latest source

# Get latest from MongoDB website
$ curl -O https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.4.6.tgz
$ tar -zxvf mongodb-osx-x86_64-3.4.6.tgz
$ mkdir -p mongodb
$ cp -R -n mongodb-osx-x86_64-3.4.6/ mongodb
$ sudo mv mongodb /usr/local