Skip to content

Instantly share code, notes, and snippets.


Bilal Budhani BilalBudhani

Block or report user

Report or block BilalBudhani

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
BilalBudhani / notes.txt
Created Jun 20, 2018
React Session Notes
View notes.txt
const initialState = {
mute: true,
inProgress: true,
const initialState = {
controls: {
mute: true,
BilalBudhani / eslint.json
Created Sep 27, 2017
Wesbos' eslint + prettier config
View eslint.json
"extends": [
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
BilalBudhani / FileUpload.js
Last active Jul 23, 2019
Upload Multiple Files To Cloudinary With React & Axios
View FileUpload.js
handleDrop = files => {
// Push all the axios request promise into a single array
const uploaders = => {
// Initial FormData
const formData = new FormData();
formData.append("file", file);
formData.append("tags", `codeinfuse, medium, gist`);
formData.append("upload_preset", "pvhilzh7"); // Replace the preset name with your own
formData.append("api_key", "1234567"); // Replace API key with your own Cloudinary key
formData.append("timestamp", ( / 1000) | 0);
BilalBudhani / gist:faee80db3c4250c5716f72572496482c
Created May 31, 2017
Preact CLI error on running `preact watch`
View gist:faee80db3c4250c5716f72572496482c
$ preact watch
> Development server started at http://localhost:8080
Module not found: Error: Can't resolve 'preact/devtools' in '/usr/local/lib/node_modules/preact-cli/lib/lib'
resolve 'preact/devtools' in '/usr/local/lib/node_modules/preact-cli/lib/lib'
Parsed request is a module
using description file: /usr/local/lib/node_modules/preact-cli/package.json (relative path: ./lib/lib)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /usr/local/lib/node_modules/preact-cli/package.json (relative path: ./lib/lib)
resolve as module
BilalBudhani / index.js
Created Mar 26, 2017
Twitter Follow/Unfollow script (Run in ChromeDevConsole)
View index.js
setInterval(function () {
$('.not-following button.user-actions-follow-button').click();
}, 1000)
BilalBudhani /
Created Nov 2, 2016
Create this file in ~/.gradle folder to speed up React Native Android building process.
org.gradle.jvmargs=-Xms512m -Xmx1024m

Keybase proof

I hereby claim:

  • I am github on github.
  • I am bilalbudhani ( on keybase.
  • I have a public key whose fingerprint is E794 7BD0 243A EBEA 4128 EE83 9D40 47F2 038D C099

To claim this, I am signing this object:

View error.log
pm ERR! System Darwin 13.1.0
npm ERR! command "/usr/local/Cellar/node/0.10.26/bin/node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/bilalbudhani/work/angular-semantic
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /Users/bilalbudhani/work/angular-semantic/node_modules/karma-jasmine/node_modules/karma/node_modules/minimatch/node_modules/sigmund/node_modules/tap/node_modules/difflet/node_modules/tap/lib/tap-assert.js
npm ERR! fstream_path /Users/bilalbudhani/work/angular-semantic/node_modules/karma-jasmine/node_modules/karma/node_modules/minimatch/node_modules/sigmund/node_modules/tap/node_modules/difflet/node_modules/tap/lib/tap-assert.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
BilalBudhani / 0_reuse_code.js
Created Nov 24, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
BilalBudhani / imdb_fetch.rb
Last active Dec 21, 2015
ruby imdb_fetch.rb -n 10 "Morgan Freeman"
View imdb_fetch.rb
require 'rubygems'
require 'nokogiri'
require 'open-uri'
### Functions to work around
def fetch_top_movies(top_no)
top_movies =
ctr = 0
url = ''
You can’t perform that action at this time.