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
#importing pip like this will fail in the future, should be replaced. | |
for n in range(1): | |
try: | |
import pip | |
except ImportError as missing: | |
print("You don't have pip. Exiting...") | |
exit() | |
#install package function | |
def install(package): |
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 | |
name=$0 | |
if [ -z "$1" ] | |
then | |
echo "Usage:" | |
echo $name "[username]" | |
else | |
wget https://minecraftskinstealer.com/api/v1/skin/download/skin/$1 -O $1.png | |
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
#importing pip like this will fail in the future, should be replaced. | |
for n in range(1): | |
try: | |
import pip | |
except ImportError as missing: | |
print("You don't have pip. Exiting...") | |
exit() | |
#install package function | |
def install(package): |
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
--[[ | |
PERLIN NOISE TERRAIN GENERATION | |
This script generates terrain using Roblox's built-in math.noise() function. | |
It creates small parts, which will act as terrain. | |
TO DO: | |
-Render around the player instead of rendering everything! | |
-Infinite worlds |
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
/* bomberfish */ | |
/* Basic Styling */ | |
@import url('https://fonts.googleapis.com/css2?family=PT+Mono&display=swap'); | |
html, | |
html.light { | |
--bg: #ebebeb; | |
--bg2: #fdfdfd; | |
--fg: #2e2e2e; | |
--mg: #c9c9c9; |
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 | |
isMachO() { | |
if [[ $(file "$1") == *Mach-O* ]]; then | |
return 0 | |
else | |
return 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
/// Rewrite of https://gist.github.com/leminlimez/ed3e3ee3a287c503c5b834acdc0dfcdc in Swift (the superior language) | |
/// NOTE: To use IOKit, you need to create a bridging header with the following contents: `#include <IOKit/IOKitLib.h>` | |
/// This requires you to have the (private) `systemgroup.com.apple.powerlog` entitlement. | |
func getBatteryInfo() throws -> [String:Any] { | |
var service: io_service_t? // Battery IOService | |
service = IOServiceGetMatchingService(kIOMainPortDefault, IOServiceMatching("AppleSmartBattery")) // iPhone 11+ | |
if service == nil { | |
service = IOServiceGetMatchingService(kIOMainPortDefault, IOServiceMatching("IOPMPowerSource")) // Earlier iPhones | |
} | |
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
:root { | |
--color-main-background: #11111b !important; | |
--color-main-background-rgb: 17, 17, 27 !important; | |
/* --color-main-background-translucent: rgba( | |
var(--color-main-background-rgb), | |
0.96 | |
)!important; | |
--color-main-background-blur: rgba(var(--color-main-background-rgb), 0.8)!important; | |
--gradient-main-background: var(--color-main-background) 0%, | |
var(--color-main-background-translucent) 85%, transparent 100%!important; */ |
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 SwiftUI | |
import UniformTypeIdentifiers | |
struct DocumentPicker: UIViewControllerRepresentable { | |
@Binding var filePath: URL? | |
var utTypes: [UTType] | |
func makeCoordinator() -> DocumentPicker.Coordinator { | |
return DocumentPicker.Coordinator(parent1: self) |