Skip to content

Instantly share code, notes, and snippets.


Deepank Agarwal deepank411

Block or report user

Report or block deepank411

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
deepank411 / randomDarkColor.js
Created Jan 6, 2019 — forked from Chak10/randomDarkColor.js
Javascript Random Dark Color
View randomDarkColor.js
function randDarkColor() {
var lum = -0.25;
var hex = String('#' + Math.random().toString(16).slice(2, 8).toUpperCase()).replace(/[^0-9a-f]/gi, '');
if (hex.length < 6) {
hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
var rgb = "#",
c, i;
for (i = 0; i < 3; i++) {
c = parseInt(hex.substr(i * 2, 2), 16);
deepank411 /
Created Sep 8, 2016 — forked from nicerobot/
Mac OS X uninstall script for packaged install of node.js

To run this, you can try:

curl -ks | bash

I haven't tested this script doing it this way but i run a lot of my Gists like this so maybe this one'll work too.


curl -ksO
chmod +x ./
deepank411 / countries.json
Created Jan 3, 2016 — forked from keeguon/countries.json
A list of countries in JSON
View countries.json
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
You can’t perform that action at this time.