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 cv2 | |
| import pytesseract | |
| import win32clipboard | |
| # tesseract commmad 불러오기 | |
| pytesseract.pytesseract.tesseract_cmd = '.\\Tesseract-OCR\\tesseract.exe' | |
| # 결과 텍스트 값 클립보드 저장 | |
| def setClipboard(text): | |
| win32clipboard.OpenClipboard() |
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
| 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) |
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 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): |
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 subprocess | |
| import re | |
| import uuid | |
| import requests | |
| import time | |
| from rx import Observable | |
| import tkinter as tk |
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
| // 웹페이지 띄우기 | |
| 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); |
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 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) { |
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 Henson { | |
| private Henson() { | |
| } | |
| public static WithContextSetState with(Context context) { | |
| return new com.orca.kam.rxpermission.Henson.WithContextSetState(context); | |
| } | |
| public static class WithContextSetState { | |
| private Context context; |
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
| private void startPermissionActivity(Context context, PermissionContent content) { | |
| Intent intent = Henson.with(context) | |
| .gotoPermissionActivity() | |
| .content(content).build(); | |
| context.startActivity(intent); | |
| } |
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 PermissionActivity extends AppCompatActivity { | |
| @InjectExtra PermissionContent content; | |
| @Nullable @InjectExtra String tag = "TAG"; | |
| @Override protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| Dart.inject(this); | |
| Bundle bundle = getIntent().getExtras(); |
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 static android.Manifest.permission.*; | |
| ... | |
| ... | |
| ... | |
| private AndroidPermission androidPermission; | |
| androidPermission.requestPermission(CAMERA,INTERNET, | |
| ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION) | |
| .subscribe(deniedPermissions -> { | |
| for (String deniedPermission : deniedPermissions) { | |
| Log.d("Permission Denial",deniedPermission); |