Skip to content

Instantly share code, notes, and snippets.

View vinitkumar's full-sized avatar
🪀
Focusing

Vinit Kumar vinitkumar

🪀
Focusing
View GitHub Profile
@vinitkumar
vinitkumar / .bashrc
Created August 5, 2012 15:30
My Zsh Config
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# don't overwrite GNU Midnight Commander's setting of `ignorespace'.
export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups

Keybase proof

I hereby claim:

  • I am vinitkumar on github.
  • I am vinitkme (https://keybase.io/vinitkme) on keybase.
  • I have a public key ASCMqfaVb6CdQcTxrz_cncGkL3VAjRbboGonVQftK8EraAo

To claim this, I am signing this object:

def sme():
return 1
import json
import subprocess
import pprint
"""
The goal of this task is to modify the web workers to 2 and timeout to
something like 30 seconds, so that the worker do not cross memory limit
settings['DJANGO_WEB_WORKERS'] = env('DJANGO_WEB_WORKERS', 3)
getImages(URL) {
let allURLS = []
return fetch(URL)
.then((response) => { return response.json(); })
.then((json) => {
allURLS.push(json.results);
let newPhotoList = [...this.state.photoList, ...json.results]
this.setState({photoList: newPhotoList})
const nextURL = json.next;
if (!nextURL) {
image_sorted_list = ['Aggressive.jpg', 'Agonized.jpg', 'Agreeable.jpg', 'Annoyed.jpg', 'Anxious.jpg', 'Apologetic.jpg', 'Arrogant.jpg', 'Bashful.jpg', 'Been.jpg', 'Behind.jpg', 'Birthday.jpg', 'Bitter.jpg', 'Blissful.jpg', 'Brave.jpg', 'Capable.jpg', 'Caring.jpg', 'Cautious.jpg', 'Cheerful.jpg', 'Christmas.jpg', 'Clumsy.jpg', 'Concentrating.jpg', 'Confident.jpg', 'Confused.jpg', 'Cooperative.jpg', 'Courage.jpg', 'Creative.jpg', 'Crooked.jpg', 'Curious.jpg', 'Curly.jpg', 'Demure.jpg', 'Depressed.jpg', 'Design.jpg', 'Determined.jpg', 'Disappointed.jpg', 'Disapproving.jpg', 'Disbelieving.jpg', 'Distasteful.jpg', 'Dream.jpg', 'Eavesdropping.jpg', 'Ecstatic.jpg', 'Embarrassed.jpg', 'Enjoying.jpg', 'Enraged.jpg', 'Envious.jpg', 'Excited.jpg', 'Exhausted.jpg', 'Fantastic.jpg', 'Fearful.jpg', 'Free.jpg', 'Friendly.jpg', 'Frightened.jpg', 'Frustrated.jpg', 'Generous.jpg', 'Gentle.jpg', 'Gloomy.jpg', 'Gratitude.jpg', 'Grieving.jpg', 'Guilty.jpg', 'Hairy.jpg', 'Horrified.jpg', 'Hungover.jpg', 'Hurt.jpg', 'Hysterical.jpg
image_sorted_list = ['Aggressive.jpg', 'Agonized.jpg', 'Agreeable.jpg', 'Annoyed.jpg', 'Anxious.jpg', 'Apologetic.jpg', 'Arrogant.jpg', 'Bashful.jpg', 'Been.jpg', 'Behind.jpg', 'Birthday.jpg', 'Bitter.jpg', 'Blissful.jpg', 'Brave.jpg', 'Capable.jpg', 'Caring.jpg', 'Cautious.jpg', 'Cheerful.jpg', 'Christmas.jpg', 'Clumsy.jpg', 'Concentrating.jpg', 'Confident.jpg', 'Confused.jpg', 'Cooperative.jpg', 'Courage.jpg', 'Creative.jpg', 'Crooked.jpg', 'Curious.jpg', 'Curly.jpg', 'Demure.jpg', 'Depressed.jpg', 'Design.jpg', 'Determined.jpg', 'Disappointed.jpg', 'Disapproving.jpg', 'Disbelieving.jpg', 'Distasteful.jpg', 'Dream.jpg', 'Eavesdropping.jpg', 'Ecstatic.jpg', 'Embarrassed.jpg', 'Enjoying.jpg', 'Enraged.jpg', 'Envious.jpg', 'Excited.jpg', 'Exhausted.jpg', 'Fantastic.jpg', 'Fearful.jpg', 'Free.jpg', 'Friendly.jpg', 'Frightened.jpg', 'Frustrated.jpg', 'Generous.jpg', 'Gentle.jpg', 'Gloomy.jpg', 'Gratitude.jpg', 'Grieving.jpg', 'Guilty.jpg', 'Hairy.jpg', 'Horrified.jpg', 'Hungover.jpg', 'Hurt.jpg', 'Hysterical.jpg
from itertools import repeat
import csv
with open('sheet13.tsv', 'rb') as tsvin, open('new.csv', 'wb') as csvout:
tsvin = csv.reader(tsvin, delimiter='\t')
csvout = csv.writer(csvout)
img_list = []
for row in tsvin:
https://github.com/amirzaidi/Launcher3/releases/download/Pixel-v3.9/Launcher3-aosp-release.apk
@vinitkumar
vinitkumar / damons_mutt_configuration.md
Created August 30, 2018 12:16 — forked from allolex/damons_mutt_configuration.md
Mutt with multiple IMAP (Google Mail) accounts in the cloud. This is how I have my mutt installation set up and configured. I primarily use Google products for my mail these days, so the config here should be just fine for that. The principle shown here holds true for all mail accounts.

Mutt for multiple email accounts

This is an OS X-centric configuration.

My setup and configuration for Gmail/Google Apps

The idea here is to use environment variables, loaded via aliases to mutt, to control which account you're loading. Years ago I had all of my accounts configured to be accessible from a single mutt