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
| [alias] | |
| graph = log --graph --date-order -C -M --pretty=format:\"%C(blue)%h%C(reset) (%ar) [%an] %C(yellow)%d%Creset %s\" --all --date=short | |
| l = !git graph | less -FXRS | |
| h = !git graph -1 | less -FXRS | |
| ls = log --graph -C -M --pretty=format:"%C(yellow)%h%Cgreen%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --all --date=short | |
| ll = log --pretty=format:"%C(yellow)%h%Cgreen%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --all --numstat | |
| b = branch | |
| c = commit | |
| cc = commit -a | |
| co = checkout |
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
| buildscript { | |
| repositories { | |
| maven { | |
| url "https://plugins.gradle.org/m2/" | |
| } | |
| } | |
| dependencies { | |
| classpath "net.ltgt.gradle:gradle-apt-plugin:0.3" | |
| } | |
| } |
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.limo.limo_passenger.rest.google.place.service; | |
| import com.limo.limo_passenger.rest.google.place.model.PlaceSearchResponse; | |
| import com.limo.limo_passenger.rest.google.place.PlaceApiRetrofitAdapterBuilder; | |
| import com.limo.limo_passenger.rest.limo.LMCallback; | |
| import com.limo.limo_passenger.rest.limo.LMNetworkBus; | |
| import retrofit.RestAdapter; | |
| import retrofit.client.Response; | |
| import retrofit.http.GET; |
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
| #!/bin/bash | |
| import simplejson, urllib2 | |
| BASE_URL = "http://apis.daum.net/local/geo/coord2addr?" \ | |
| "apikey=DAUM_LOCAL_DEMO_APIKEY&latitude={0}&longitude={1}&output=json&inputCoordSystem=WGS84" | |
| def get_address(lat, lng): | |
| global BASE_URL |
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.day1song.app.tools; | |
| import android.content.Context; | |
| import android.content.pm.PackageInfo; | |
| import android.content.pm.PackageManager; | |
| import android.net.wifi.WifiInfo; | |
| import android.net.wifi.WifiManager; | |
| import android.os.Build; | |
| import android.provider.Settings; | |
| import android.telephony.PhoneStateListener; |
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
| /** | |
| * Retrofit adapter builder | |
| * Created by moltak on 2014. 7. 9.. | |
| */ | |
| public class LMNetworkBuilder { | |
| public static RestAdapter getAdapter() { | |
| return getBuilder().build(); | |
| } | |
| public static RestAdapter.Builder getBuilder() { |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <rotate xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:pivotX="50%" android:pivotY="50%" | |
| android:fromDegrees="0" | |
| android:toDegrees="360"> | |
| <animation-list android:oneshot="false"> | |
| <item android:duration="5"> | |
| <rotate android:drawable="@drawable/ic_progress_loading" |
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
| // code | |
| // Do not call this function from the main thread. Otherwise, | |
| // an IllegalStateException will be thrown. | |
| public void getIdThread() { | |
| AdvertisingIdClient.Info adInfo = null; | |
| try { | |
| adInfo = AdvertisingIdClient.getAdvertisingIdInfo(this); | |
| } | |
| catch (IOException e) { |
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
| android:value="5089000" /> | |
| <!-- about a google map --> | |
| <uses-library android:name="com.google.android.maps" /> | |
| <meta-data | |
| android:name="com.google.android.maps.v2.API_KEY" | |
| android:value="AIzaSyB4CUWyxfR2p2sf59C4opnpRr5zHb0JLZk" /> |
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
| #!/usr/bin/python | |
| from os import listdir | |
| from os.path import isfile, join | |
| import os | |
| import shutil | |
| from PIL import Image | |
| import string | |
| xxhdpi = './drawable-xxhdpi/' |