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
#!/bin/bash | |
set -euo pipefail | |
# Ensure mkvmerge is installed | |
if ! command -v mkvmerge &> /dev/null; then | |
echo "Error: mkvmerge is not installed. Please install it first." | |
exit 1 | |
fi |
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
export component Demo { | |
Rectangle { | |
init => { | |
// This line crashes | |
debug(self.absolute-position.y); | |
} | |
} | |
} |
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
struct Port { | |
x: length, | |
y: length, | |
name: string, | |
} | |
component Node inherits Rectangle { | |
in-out property <[Port]> ports; | |
private property <Port> port: ports[0]; |
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
/* | |
* 1) Download CocoaHTTPServer from Github: https://github.com/robbiehanson/CocoaHTTPServer | |
* 2) Include the downloaded source (except the samples) in your project | |
* 3) Define the SCREENCAST macro for the target/configuration you want to enable the screencast for (SCREENCAST=1) | |
* 4) Add the code below to your main.m file before the main() method | |
*/ | |
#if SCREENCAST | |
#import "HTTPServer.h" | |
#import "HTTPConnection.h" |
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
#!/bin/bash | |
# USAGE: sign.sh INPUT CERTIFICATE_NAME PROVISIONING_PROFILE_FILE OUTPUT [optional: BUNDLE_ID] | |
SOURCEIPA="$1" | |
DEVELOPER="$2" | |
MOBILEPROV="$3" | |
TARGET="$4" | |
BUNDLEID="$5" | |