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
[ | |
"bbb", | |
"ccc" | |
] |
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
div.classname { | |
position: absolute; | |
left: 50%; /* Start with top left in the center */ | |
top: 50%; | |
width: 200px; /* The div fixed width... */ | |
height: 100px; /* ...and height */ | |
margin-left: -100px; /* Shift over half the width */ | |
margin-top: -50px; /* Shift up half the height */ | |
} |
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(); |
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
#!/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
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
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
#!/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
/** | |
* 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
/** | |
* Android Simple AlertDialog BoilerPlate Code | |
* | |
* @author Daehee Han ([email protected]) | |
* @since 05/15/2014 | |
* @version 1.0.0 | |
* | |
*/ | |
import android.app.Activity; |
OlderNewer