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
set -Ceu | |
PACKAGE_DIR=$( | |
cd "$(dirname "$0")/.." || exit 1 | |
pwd | |
) | |
cd "${PACKAGE_DIR}" || exit 1 | |
DERIVED_DATA_PATH=".build" | |
OUTPUT="XCFrameworks" |
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 Foundation | |
@dynamicMemberLookup | |
struct DynamicMemberWrap<T: AnyObject> { | |
private var value: T | |
init(_ value: T) { | |
self.value = value | |
} | |
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
# add the following code to your .bashrc | |
sudo() { | |
local ARGS="${@:1}" | |
while (( $# > 0 )) | |
do | |
case $1 in | |
-u | --user | --user=*) | |
if [[ "$1" =~ ^--user= ]]; then | |
local SELECTED_USER=$(echo $1 | sed -e 's/^--user=//') |
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
Function multiplication(a, x) | |
Dim ans() As Double | |
ReDim ans(UBound(a), UBound(x, 2)) | |
For i = 1 To UBound(a) | |
For j = 1 To UBound(x, 2) | |
ans(i, j) = 0 | |
For k = 1 To UBound(a, 2) | |
ans(i, j) = ans(i, j) + a(i, k) * x(k, j) | |
Next | |
Next j |