Skip to content

Instantly share code, notes, and snippets.

View Jammyjamjamman's full-sized avatar
👻

James Sherratt Jammyjamjamman

👻
  • Alpha Centauri
View GitHub Profile
import os
import shutil
def fix_files(folder):
print("Fixing filenames and paths...")
files = os.listdir(folder)
for f in files:
src = os.path.join(folder, f)
@Jammyjamjamman
Jammyjamjamman / .jl
Last active July 31, 2019 09:07
v important code
# ʇʇɐɹɹǝɥS sǝɯɐſ :ɹoɥʇn∀
# 3ʌ ˥Ԁƃ :ǝsuǝɔı˥
pr̢̛͊͑̏̃̓̒̽͠i̧҉ń̛́̌ͣͭ̌ͨ̂̑͊̉ͥ͂͌͘͡t̵̋͂̍̋ͣ̂͂ͮ̏̒̍̓͋͑́̕l̶nͮͦͧ͛̑ͯ͛ͣ🐬 = println
≡ = ==
🍖 = 0
😹 = 1
👀 = 2
🖕 = zeros
@Jammyjamjamman
Jammyjamjamman / .rs
Created July 28, 2019 01:07
infer type
struct Item {
name: String,
weight: String,
mass: u64,
}
fn main() {
println!("Hello, world!");
@Jammyjamjamman
Jammyjamjamman / .bash
Created June 30, 2019 22:19
some tests...
$RMW_TEST_CMD_STRING --verbose $HOME/somefiles
test_result $?
echo " == Should not work if '-f' isn't used"
output=`echo "y" | $RMW_ALT_TEST_CMD_STRING --purge -e`
test "$output" = "purge has been skipped: use -f or --force"
test_result $?
echo " == Should not work if '--purge' isn't used"
output=`echo "y" | $RMW_TEST_CMD_STRING -ffe`