Skip to content

Instantly share code, notes, and snippets.

ishanbakshi / resume.json
Created Jul 5, 2019 — forked from thomasdavis/resume.json
{ "theme": "elegant"}
View resume.json
"basics": {
"name": "Thomas Davis",
"label": "Web Developer",
"summary": "I’m a full stack web developer who loves working with open source technology. I work best at planning the architecture of web applications and their development life cycles. I also love to get the community involved and have had much experience with building and organizing large open source groups. Specialties: React, Redux, Javascript - Full stack developer with lots of experience in lots of stuff.",
"website": "",
"email": "",
"location": {
"city": "Melbourne",
"countryCode": "AU"
ishanbakshi /
Last active Aug 22, 2018
Async/Await cheatsheet

(reference :

Async - declares an asynchronous function (async function someName(){...}).

  • Automatically transforms a regular function into a Promise.

  • When called async functions resolve with whatever is returned in their body.

  • Async functions enable the use of await.

ishanbakshi /
Created Aug 20, 2018 — forked from stonehippo/
Installing a new Ruby with rbenv on Mac OS

Install a new Ruby with rbenv on Mac OS (and make yourself a superhero)

If you're doing stuff with Ruby on a Mac, e.g. installling Jekyll or something, by default you'll end up having to use the sudo command to do stuff, since the permission to modify the default config is not available to your user account.

This sucks and should be avoided. Here's how to fix that.

Installing a new Ruby

To make this better, we are going install a new, custom Ruby. This used to be a big, scary thing, but thanks to the awesome tools Homebrew and rbenv, it's a snap.*

A word of warning: you will have to use Terminal to install this stuff. If you are uncomfortable with text, words, and doing stuff with your computer beyond pointing and hoping, this may not work well for you. But if that's the case, I'm not sure why you were trying to use Ruby in the first place.

ishanbakshi /
Last active Aug 28, 2018 — forked from nrollr/
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

ishanbakshi /
Last active May 8, 2018 — forked from vallettea/
Configure vim on mac

Install pathogen and use a proper directory structure

mkdir -p .vim/{autoload,colors,syntax,plugin,spell,config}
mv .vimrc .vim/vimrc
ln -s .vim/vimrc .vimrc
cd ~/.vim
git clone pathogen
cd autoload
ishanbakshi /
Created Aug 19, 2016
An example which shows how static functions in java have all the variables act as static within them
* An example which shows how Static functions can be used in java
* available on Url :
public class HelloWorld{
public static void main(String []args){
System.out.println("Start Function");
Student st = new Student();
View guppyTheGroceryBot.js
'use strict';
var https = require('https');
var PAGE_TOKEN = "EAAJ6****";
var VERIFY_TOKEN = "my_token******";
exports.handler = (event, context, callback) => {
// process GET request
if(event.params && event.params.querystring){
var queryParams = event.params.querystring;
var rVerifyToken = queryParams['hub.verify_token']
ishanbakshi / parrotMessengerBot.js
Created Jul 29, 2016
A lambda function that acts like an fb messenger bot which pings back what you typed
View parrotMessengerBot.js
'use strict';
console.log('Loading function');
var https = require('https');
var PAGE_TOKEN = "EAASI6Z**********<fb tokenKey>";
var VERIFY_TOKEN = "my_awesome_token";
* Provide an event that contains the following keys:
ishanbakshi /
Created Jul 19, 2016 — forked from chrismdp/
Uploading to S3 in 18 lines of Shell (used to upload builds for
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (
# Based on a modified script from here:
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
ishanbakshi /
Last active Jul 28, 2016
This gist demonstrates, how to set/replace default enum properties at runtime.
// this code was tested using java ide from tutorials point
// see the running code on
public class EnumWithPropertiesExample{
public static void main(String []args){
System.out.println("All car prices:");
for (Car c : Car.values()){
System.out.println(c + " costs " + c.getPrice() + " thousand dollars.");