Skip to content

Instantly share code, notes, and snippets.

View sukso96100's full-sized avatar
🌏
Hello

Youngbin Han sukso96100

🌏
Hello
View GitHub Profile
@sukso96100
sukso96100 / TouchTrigger.java
Created December 22, 2013 14:21
TouchTrigger Class(xtends StandOut)
/**
* Created by youngbin on 13. 12. 22.
*/
package com.example.app;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle"
android:dither="true">
<corners android:radius="2dp"/>
<solid android:color="#ccc" />
@sukso96100
sukso96100 / GlowNotifierLogCat.txt
Last active August 29, 2015 13:56
GlowNotifier App Test Logcat : Glow Blink test Logs
02-12 12:19:20.981 1771-1771/com.hybdms.glownotifier D/GlowBlinkerοΉ• STOP
02-12 12:19:20.981 1771-1771/com.hybdms.glownotifier D/GlowBlinkerοΉ• START
02-12 12:19:20.981 1771-1771/com.hybdms.glownotifier D/GlowBlinkerοΉ• STOP
02-12 12:19:20.981 1771-1771/com.hybdms.glownotifier D/GlowBlinkerοΉ• START
02-12 12:19:20.981 1771-1771/com.hybdms.glownotifier D/GlowBlinkerοΉ• STOP
02-12 12:19:20.981 1771-1771/com.hybdms.glownotifier D/GlowBlinkerοΉ• START
02-12 12:19:20.981 1771-1771/com.hybdms.glownotifier D/GlowBlinkerοΉ• STOP
02-12 12:19:20.981 1771-1771/com.hybdms.glownotifier D/GlowBlinkerοΉ• START
02-12 12:19:20.981 1771-1771/com.hybdms.glownotifier D/GlowBlinkerοΉ• STOP
02-12 12:19:20.981 1771-1771/com.hybdms.glownotifier D/GlowBlinkerοΉ• START
package com.hybdms.glownotifier;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Handler;
import android.os.IBinder;
import android.util.Log;
/*
* GlowNotifier Application for Android
* Copyright (C) 2013 Youngbin Han<[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
@sukso96100
sukso96100 / sample_gradle_build_script.gradle
Last active August 29, 2015 14:01
Sample Gradle Build Script(Gradle λΉŒλ“œ 슀크립트 예제)
/* Gradle λΉŒλ“œ 슀크립트 예제
*
* μ•„λž˜ GitHub μ €μž₯μ†Œλ₯Ό μ°Έμ‘°ν•˜μ—¬ μž‘μ„±ν•˜μ˜€μŠ΅λ‹ˆλ‹€.
* https://github.com/GDG-Korea/GradleCodeLab
*/
buildscript {
repositories {
//메이븐 쀑앙 μ €μž₯μ†Œλ₯Ό μ‚¬μš©ν•˜λ„λ‘ λͺ…μ‹œ
mavenCentral()
@sukso96100
sukso96100 / PassRemoteViews
Created July 13, 2014 15:11
Passing Remoteview using BroadcastReceiver
=========================
package com.youngbin.assistscreen.plugin;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;
@sukso96100
sukso96100 / install_android_studio.sh
Last active August 29, 2015 14:06
Android Studio Install Script for Ubuntu
#!bin/sh
echo "========================================"
echo "===================="
echo "Android Studio Install Script"
echo "===================="
echo ""
echo "===================="
echo "Adding PPAs..."
echo "===================="
@sukso96100
sukso96100 / relay.py
Created June 18, 2015 15:56
Raspberry Pi Model B+ 8 Channel Relay Module Test
import RPi.GPIO as GPIO
import time
print "Ready?"
time.sleep(5)
print "Setting GPIO Mode as BCM"
GPIO.setmode(GPIO.BCM)
print "Setting Up GPIO from 2 to 9"
@sukso96100
sukso96100 / armnode.sh
Last active August 29, 2015 14:25
Node.js for Raspberry Pi Building Script
#!/bin/sh
make clean
export PATH=~/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin:$PATH
export AR=arm-linux-gnueabihf-ar
export CC=arm-linux-gnueabihf-gcc
export CXX=arm-linux-gnueabihf-g++
export LINK=arm-linux-gnueabihf-g++
./configure --without-snapshot --dest-cpu=arm --dest-os=linux
make -j4