Skip to content

Instantly share code, notes, and snippets.

View theangkko's full-sized avatar
😸

theangkko theangkko

😸
View GitHub Profile
@theangkko
theangkko / NeutriumJSSteam.EXCEL.yaml
Created May 9, 2022 21:26
Create a new snippet from a blank template.
name: NeutriumJSSteam
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: >-
$("#run").click(() => tryCatch(run));
async function run() {
@theangkko
theangkko / cmake-tutorial.md
Created April 25, 2023 19:28 — forked from luncliff/cmake-tutorial.md
CMake 할때 쪼오오금 도움이 되는 문서

CMake를 왜 쓰는거죠?
좋은 툴은 Visual Studio 뿐입니다. 그 이외에는 전부 사도(邪道)입니다 사도! - 작성자

주의

  • 이 문서는 CMake를 주관적으로 서술합니다
  • 이 문서를 통해 CMake를 시작하기엔 적합하지 않습니다
    https://cgold.readthedocs.io/en/latest/ 3.1 챕터까지 따라해본 이후 기본사항들을 속성으로 익히는 것을 돕기위한 보조자료로써 작성되었습니다
@theangkko
theangkko / tgJS.EXCEL.yaml
Created July 12, 2023 04:38
OfficeJS-JavaScript & Promises by theangkko
name: tgJS
description: |-
OfficeJS-JavaScript & Promises
by theangkko
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
function run() {
@theangkko
theangkko / tgCF.EXCEL.yaml
Created July 12, 2023 04:38
OfficeJS-excel custom function by theangkko
name: tgCF
description: |-
OfficeJS-excel custom function
by theangkko
host: EXCEL
api_set: {}
script:
content: >
// $("#run").click(() => tryCatch(run)); // async function run() { //
await Excel.run(async (context) => { // const sheet =
@theangkko
theangkko / Dockerfile
Created September 25, 2023 23:14 — forked from soof-golan/Dockerfile
Python + Poetry + Docker Example
FROM python:3.10 as python-base
# https://python-poetry.org/docs#ci-recommendations
ENV POETRY_VERSION=1.2.0
ENV POETRY_HOME=/opt/poetry
ENV POETRY_VENV=/opt/poetry-venv
# Tell Poetry where to place its cache and virtual environment
ENV POETRY_CACHE_DIR=/opt/.cache
Function Check-RunAsAdministrator()
{
#Get current user context
$CurrentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent())
#Check user is running the script is member of Administrator Group
if($CurrentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator))
{
Write-host "Script is running with Administrator privileges!"
}
@theangkko
theangkko / Install-ChocoWinget.ps1
Last active November 29, 2023 21:22
window-Sandbox-setup-files
Set-ExecutionPolicy Bypass ` -Scope Process ` -Force
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install git -y
# choco install googlechrome vscode -y
$progressPreference = 'silentlyContinue'
Write-Information "Downloading WinGet and its dependencies..."
Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
@theangkko
theangkko / openpyxl-sort-function.py
Last active November 24, 2023 09:55
openpyxl sort function _stackoverflow
# https://stackoverflow.com/questions/44767554/sorting-with-openpyxl
def sheet_sort_rows(ws, row_start, row_end=0, cols=None, sorter=None, reverse=False):
""" Sorts given rows of the sheet
row_start First row to be sorted
row_end Last row to be sorted (default last row)
cols Columns to be considered in sort
sorter Function that accepts a tuple of values and
returns a sortable key
# https://endjin.com/blog/2023/03/how-to-setup-python-pyenv-poetry-on-windows
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[string] $PythonVersion
)
$ErrorActionPreference = "Stop"
@theangkko
theangkko / excel_const_enum.py
Last active December 21, 2023 23:29
excel const ENUM list
# ------------------------------------------------------------------
# Excelの定数を設定
# ------------------------------------------------------------------
# https://excel-ubara.com/EXCEL/EXCEL905.html
# https://docs.microsoft.com/en-us/office/vba/api/excel(enumerations)
# https://docs.microsoft.com/ja-jp/office/vba/api/excel(enumerations)
# ------------------------------------------------------------------
# Excelの定数を取得する方法もあるようです。
# https://wacky.hatenadiary.com/entry/20091011/1255240572