Skip to content

Instantly share code, notes, and snippets.

@Epsiloni
Epsiloni / IntelliJ Hotkeys.md
Created December 29, 2015 13:47
Notes from Mouseless Development

General

Help -> Productivity Guide.

  • Shift++A -> Look up any action with it's keymap.
  • Shift+Shift -> Look for everything.
  • +N -> New files.
  • Use live templates.
  • You can create your own quick lists.

Navigation

  • ⌘+E -> Recents files.
@Epsiloni
Epsiloni / Android Studio for Experts.md
Last active May 25, 2017 08:17
Android Studio for Experts (Android Dev Summit 2015)
@Epsiloni
Epsiloni / checkstyle.xml
Last active November 15, 2015 12:02
Android Check Style
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<!--
Checkstyle configuration that checks the sun coding conventions from:
- the Java Language Specification at
@Epsiloni
Epsiloni / Nexus9_flashing_command
Created June 9, 2015 07:48
Nexus 9 Image Flashing Command
fastboot flash boot boot.img && fastboot flash cache cache.img && fastboot flash recovery recovery.img && fastboot flash system system.img && fastboot flash vendor vendor.img
@Epsiloni
Epsiloni / LazyField.java
Created May 19, 2015 07:17
For High-Performance on an Instance Field, Use the Double-Check Idiom
private volatile FieldType field;
FieldType getField() {
FieldType result = field;
if (result == null) { // 1st check (no lock)
synchronized (this) {
result = field;
if (result == null) // 2nd check (w/ lock)
@Epsiloni
Epsiloni / Java_home.sh
Created May 3, 2015 07:03
Setting the JAVA_HOME
export JAVA_HOME=`/usr/libexec/java_home -v 1.6`
or
export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
or
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
@Epsiloni
Epsiloni / Atom_Packages.md
Created April 29, 2015 08:05
Atom.io Packages

List of Atom.io addons

  • linter
  • atom-beautify
  • color-gutter
  • color-picker
  • compare-files
  • file-icons
  • gitignore-snippets
  • language-groovy
@Epsiloni
Epsiloni / Debuggable.java
Created March 10, 2015 09:03
Checking if Android app is debuggable in runtime.
boolean isDebuggable = (0 != (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE));
@Epsiloni
Epsiloni / gist:edd817a3622d40d665b1
Last active August 29, 2015 14:14
Google's Logo Colors

##Blue

  • Pantone: C 300 U 3005
  • CMYK C: 100 44 0 0
  • CMYK U: 100 34 0 2
  • Hex: 3369E8
  • RGB: 51 105 232

##Red

  • Pantone: C 199 U 199
  • CMYK: 0 100 62 0
@Epsiloni
Epsiloni / gist:653708357ec4ef877e65
Created January 4, 2015 07:25
Android Extended Toolbar Height
<Toolbar
android:id="@+id/toolbar"
android:layout_height="128dp"
android:layout_width="match_parent"
android:minHeight="?android:attr/actionBarSize"
android:background="?android:attr/colorPrimary"
android:gravity="bottom" />