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
public class DaemonThread implements Runnable { | |
public static void main(String[] args) { | |
Thread th = new Thread(new DaemonThread()); | |
th.setDaemon(true); | |
th.start(); | |
try { | |
Thread.sleep(1000); | |
} catch (InterruptedException e) { | |
e.printStackTrace(); |
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
print ("test") | |
temp = input("input : ") | |
print (temp) | |
# ctrl+k,I : gist 보내기 | |
# ctrl+k,O : gist 불러오기 | |
# ctrl+k,S : gist 업데이트 |
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
# -*- coding: UTF-8 -*- | |
from bs4 import BeautifulSoup | |
import codecs | |
def get_html(): | |
with codecs.open('melon_weekly.html', 'r', "utf-8") as f: | |
html = f.read() | |
return html | |
def extract_chart(): |
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
public class ThreadHandlerTest extends Activity { | |
TextView tvTest; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_test); | |
tvTest = (TextView) findViewById(R.id.tv_test); |
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
public class ThreadHandlerTest extends Activity { | |
TextView tvTest; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_test); | |
tvTest = (TextView) findViewById(R.id.tv_test); |
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
public class ThreadHandlerTest extends Activity { | |
TextView tvTest; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_test); | |
tvTest = (TextView) findViewById(R.id.tv_test); |
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
def factorial(x): | |
if(x == 1): | |
return x | |
return x * factorial(x-1) |
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
import android.app.Activity; | |
import android.app.AlertDialog; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.content.Intent; | |
import android.location.Location; | |
import android.location.LocationListener; | |
import android.location.LocationManager; | |
import android.os.Bundle; | |
import android.os.Handler; |
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
#include <WinSock2.h> | |
#include <stdio.h> | |
int main(int argc, char **argv) { | |
WSADATA WSAData; | |
struct hostent *myent; | |
// B. 인터넷 주소를 가져오지 못할 경우 에러 처리. | |
if(argc != 2) { | |
printf("Usage : %s [ineternet address]\n", argv[0]); |
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
# 각종 설정 | |
Preferences > Settings - User > 아래 내용 저장 | |
------------------------------------------------------------ | |
{ | |
"font_face":"Bitstream Vera Sans Mono", // 폰트 | |
"font_size":11, // 폰트 사이즈 | |
"ignored_packages": | |
[ | |
"Vintage" | |
], |
OlderNewer