Skip to content

Instantly share code, notes, and snippets.

View NeedPainkiller's full-sized avatar
๐Ÿ›น
Freelancer

NeedPainkiller NeedPainkiller

๐Ÿ›น
Freelancer
View GitHub Profile
public class PermissionActivity$$IntentBuilder {
private Intent intent;
private Bundler bundler = Bundler.create();
public PermissionActivity$$IntentBuilder(Context context) {
intent = new Intent(context, PermissionActivity.class);
}
public PermissionActivity$$IntentBuilder.AllSet content(PermissionContent content) {
// ์›นํŽ˜์ด์ง€ ๋„์šฐ๊ธฐ
Uri uri = Uri.parse("http://www.google.com");
Intent it = new Intent(Intent.ACTION_VIEW,uri);
startActivity(it);
// ๊ตฌ๊ธ€๋งต ๋„์šฐ๊ธฐ
Uri uri = Uri.parse("geo:38.899533,-77.036476");
Intent it = new Intent(Intent.Action_VIEW,uri);
startActivity(it);
import subprocess
import re
import uuid
import requests
import time
from rx import Observable
import tkinter as tk
def checkTrait(c):
return (int((ord(c) - 0xAC00) % 28) != 0)
def openInput():
inputs = open('./input.txt', 'r', encoding='UTF8')
res = ''
for line in inputs:
for index, s in enumerate(line):
if(s == "์„" and checkTrait(line[index-1]) == False):
private static String nonWordsReg = "[\\W\\_]+";
private static String non = "";
private static String spaceReg = "\\s";
private static String space = " ";
private static String upper = "(\\p{Ll})(\\p{Lu})";
private static String upperGroup = "$1 $2";
public Observable<String> camelCase(String source) {
return lowerCase(source)
import cv2
import pytesseract
import win32clipboard
# tesseract commmad ๋ถˆ๋Ÿฌ์˜ค๊ธฐ
pytesseract.pytesseract.tesseract_cmd = '.\\Tesseract-OCR\\tesseract.exe'
# ๊ฒฐ๊ณผ ํ…์ŠคํŠธ ๊ฐ’ ํด๋ฆฝ๋ณด๋“œ ์ €์žฅ
def setClipboard(text):
win32clipboard.OpenClipboard()
@NeedPainkiller
NeedPainkiller / ap-northeast-2.py
Created April 9, 2018 15:23
AWS ap-northeast-2 ping test
import uuid
import requests
import time
from rx import Observable
class AWS:
def check(self):
link = "http://dynamodb.ap-northeast-2.amazonaws.com/ping?x="
return Observable.interval(2000)\

1์žฅ. ๋กœ๋”ฉ๊ณผ ์‹คํ–‰

1 - 1. ์Šคํฌ๋ฆฝํŠธ์˜ ์œ„์น˜

๋ชจ๋“  <script> ํƒœ๊ทธ๋“ค์€ ํŽ˜์ด์ง€์˜ ๊ฐ€์žฅ ๋งˆ์ง€๋ง‰์—, </body> ํƒœ๊ทธ์˜ ๋ฐ”๋กœ ์œ„์— ์„ ์–ธํ•  ๊ฒƒ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰ํ•˜๊ธฐ ์ด์ „์— ํŽ˜์ด์ง€๋ฅผ ๋ชจ๋‘ ํ‘œ์‹œํ•  ์ˆ˜ ์žˆ๋‹ค

- ํŽ˜์ด์ง€ ๋ Œ๋”๋ง ๋ณด๋‹ค ์Šคํฌ๋ฆฝํŠธ ๋กœ๋”ฉ์„ ๋จผ์ € ํ•  ๊ฒฝ์šฐ ์ฝ”๋“œ์˜ ๋กœ๋”ฉ ๋ฐ ์‹คํ–‰์œผ๋กœ ์ธํ•ด ์ฒด๊ฐ ์†๋„๊ฐ€ ๋–จ์–ด์ง„๋‹ค
- ์ตœ์‹  ๋ธŒ๋ผ์šฐ์ €๋Š” ๋‹ค์ค‘ ์Šคํฌ๋ฆฝํŠธ ๋กœ๋”ฉ์„ ์ง€์› ํ•˜์ง€๋งŒ, ๋‹ค๋ฅธ ์ด๋ฏธ์ง€์™€ ๊ฐ™์€ Asset ๋“ค์€ ๊ทธ๋ ‡์ง€ ๋ชปํ•˜๋‹ค
- ํ—ˆ๋‚˜ ์ผ๋ฐ˜์ ์ธ ์Šคํฌ๋ฆฝํŠธ ๋กœ๋”ฉ์€ <head> ํƒœ๊ทธ์— ๋‘๋Š” ๊ฒƒ์ด ์•ˆ์ „ํ•˜๊ณ  

ํ•ด๋‹น ์Šคํฌ๋ฆฝํŠธ๊ฐ€ ํŽ˜์ด์ง€ ๋กœ๋“œ์ค‘์— ์‹คํ–‰๋˜์•ผ ํ•  ๊ฒฝ์šฐ ๋”์šฑ ๊ทธ๋ ‡๋‹ค

Fork & Edit From Docker ์น˜ํŠธ ์‹œํŠธ by nacyot

์ปจํ…Œ์ด๋„ˆ

๋ผ์ดํ”„ ์‚ฌ์ดํด

version: '2.1'
services:
server:
image: server:0.1.2
container_name: server
ports:
- "8080:8080"
- "8081:8081"
stdin_open: true