Skip to content

Instantly share code, notes, and snippets.

View bethropolis's full-sized avatar
😊

Bethuel bethropolis

😊
View GitHub Profile
local iup = require("iup")
-- Helper functions
local function updateDisplay(value)
local display = iup.GetHandle("display")
local currentValue = display.value
if currentValue == "0" or currentValue == "Error" then
display.value = value
else
:root {
--primary: #6272a4; /* Dracula Purple */
--on-primary: #f8f8f2; /* Light text */
--primary-container: #44475a; /* Dark background */
--on-primary-container: #f8f8f2; /* Light text */
--secondary: #ff79c6; /* Pink */
--on-secondary: #f8f8f2; /* Light text */
--secondary-container: #bd93f9; /* Purple */
--on-secondary-container: #f8f8f2; /* Light text */
--tertiary: #f1fa8c; /* Yellow */
:root {
--primary: #8bd5ca; /* teal */
--on-primary: #000000;
--primary-container: #a6da95; /* green */
--on-primary-container: #8b4513;
--secondary: #f5bde6; /* pink */
--on-secondary: #000000;
--secondary-container: #f0c6c6; /* flamingo */
--on-secondary-container: #a0522d;
--tertiary: #eed49f; /* yellow */
@bethropolis
bethropolis / useful-forks.user.js
Created May 29, 2024 00:16
A userscript which adds a button to GitHub repositories to see useful forks of the repo.
// ==UserScript==
// @name GitHub Useful Forks
// @namespace Violentmonkey Scripts
// @version 1.0
// @author bethro
// @icon https://useful-forks.github.io/assets/useful-forks-logo.png
// @description Adds a button to GitHub repositories to see useful forks of the repo.
// @homepageURL https://github.com/bethropolis/useful-forks
// @supportURL https://github.com/bethropolis/useful-forks/issues
// @match https://github.com/*/*
[
{
"name": "Videos",
"path": "/home/username/Videos/",
"type": "directory",
"children": [
{
"name": "Movies",
"path": "/home/username/Videos/Movies",
"type": "directory",
[
{
"id": 1,
"name": "Item 1",
"previewUrl": "https://fastly.picsum.photos/id/123/200/300.jpg?hmac=uMA4z26tAYQnhW8_XlH0SoULB5z9s8tan-WCDkzbdMs"
},
{
"id": 2,
"name": "Item 2",
"previewUrl": "https://fastly.picsum.photos/id/123/200/300.jpg?hmac=uMA4z26tAYQnhW8_XlH0SoULB5z9s8tan-WCDkzbdMs"
@bethropolis
bethropolis / test.js
Last active March 7, 2024 06:24
judul ishura
// HTML snippet
const htmlSnippet = `
<div class="infozingle">
<p>
<span>
<b>Judul</b>: Ishura
</span>
</p>
</div>
`;
@bethropolis
bethropolis / main.go
Created December 19, 2023 00:01
take a sceenshot of the websites under is-a.dev domain
package main
import (
"context"
"encoding/json"
"log"
"os"
"path/filepath"
"runtime"
"sync"
import json
import random;
import os
folder_name = "Playlist"
tracks=os.listdir(folder_name)
while True:
songName = input("\n\nEnter the song or artist name(Enter q to quit): ").lower()
@bethropolis
bethropolis / song_recomendation.py
Last active October 27, 2023 19:32
a python program for getting song recommendation from a playlist.
import json
import random
playlists=["trap","hiphop"]
query = input("Enter song name or artist name: ").lower()
def load_songs(file):
file_path = file + ".json"
with open(file_path) as f:
songs = json.load(f)