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 / gist:2e901cb156f54a5e4bcc
Created September 23, 2015 11:54
Result of Definite Integration / 정적분 결과
다음 식을 구분구적법 방법으로 정적분 합니다. x^2+4*x
2부터 4까지 정적분 합니다.
구간의 길이를 2000 으로 나눠서 정적분 합니다.
정적분을 시작 합니다.
++++++++++
==========
x값은 2, y값은 8 입니다.
가로길이 값은 0.001, 세로길이 값은 8 입니다.
넓이값은 0.008 입니다.
지금까지의 넓이합은 0.008입니다.
#!/bin/sh
sudo pacman -Syu
sudo pacman -S fcitx fcitx-im fcitx-qt5 fcitx-hangul firefox firefox-i18n-ko fish
yaourt -S jdk paper-icon-theme-git mdm-display-manager freshplayerplugin
sudo systemctl disable lightdm
sudo systemctl enable mdm
@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
@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 / 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 / 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 / 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()
/*
* 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,
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;
@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