Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Vinit Kumar vinitkumar

🎯
Focusing
Block or report user

Report or block vinitkumar

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
View keybase.md

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:

View list.py
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)
View loadimags.js
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) {
View mainscript.py
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
View mainscript.py
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
View script.py
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:
View s.txt
https://github.com/amirzaidi/Launcher3/releases/download/Pixel-v3.9/Launcher3-aosp-release.apk
@vinitkumar
vinitkumar / damons_mutt_configuration.md
Created Aug 30, 2018 — 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.
View damons_mutt_configuration.md

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

You can’t perform that action at this time.