Autohotkey library supports DllCall()
and it can call dll with standard decl
feature of c dll. However, typical c# library runs on IL
and cannot be called from autohotkey. To support standard dll call, DllExport
package is required in Visual Studio.
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
loop (i,1,5) { | |
wcol(j+i-1)=wcol(i)/max(wcol(i)); | |
} |
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 psutil | |
import csv | |
import datetime, time, locale | |
import os | |
def getCurrentTimeForFileName(): | |
"""Gets the current time in YYYYMMDDhhmmss format.""" | |
now = datetime.datetime.now() | |
return now.strftime("%Y%m%d_%H%M%S") |
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
#Requires AutoHotkey v2.0 | |
; what's modified in v2 ref: https://blog.naver.com/550sn/223304085896 | |
; #NoEnv ; performance enhancement but default in ahk v2 | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
; SendMode Input ; Recommended for new scripts due to its superior speed and reliability but default in ahk v2 | |
SetWorkingDir A_ScriptDir ; Ensures a consistent starting directory. A_ScriptDir is built-in variable in ahk v2 | |
^Numpad1:: Run "Notepad" | |
^Numpad2:: Run "mspaint" | |
^Numpad3:: Run "shell:appsfolder\Microsoft.Whiteboard_8wekyb3d8bbwe!Whiteboard" |
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
const tableBody = document.getElementById('gsc_a_b'); | |
const rows= tableBody.querySelectorAll('tr'); | |
const rowdata = []; | |
rows.forEach(row => { | |
const cells = row.querySelectorAll('td'); | |
const title = cells[0].querySelector('a').textContent; | |
const authors = cells[0].querySelector('.gs_gray').textContent.trim(); | |
const journal = cells[0].querySelectorAll('.gs_gray')[1].textContent.trim(); | |
const citations = cells[1].querySelector('a').textContent; | |
const year = cells[2].textContent; |
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 urllib.request, datetime, os | |
# This code executes many http get requests in short time | |
# So don't abuse it | |
NumPages = 20 | |
startTime = datetime.datetime.now() | |
if startTime.hour < 11: | |
dirName = (startTime - datetime.timedelta(days=1)).strftime('%Y%m%d') | |
else: |
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
# 자동 재분 업데이트 ref: https://tales.nexon.com/News/DevNote/698?pageSize=20 | |
# 1~255 ref: https://tw-chapter.tistory.com/230 | |
# 원래 테일즈 가이드북에 있었으나 현재 소실된것으로 추정 | |
# 255~310 ref: https://blog.naver.com/tatelulove4 | |
# 직접 눌러보면서 구현된 것 리버스 엔지니어링 | |
2~6 = 2 | |
7~22 = 3 | |
23~48 = 4 | |
49~80 = 5 | |
81~129 = 6 |
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
Wavelength(nm) Relative_spectral_irradiance(a.u.) | |
166.7 10.1667 | |
167.18 12.3333 | |
167.659 17.1111 | |
168.139 21.8889 | |
168.618 24.5556 | |
169.098 23.5556 | |
169.577 21.6667 | |
170.057 20.5556 | |
170.536 21.3333 |
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 os | |
import openai | |
openai.api_key = os.getenv("OPENAI_API_KEY") | |
# https://cloud.google.com/translate/docs/basic/quickstart?hl=ko | |
def translate_text(target, text): | |
"""Translates text into the target language. | |
Target must be an ISO 639-1 language code. | |
See https://g.co/cloud/translate/v2/translate-reference#supported_languages |
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
% ref: https://kr.mathworks.com/matlabcentral/answers/719-declaring-many-variables-from-work-space-into-function-workspace | |
%% Init | |
close all; clear; clc; disp(mfilename); | |
N=5; | |
%% Main | |
S = struct; | |
S.increment = 1; | |
S.x = 0; | |
S = allocatelargevariable(S); |
NewerOlder