This file contains hidden or 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
| # OSX for Hackers (Mavericks/Yosemite) | |
| # | |
| # Source: https://gist.github.com/brandonb927/3195465 | |
| #!/bin/sh | |
| # Some things taken from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Ask for the administrator password upfront |
This file contains hidden or 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
| package com.github.manuelpeinado.toolbartest; | |
| import android.graphics.Color; | |
| import android.graphics.drawable.Drawable; | |
| import android.os.Bundle; | |
| import android.support.v7.app.ActionBarActivity; | |
| import android.support.v7.widget.Toolbar; | |
| import android.view.Menu; | |
| import android.view.View; |
This file contains hidden or 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
| apply from: 'strip_play_services.gradle' |
This file contains hidden or 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
| package vn.casperpas.bbnext.entities; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.Paint; | |
| import android.graphics.Path; | |
| import android.graphics.RectF; | |
| import android.support.v4.view.MotionEventCompat; | |
| import android.view.MotionEvent; | |
| import android.view.View; |
This file contains hidden or 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
| package net.frakbot.util.color; | |
| import android.graphics.Color; | |
| /** | |
| * The MIT License (MIT) | |
| * <p/> | |
| * Copyright (c) 2014 Sebastiano Poggi | |
| * <p/> | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy |
This file contains hidden or 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
| // your code | |
| apply from: "build-plugins/idea-gradle-sources.gradle" |
This file contains hidden or 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.support.annotation.NonNull; | |
| import java.io.Serializable; | |
| import java.util.Map; | |
| /** | |
| * Provides a way to wrap a serializable {@link Map} in order to preserve its class | |
| * during serialization inside an {@link Intent}, otherwise it would be "flattened" | |
| * in a {@link android.os.Parcel} and unparceled as a {@link java.util.HashMap}. |
This file contains hidden or 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.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import java.io.ByteArrayInputStream; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.io.ObjectInput; | |
| import java.io.ObjectInputStream; | |
| import java.io.ObjectOutput; |
This file contains hidden or 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.animation.Animator; | |
| import android.animation.AnimatorSet; | |
| import android.animation.Keyframe; | |
| import android.animation.PropertyValuesHolder; | |
| import android.animation.ValueAnimator; | |
| import android.os.Build; | |
| import android.support.annotation.Nullable; | |
| import java.lang.reflect.Field; |
This file contains hidden or 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
| def buildConfigAndResStringField(variant, name, value) { | |
| variant.resValue 'string', name.toLowerCase(), value | |
| variant.buildConfigField 'String', name, "\"$value\"" | |
| } | |
| afterEvaluate { | |
| android.applicationVariants.all { variant -> | |
| variant.resValue 'string', 'application_id', variant.applicationId | |
| buildConfigAndResStringField variant, "ACCOUNT_TYPE", variant.applicationId | |
| buildConfigAndResStringField variant, "CONTENT_AUTHORITY", variant.applicationId + ".provider" |