Skip to content

Instantly share code, notes, and snippets.

View vinitkumar's full-sized avatar
🪀
Focusing

Vinit Kumar vinitkumar

🪀
Focusing
View GitHub Profile
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

let a = 5;
print a
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
alias c='clear'
alias serve='python manage.py runserver'
alias server='python -m SimpleHTTPServer'
alias fu='git fetch upstream'
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
alias c='clear'
alias serve='python manage.py runserver'
alias server='python -m SimpleHTTPServer'
alias fu='git fetch upstream'
# format for commit message headline
# <type>(<scope>): <subject>
# <BLANK LINE>
# <body>
# <BLANK LINE>
# <footer>
# feature|fix|docs|style|refactor|perf|test|chore(app_name): subject
# Body
import redis
import random
import time
r = redis.StrictRedis(host='localhost', port=6379, db=0)
def write_to_redis_million_times():
for i in range(1000000):
Traceback:
File "/Users/vinitkumar/.virtualenvs/socialschools/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)
File "/Users/vinitkumar/.virtualenvs/socialschools/lib/python2.7/site-packages/django/core/handlers/base.py" in _legacy_get_response
244. response = middleware_method(request)
File "/Users/vinitkumar/projects/python/cp/socialschools/apps/multitenant/middleware.py" in process_request
43. request.site = get_site_from_host(request)