Skip to content

Instantly share code, notes, and snippets.

@Yosuke-Kawakami
Yosuke-Kawakami / Activity_map.java
Last active November 15, 2016 05:48
Google Maps Android API V2 のバルーンをカスタマイズするのに一寸手間取ったのでメモ
/*
* 基本的な実装は他を参照してくだち!><
*
*/
GoogleMap _map;
private void init_map(){
_map = ((SupportMapFragment)fragment).getMap();
_map.setInfoWindowAdapter(new CustomInfoAdapter());
}
@wbroek
wbroek / genymotionwithplay.txt
Last active February 13, 2025 09:37
Genymotion with Google Play Services for ARM
NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
@nolanlawson
nolanlawson / completion-for-gradle.md
Last active September 25, 2024 12:51
Gradle tab completion for Bash. Works on both Mac and Linux.

Gradle tab completion script for Bash

A tab completion script that works for Bash. Relies on the BSD md5 command on Mac and md5sum on Linux, so as long as you have one of those two commands, this should work.

Usage

$ gradle [TAB]
@alterakey
alterakey / solve-imports.py
Last active January 1, 2016 07:39
Crude Java import solver
Moved to https://github.com/taky/jane
@yyaammaa
yyaammaa / gist:7480613
Last active June 30, 2017 02:50
Butter Knifeの紹介

Butter Knifeの紹介

Android用のView Injectionライブラリである Butter Knife について解説します (といいますか、サイトに書いてあることをほとんどそのまま日本語にしただけです) 。

概要

Butter Knifeは ActionBarSherlock などでお馴染みの Square のJake WhartonさんによるAndroid用のView Injectionライブラリです。

使い方

このライブラリの目的が、

  • Activity, ViewのfindViewByIdを楽に書く
@skrb
skrb / Gong.java
Last active December 21, 2015 06:18
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import javafx.animation.AnimationTimer;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.StackPane;
@taichi
taichi / build.gradle
Last active November 29, 2019 03:37
doma-tutorial-1.31.0.zipに含まれるbuild.gradleをより改善したビルドスクリプト。
apply plugin: 'java'
sourceCompatibility = targetCompatibility = 1.6
tasks.withType(AbstractCompile) each { it.options.encoding = 'UTF-8' }
repositories {
mavenCentral()
maven {url 'http://maven.seasar.org/maven2'}
}
enum Num {
ONE(1) {
String toRoman() { "Ⅰ" }
},
TWO(2) {
String toRoman() { "Ⅱ" }
},
THREE(3) {
String toRoman() { "Ⅲ" }
};
@nagakenjs
nagakenjs / ActionBarFragment.java
Created July 28, 2013 12:07
Helper class for ActionBarActivity
package jp.nagakenjs.appcompathelper.app;
import android.app.Activity;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBarActivity;
public class ActionBarFragment extends Fragment {
private ActionBarActivity mActivity;