Skip to content

Instantly share code, notes, and snippets.

Ehtesh Choudhury shurane

Block or report user

Report or block shurane

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
shurane /
Created Jul 12, 2011
Question asked earlier today -- but this should be legible and understandable. Everything is outputted to "MQ_List-output.csv"
#!/usr/bin/env python
import csv
import sys
import os.path
#filename1 = csv with all the important rows (inputfile)
#filename2 = csv that sorts filename1 by groups (sortby)
#filename3 = alternate filename, by default it is filename1 appended with '-output.csv' (output_file)
if len(sys.argv) <= 2:
shurane / vimrc-vam.vim
Created Jul 23, 2011
A simple way to only load the repos I want?
View vimrc-vam.vim
" VAM for plugin management
" after setting this up
function! ActivateVAM()
let addons_base = expand('$HOME') . '/vim-addons'
let addons_manager = addons_base . '/vim-addon-manager'
execute 'set runtimepath+=' . addons_manager
if finddir(addons_base, '') == ''
call mkdir(addons_base, '')
shurane / hugs-insert.js
Created Aug 2, 2011
Pull hug.css into current website to use as a grid -- well if I knew where to host the .css file
View hugs-insert.js
var tempLink = document.createElement("link");
var hugDiv = document.createElement("div");
var columns = 5;
tempLink.href = "http://link/to/hug.css";
tempLink.type = "text/css"; = "hug"
leftDiv = document.createElement("div");
shurane / twitter.m
Created Aug 29, 2011
Twitter Result
View twitter.m
// TwitterPreview
- (void) webViewDidStartLoad:(KUIWebView *) webView {
- (void) webViewDidFinishPageLoad(KUIWebView *) webView {
- (void) webViewDidFinishLoad(KUIWebView *) webView {
shurane /
Created Jun 5, 2012
android.os.Message being delayed.
### binding part
public Something extends Activity {
public void analyticsBind(){
Log.d(TAG, "bindToAnalyticsService()");
Intent i = new Intent();
i.setClassName("com.gimme.service", "com.gimme.service.SomeService");
bindService(i, mAnalyticsConnection, Context.BIND_AUTO_CREATE);
shurane / local_manifest.xml
Created Aug 10, 2012
Adding TripNRaver's sources on top of jellybean
View local_manifest.xml
<?xml version="1.0" encoding="UTF-8"?>
<remote name="github" fetch="git://"/>
<!--<project name="intermediaterepresentation/android_kernel_htc_endeavor" path="kernel/htc/endeavor" remote="github" />-->
<!--<project name="intermediaterepresentation/android_device_htc_endeavor" path="device/htc/endeavoru" remote="github" />-->
<!--<project name="intermediaterepresentation/android_device_htc_endeavor" path="device/htc/endeavoru" remote="github" />-->
<project name="TripNRaVeR/tripndroid-endeavoru-" path="kernel/htc/endeavor" remote="github" revision="refs/heads/master"/>
<project name="TripNRaVeR/android_device_htc_endeavoru" path="device/htc/endeavoru" remote="github" revision="refs/heads/jellybean"/>
<project name="TripNRaVeR/android_vendor_htc_endeavoru" path="vendor/htc/endeavoru" remote="github" revision="refs/heads/jellybean"/>
shurane / build_output
Created Aug 13, 2012
Failed cm10 build for maguro
View build_output
#I'm on Ubuntu 12.04
repo init -u git:// -b jellybean && repo sync
source build/
breakfast cm_maguro-userdebug
time make CC=gcc-4.4 CXX=g++-4.4 -j1
Note: Recompile with -Xlint:deprecation for details.
target Symbolic: icache (out/target/product/maguro/symbols/system/bin/icache)
View gist:4370442
Import includes file: out/target/product/mako/obj/UTILITY_EXECUTABLES/static_busybox_intermediates/import_includes
make: *** No rule to make target `out/target/product/mako/obj/STATIC_LIBRARIES/libext4_utils_intermediates/export_includes', needed by `out/target/product/mako/obj/UTILITY_EXECUTABLES/utility_make_ext4fs_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: external/busybox/ -- out/target/product/mako/obj/UTILITY_EXECUTABLES/static_busybox_intermediates/export_includes
lsb_release -a
# No LSB modules are available.
# Distributor ID: Ubuntu
# Description: Ubuntu 12.04.1 LTS
# Release: 12.04
# Codename: precise
uname -a
# Linux un 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
View gist:4516783
You're building on Linux
Breakfast menu... pick a combo:
1. mini_armv7a_neon-userdebug
2. mini_armv7a-userdebug
3. htc_endeavoru-userdebug
4. htc_endeavoru-eng
5. full_maguro-userdebug
6. cm_quincyatt-eng
You can’t perform that action at this time.