This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
https://gist.github.com/4193104 | |
Courtesy: http://css-tricks.com/snippets/css/media-queries-for-standard-devices/ | |
*/ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Kaushik's Custom Slate file | |
# config: for global configurations. | |
# alias: to create alias variables. | |
# layout: to configure layouts. | |
# default :to default certain screen configurations to layouts | |
# bind: binds a key to an action. | |
# source: to load configs from another file. | |
config defaultToCurrentScreen true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>IR_Black_KG</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# REPO=$HOME/put/your/repo/dir/here | |
# Generate Android resource directory structure and create lower res version of images | |
function an_img_gen_res { | |
if [ ! -f "$1" ]; then | |
echo "File not found!" | |
return | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'optparse' | |
tag_name = %x[git tag | tail -1].strip | |
optparse = OptionParser.new | |
optparse.parse! | |
filename = ARGV.pop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
=begin | |
# sample output for git status -s | |
M pkk/src/main/java/com/micromobs/pkk/fragments/GuestProfileQuestionnaireStep1Fragment.java | |
M pkk/src/main/java/com/micromobs/pkk/fragments/GuestProfileQuestionnaireStep2Fragment.java | |
M pkk/src/main/java/com/micromobs/pkk/ui/viewmodels/MembershipViewModel.java | |
M pkk/src/main/res/layout/fragment_guest_profile_questionnaire_step_2.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Get line number for file that needs to be added | |
argument = ARGV.pop | |
# do a git status and get the second argument | |
# filename = %x[git status -s | sed -n '#{argument}p'].split(" ", 2)[1] | |
filename = %x[git status -s | awk 'NR==#{argument}'].split(" ", 2)[1] # using awk baby! | |
system("git diff-index --quiet HEAD -- || clear; git diff --patch-with-stat #{filename}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Get line number for file that needs to be added | |
argument = ARGV.pop | |
# do a git status and get the second argument | |
# filename = %x[git status -s | sed -n '#{argument}p'].split(" ", 2)[1] | |
filename = %x[git status -s | awk 'NR==#{argument}'].split(" ", 2)[1] # using awk baby! | |
system("git checkout -- #{filename}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First check imagemagick versions | |
brew versions imagemagick | |
brew uninstall imagemagick | |
cd /usr/local/Cellar | |
git checkout 834ce4a /usr/local/Library/Formula/imagemagick.rb | |
brew install imagemagick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Intent; | |
import android.os.Bundle; | |
import android.os.Parcel; | |
import android.os.Parcelable; | |
import android.util.SparseArray; | |
import junit.framework.TestCase; | |
public class ParcelableSparseArray | |
extends SparseArray<Object> |
OlderNewer