Skip to content

Instantly share code, notes, and snippets.

View shauvik's full-sized avatar

Shauvik RC shauvik

View GitHub Profile
@shauvik
shauvik / gist:1b5cf58618c52ec36002
Created February 18, 2016 19:57
android ci commands
# Install all android components for CI (except system-images, add-ons, docs)
android update sdk -u -t platform,tool,platform-tool,extra -a
@shauvik
shauvik / gist:a448ca2c787fd7459537
Created September 24, 2015 21:07 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@shauvik
shauvik / news.py
Last active August 29, 2015 14:23
#!/usr/bin/python
import urllib2
import simplejson
#import jdcal
query='Charleston'
#startDate=int(jdcal.gcal2jd(2014,1,1)[0])
#endDate=int(jdcal.gcal2jd(2014,12,31)[0])
public class ImageFlipper{
private static final int START_ANGLE = 90;
private static final int END_ANGLE = 270;
private int animationDuration = 800;
private ObjectAnimator flipObjectAnimator;
public ImageFlipper(final View targetView, final int[] drawableResources){
((ImageView)targetView).setImageResource(drawableResources[0]);
flipObjectAnimator = ObjectAnimator.ofFloat(targetView, "rotationY", START_ANGLE, END_ANGLE);
$ repo sync
$ cd frameworks/testing/
$ git remote add github https://github.com/shauvik/espresso.git
@shauvik
shauvik / open_iterm
Created May 17, 2015 23:13
Automator task for Finder. Cmd drag to put in Finder bar.
on run {input, parameters}
tell application "Finder"
set dir_path to quoted form of (POSIX path of (folder of the front window as alias))
end tell
CD_to(dir_path)
end run
on CD_to(theDir)
tell application "iTerm"
set _term to (make new terminal)
@shauvik
shauvik / ubuntu.sh
Created April 22, 2015 10:08
Ubuntu Commands
# Install Java
apt-get install software-properties-common
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java8-installer
@shauvik
shauvik / gist:f22c72896f7a956b741c
Created February 18, 2015 12:03
Hybrid app development
* [List of solutions](http://www.prnewswire.com/news-releases/cross-platform-mobile-development-tools-market-analysis--forecast---third-edition-280225352.html)