Skip to content

Instantly share code, notes, and snippets.

View l3gacyb3ta's full-sized avatar
😺
uwu

Arcade Wise l3gacyb3ta

😺
uwu
View GitHub Profile
@l3gacyb3ta
l3gacyb3ta / fujamie.prolog
Created October 17, 2023 19:03
Little SWI Prolog thing, for an IMPOSIBLE MATH QUESTION. Jamie you're the worst.
even(X) :- 0 is mod(X, 2).
odd(X) :- 1 is mod(X, 2).
sumofdigits(X, X) :- X<10.
sumofdigits(X, Y) :- X>=10, X1 is X // 10, X2 is X mod 10, sumofdigits(X1, Y1), Y is Y1 + X2.
digit_sum(N, Base, Sum):-
digit_sum(N, Base, Sum, 0).
@l3gacyb3ta
l3gacyb3ta / rffStatus.nu
Created October 13, 2023 22:47
Nushell Radio Free Fedi Status
#!/opt/homebrew/bin/nu
# Get info from Radio Free Fedi!
let html = (curl -s 'https://radiofreefedi.net/np.php')
let track_info = (echo $html | htmlq --text ".leftR .trackT" | split column " - " | rename artist track)
let artist_url = ($html | htmlq --attribute href '.leftR a' | lines | get 1 | str trim)
let track = $"($track_info | get track | get 0) - ($track_info | get artist | get 0)"

Sinerider

A game about love and graphing

Sinerider is a game we at Hack Club have been working on for a couple months as of now (July 2022). A screenshot of the game

In it, you manipulate equations to create a curve that your player character can ride in order to progress through the levels!

History

@l3gacyb3ta
l3gacyb3ta / cloudSettings
Created October 25, 2021 19:13
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-10-25T19:13:00.284Z","extensionVersion":"v3.4.3"}
@l3gacyb3ta
l3gacyb3ta / match.py
Created July 28, 2021 00:42
People matching for hc
from math import dist
from random import shuffle
from typing import Any
class Person:
def __init__(self, name, questions : tuple):
self.name = name
self.questions = questions
self.isMatched = False
self.preferences = []
@channel <!channel>
@l3gacyb3ta
l3gacyb3ta / .zshrc
Created June 13, 2021 17:43
my zshrc
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
//SPDX-License-Identifier: WTFPL
pragma solidity >=0.4.16 <0.9.0;
contract Bet {
address payable person1;
address payable person2;
address arbiter;
event Deposit(address from, uint256 amount);
@l3gacyb3ta
l3gacyb3ta / script.js
Created May 3, 2021 15:07
Just a js script
console.log("hi")
const app = document.getElementById('root')
const container = document.createElement('div')
container.setAttribute('class', 'container')
function req() {
app.appendChild(container)
@l3gacyb3ta
l3gacyb3ta / style.css
Created April 22, 2021 16:36
CSS uploaded by scrapbook.hackclub.com/customizer
:root {
--colors-one: #000000;
--colors-two: #40c463;
--colors-three: #30a14e;
--colors-four: #216e39;
}
:root {
--colors-text: #dddddd;
--colors-background: var(--colors-darker);