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
using Luxor | |
function make_path() | |
A = Point(-50, 0) | |
B = Point(50, 0) | |
C = Point(50, -100) | |
D = Point(150, -100) | |
move(A) |
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
using Base64 | |
using Nettle | |
using Dates | |
sha256(data) = Nettle.digest("sha256", data) | |
sha256(data, key) = Nettle.digest("sha256", key, data) | |
function get_header(headers, key) | |
for (keyi, value) in headers |
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
using JSON3 | |
using Base64 | |
using Nettle | |
using Dates | |
sha256(data) = Nettle.digest("sha256", data) | |
sha256(data, key) = Nettle.digest("sha256", key, data) | |
function verifyRequest(request, secretBase64::String) | |
method = request["method"] |
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
#!/bin/bash | |
set -e | |
info() { | |
local GREEN="\033[0;32m" | |
local NO_COLOR="\033[0m" # No color (reset to default) | |
echo -e "${GREEN}INFO: $*${NO_COLOR}" | |
} | |
APPDIR="$1" |
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
param ( | |
[string]$Archive, | |
[string]$MSIX, | |
[string]$Password | |
) | |
New-Alias -Name makeappx -Value "C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x64\makeappx.exe" | |
New-Alias -Name signtool -Value "C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x64\signtool.exe" | |
New-Alias -Name editbin -Value "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\editbin.exe" |
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
(require 'ox) | |
(require 'cl-lib) | |
(require 'cl) | |
(setq make-backup-files nil) ;; No need for backup files | |
(defvar my-base-directory (concat (file-name-directory load-file-name) "org") | |
"Org sources are taken from folder org relative to this file") | |
(defvar my-publishing-directory (concat (file-name-directory load-file-name) "html") | |
"Everything is published in folder html relative to this file") |
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
#https://www.rfc-editor.org/rfc/rfc7515#appendix-A.3 | |
using CryptoGroups | |
using CryptoSignatures | |
using Base64 | |
base64url_decode(x) = replace(x, "_" => "/", "-" => "+") |> base64decode | |
base64url_encode(x) = replace(base64encode(x), "/" => "_", "+" => "-") | |
# Reading in from JSON Web Key string |
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
# Let's test that the curve is on the | |
# https://www.herongyang.com/EC-Cryptography/Curve-secp256r1-for-256-Bit-ECC-Keys.html | |
using CryptoGroups | |
using Base64 | |
curve = CryptoGroups.curve("secp256r1") | |
P_256 = specialize(ECPoint, curve) | |
g = convert(P_256, generator(curve)) |
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 QtQuick | |
import QtQuick.Window | |
import QtQuick.Controls | |
Window { | |
id: app | |
width: 550 | |
height: 700 |
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 QtQuick | |
import QtQuick.Window | |
import QtQuick.Controls | |
import org.julialang | |
Window { | |
id : window |
NewerOlder