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
/* | |
@title: Sprig Level Design Challenge | |
@tags: [] | |
@img: "" | |
@addedOn: 2024-03-28 | |
@author: | |
*/ | |
var px = 1; | |
var py = 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
@echo off | |
for /f "delims=" %%a in ('ver') do set OS=%%a | |
set OS=%OS:Version %=% | |
set OS=%OS:~0,3% | |
set OS=%OS:~0,3% | |
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" ( | |
set ARCH=x86_64 | |
set URL=https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-Windows-Release-x64.zip |
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 | |
OS=$(uname | tr '[:upper:]' '[:lower:]') | |
ARCH=$(uname -m) | |
if [[ $OS == "darwin" ]]; then | |
if [[ $ARCH == "x86_64" ]]; then | |
URL="https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-macOS-Release-x64.zip" | |
elif [[ $ARCH == "arm64" ]]; then | |
URL="https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-macOS-Release-arm64.zip" |
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 socket | |
import threading | |
import sys | |
def receive_messages(client_socket): | |
while True: | |
try: | |
message = client_socket.recv(1024).decode('utf-8') | |
print(message) |
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 socket | |
import threading | |
def handle_client(client_socket, address): | |
while True: | |
try: | |
data = client_socket.recv(1024).decode('utf-8') | |
if not data: | |
break |
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
def main(): | |
for i in range(1, 6): | |
print("*" * i) | |
print("\n\n") | |
for i in range(1, 6): | |
print((" " * (5 - i)) + ("*" * i)) | |
print("\n\n") |
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
# This is for my SWiFT camp. | |
print("SWiFT camp session 1\n\n") | |
print("\n\nHello World Part 1\n") | |
print("Hello, World!") | |
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
# powershell completion for packwiz -*- shell-script -*- | |
function __packwiz_debug { | |
if ($env:BASH_COMP_DEBUG_FILE) { | |
"$args" | Out-File -Append -FilePath "$env:BASH_COMP_DEBUG_FILE" | |
} | |
} | |
filter __packwiz_escapeStringWithSpecialChars { | |
$_ -replace '\s|#|@|\$|;|,|''|\{|\}|\(|\)|"|`|\||<|>|&','`$&' |
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
# fish completion for packwiz -*- shell-script -*- | |
function __packwiz_debug | |
set -l file "$BASH_COMP_DEBUG_FILE" | |
if test -n "$file" | |
echo "$argv" >> $file | |
end | |
end | |
function __packwiz_perform_completion |
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
# bash completion V2 for packwiz -*- shell-script -*- | |
__packwiz_debug() | |
{ | |
if [[ -n ${BASH_COMP_DEBUG_FILE:-} ]]; then | |
echo "$*" >> "${BASH_COMP_DEBUG_FILE}" | |
fi | |
} | |
# Macs have bash3 for which the bash-completion package doesn't include |
NewerOlder