Skip to content

Instantly share code, notes, and snippets.

View Rico040's full-sized avatar
🎶

Rico040

🎶
View GitHub Profile
@Rico040
Rico040 / nekoatsume.js
Created September 24, 2024 16:24
A little script that fetches current Neko Atsume aikotoba and posts it to Discord through webhook.
// For Japanese aikotoba, use https://hpmobile.jp/app/nekoatsume/neko_daily.php
const apiUrl = "https://hpmobile.jp/app/nekoatsume/neko_daily_en.php";
const webhookUrl =
"https://discord.com/api/webhooks/.../...";
async function fetchNekoAtsumeData() {
try {
// mimic game's get request
const response = await fetch(apiUrl, {
method: "GET",
@Rico040
Rico040 / hello-world.dart
Last active August 13, 2024 16:47
4 271 677 bytes of Hello World. Dart -> JSFuck.
void main(List<String> arguments) {
print('Hello world!');
}
@Rico040
Rico040 / danbooru-tag-counter.py
Last active March 23, 2025 08:35
some funny anime statistics stuff - use https://danbooru.donmai.us/counts/posts instead
#!/usr/bin/python
# Usage: danbooru-tag-counter.py [tags...]
import requests
import sys
import base64
# Define your username and API key
username = ""
api_key = ""
@Rico040
Rico040 / bogosort.go
Created October 24, 2022 18:46
we trust in bogosort
package main
import (
"fmt"
"math/rand"
"time"
)
func main() {
rand.Seed(time.Now().UnixNano())