This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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