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
#!/usr/bin/env bash | |
set -euo pipefail | |
MIRRORLIST_FILE="/etc/pacman.d/mirrorlist" | |
MIRRORLIST_URL="https://archlinux.org/mirrorlist/?country=CA&country=US&protocol=https&ip_version=4&ip_version=6&use_mirror_status=on" | |
cp $MIRRORLIST_FILE{,.bak} | |
curl "$MIRRORLIST_URL" | sed 's/#Server/Server/g' > $MIRRORLIST_FILE |
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
/** | |
* Sphere 1.x API declaration | |
* Copyright (c) 2019-2021, Eggbertx | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* * Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the following disclaimer. |
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
/** | |
* Cell, the Sphere packaging compiler | |
* Copyright (c) 2015-2021, Fat Cerberus (with some modifications by Eggbertx) | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* * Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the following disclaimer. |
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
/* | |
* PersonLib 2.0.2020-10-27 | |
* Copyright (c) 2016-2020, Eggbertx | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* 1 Redistributions of source code must retain the above copyright notice, this | |
* list of conditions and the following disclaimer. |
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
/** | |
* A class for handling vector algebra in two or three dimensions | |
* If you only need a two-dimensional vector, you can just ignore | |
* the z property and all z parameters, since they aren't required | |
* | |
* See https://en.wikipedia.org/wiki/Euclidean_vector | |
*/ | |
export class Vector { | |
/** | |
* Constructs a Vector object |
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/sh | |
set -euo pipefail | |
function usage { | |
echo "usage: $0 [-o outfile] [-m text|binary] [-i] file..." | |
echo "options:" | |
echo " -h show usage info" | |
echo " -i use xxd (usually comes with vim) to generate a C-style" | |
echo " include header rather than an object file (overrides -m)" |
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
/* | |
* miniSphere Joystick API Test | |
* (c) 2018 Eggbertx | |
*/ | |
import { Thread } from 'sphere-runtime'; | |
export default class Game extends Thread { | |
constructor() { | |
super(); |
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
// package main | |
import ( | |
"bytes" | |
"io" | |
"mime/multipart" | |
"net/http" | |
"os" | |
"strings" |
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
/* | |
* PersonLib 1.1.2018-07-09 | |
* Copyright (c) 2016-2018, Eggbertx | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* 1 Redistributions of source code must retain the above copyright notice, this | |
* list of conditions and the following disclaimer. |
NewerOlder