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
package com.booknara.android; | |
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; | |
import java.util.ArrayList; | |
import android.util.Log; |
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
09-04 13:38:20.219 16987-16987/com.zerodesktop.appdetox.dinnertimeplus W/FlurryAgent﹕ Start session with context: com.zerodesktop.appdetox.dinnertime.control.ui.application.AppsActivity@64e590a8 count:0 | |
09-04 13:38:22.772 16987-23315/com.zerodesktop.appdetox.dinnertimeplus W/FlurryAgent﹕ FlurryDataSender: report 94b1317f-ef93-48c1-b874-9cf6488d5183 sent. HTTP response: 200 | |
09-04 13:38:29.960 16987-16987/com.zerodesktop.appdetox.dinnertimeplus W/FlurryAgent﹕ Start session with context: com.zerodesktop.appdetox.dinnertime.control.ui.device.MainActivity@64fc12a0 count:1 | |
09-04 13:38:30.941 16987-16987/com.zerodesktop.appdetox.dinnertimeplus W/FlurryAgent﹕ End session with context: com.zerodesktop.appdetox.dinnertime.control.ui.application.AppsActivity@64e590a8 count:1 | |
09-04 13:38:37.328 16987-16987/com.zerodesktop.appdetox.dinnertimeplus W/FlurryAgent﹕ Event count started: /apps | |
09-04 13:38:37.398 16987-16987/com.zerodesktop.appdetox.dinnertimeplus W/FlurryAgent﹕ Start session with context: com.zerodesktop. |
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
/** | |
* Android Simple AlertDialog BoilerPlate Code | |
* | |
* @author Daehee Han ([email protected]) | |
* @since 05/15/2014 | |
* @version 1.0.0 | |
* | |
*/ | |
import android.app.Activity; |
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
/** | |
* Android Activity BoilerPlate Code | |
* | |
* @author Daehee Han ([email protected]) | |
* @since 05/15/2014 | |
* @version 1.0.0 | |
* | |
*/ | |
import android.app.ActionBar; |
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
#!/bin/bash | |
# Description : You can install APK file to all mounted devices | |
# Checking Command Line | |
if [ $# -ne 1 ] | |
then | |
echo "Usage : $0 \<APK file name\> " | |
exit 2 | |
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
package com.daeheehan.util; | |
import android.view.View; | |
import android.view.View.MeasureSpec; | |
import android.view.ViewGroup; | |
import android.widget.ListAdapter; | |
import android.widget.ListView; | |
/** | |
* List View Utility |
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
package com.daeheehan.cache; | |
public class UserProfileKey implements Comparable<UserProfileKey>{ | |
private String userId; | |
private String deviceId; | |
public UserProfileKey(String userId, String deviceId) { | |
this.userId = userId; | |
this.deviceId = deviceId; | |
} |
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/python | |
# This script help you extract image files from an APK file. | |
# Author : Daehee Han (https://github.com/booknara, @daniel_booknara) | |
# Date : August 21 2013 | |
# Basic Usage | |
# (1) img_extractor.py --ifile <APK file> --ofile <Destination Directory> | |
# (2) img_extractor.py --ifile <APK file> --ofile . | |
# (3) img_extractor.py --ifile <APK file> --ofile .. |
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
// Preventing single click when double-click is fired | |
var DELAY = 300, clicks = 0, time = null; | |
function handleSingleEvent(event) | |
{ | |
clicks++; | |
if (clicks == 1) | |
{ | |
timer = setTimeout( function() { | |
// performing action |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>MDN Example – AJAX and forms</title> | |
<script type="text/javascript"> | |
function AJAXGet(oForm) { | |
if (oForm.method.toLowerCase() !== "get") { return; } | |
var query = []; | |
var xhr = new XMLHttpRequest(); |