Skip to content

Instantly share code, notes, and snippets.

View Omay238's full-sized avatar
🕳️
head empty

Omay Omay238

🕳️
head empty
View GitHub Profile
/*
@title: Sprig Level Design Challenge
@tags: []
@img: ""
@addedOn: 2024-03-28
@author:
*/
var px = 1;
var py = 1;
@Omay238
Omay238 / aseprite-build.bat
Created March 24, 2024 00:37
You will need dependencies on the aseprite page at https://github.com/aseprite/aseprite/blob/main/INSTALL.md#dependencies. Skia is not required, as it is installed by the script.
@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
@Omay238
Omay238 / aseprite-build.sh
Last active March 19, 2024 20:18
You will need dependencies on the aseprite page at https://github.com/aseprite/aseprite/blob/main/INSTALL.md#dependencies. Skia is not required, as it is installed by the script.
#!/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"
@Omay238
Omay238 / pychat_client.py
Created July 30, 2023 21:56
Client for a silly chat program
import socket
import threading
import sys
def receive_messages(client_socket):
while True:
try:
message = client_socket.recv(1024).decode('utf-8')
print(message)
@Omay238
Omay238 / pychat_server.py
Last active July 30, 2023 21:56
Server for a silly chat program
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
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 is for my SWiFT camp.
print("SWiFT camp session 1\n\n")
print("\n\nHello World Part 1\n")
print("Hello, World!")
# 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|#|@|\$|;|,|''|\{|\}|\(|\)|"|`|\||<|>|&','`$&'
# 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
# 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