Skip to content

Instantly share code, notes, and snippets.

@tsukanov-as
tsukanov-as / lujlu.lua
Created May 5, 2021 23:06 — forked from meepen/lujlu.lua
LuaJit VM in Lua. Comes with fully operational bytecode interpreter. License is: contact me before using it commercially. - Now runs itself inside itself and itself inside itself inside itself
local bytecodes = {}
local BC, run_function = {}
local VARG_CONST = {}
local lujlu_mt_funcs
local lujlu_cache = setmetatable({}, {__mode = "k"})
local lujlu_identifier_mt = {
__tostring = function(self)
return tostring(lujlu_cache[self].data)
end,
@tsukanov-as
tsukanov-as / README.md
Created December 24, 2020 08:34 — forked from physacco/README.md
Python 3 extension example

Python 3 extension example

Build

python3 setup.py build

Output: build/lib.macosx-10.11-x86_64-3.5/hello.cpython-35m-darwin.so

Run

@tsukanov-as
tsukanov-as / truffle-material.md
Created June 2, 2019 17:00 — forked from smarr/truffle-material.md
Truffle: Languages and Material
@tsukanov-as
tsukanov-as / readme.md
Created September 27, 2018 20:11 — forked from artbear/readme.md
Как регулярными выражениями искать в Visual Studio Code многострочные строки - в т.ч. и пустые строки

В окне модуля - Ctrl+F

  • ^Процедура\s+[a-zA-Z0-9А-Яа-яёЁ_]+\(\)\s+Экспорт\s*\n\s*КонецПроцедуры
    • используем \n

В окне поиска файлов - Ctrl+Shift+F

  • ^Процедура\s+[a-zA-Z0-9А-Яа-яёЁ_]+\(\)\s+Экспорт\s*$[^\n]*\s*КонецПроцедуры
    • не используем \n
@tsukanov-as
tsukanov-as / uia-sample.ps1
Created September 26, 2018 18:16 — forked from xiongjia/uia-sample.ps1
A simple sample for access the MS UIAutomation in PowerShell. #devsample #win
#REQUIRES -Version 3.0
# This is a simple sample for access the MS UIAutomation in PowerShell.
# In this sample:
# 1. Load the MS UIA via System.Reflection.Assembly
# 2. Launch the AUT ( calc.exe )
# 3. Find the AutomationElement via the AUT Process Id
# 4. Find buttons via 'ClassName' and 'Name' property
# 5. Click the '1', '+', '1', '=' buttons.
# At last, we will get '2' in the result of calc App.