Skip to content

Instantly share code, notes, and snippets.

{
"nodes": [
{
"id": "511774f8-5187-46ad-bd20-43d9bec1ce28",
"group": "HomeFragmentSubcomponent",
"name": "com.spotify.kids.features.home.HomeFragment"
},
{
"id": "66c1891f-8dab-4407-95ff-7837023bbbf2",
"group": "HomeFragmentSubcomponent",
# Something in lines of http://stackoverflow.com/questions/348630/how-can-i-download-all-emails-with-attachments-from-gmail
# Make sure you have IMAP enabled in your gmail settings.
# Right now it won't download same file name twice even if their contents are different.
import email
import getpass, imaplib
import os
import sys
detach_dir = '.'
@shreeshga
shreeshga / .vimrc
Created November 13, 2013 01:32
basic vimrc
set nocompatible
set encoding=utf-8
set hidden
filetype plugin indent on
syntax on
set synmaxcol=2048 " Don't syntax highlight super-long lines (for performance)
set autoindent " automatically indent lines and try to do it intelligently
set smartindent
set backspace=indent,eol,start " backspace behaves 'normally'
@shreeshga
shreeshga / Dump.java
Created November 1, 2013 00:11
block write
private static void write(InputStream dataStream, Writer writer) throws IOException {
long start = System.currentTimeMillis();
byte[] buffer = new byte[512000];
BufferedInputStream in = new BufferedInputStream(dataStream);
int bytes = -1;
try {
bytes = readline(in, buffer,512000);
} catch (IOException e) {
Utilities.print(e);
}
[user]
name = shreesh ayachit
email = shreeshga@gmail.com
[alias]
#workflow
# 1. Start a story with a new branch
#
# git cob feature_x
# 2. Hack and commit often in that branch
#
@shreeshga
shreeshga / ls.sh
Created June 20, 2013 12:44
list files ordered by size
ls -lhs | sort -k5,5rn
@shreeshga
shreeshga / .vimrc
Created June 18, 2013 19:14
Auto indent vim paste
" Indent/dedent/autoindent what you just pasted
nnoremap >< V`]>
nnoremap <lt>> V`]<
nnoremap =- V`]=
@shreeshga
shreeshga / adb_broadcast.sh
Created June 5, 2013 18:07
Broadcast INSTALL_REFERRER command with Android adb
am broadcast -a com.android.vending.INSTALL_REFERRER -n com.kayak.android/com.google.analytics.tracking.android.CampaignTrackingReceiver --es "referrer" "utm_source=test_source&utm_medium=test_medium&utm_term=test_term&utm_content=test_content&utm_campaign=test_name"
// THIS IS A BETA! I DON'T RECOMMEND USING IT IN PRODUCTION CODE JUST YET
/*
* Copyright 2012 Roman Nurik
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0