Skip to content

Instantly share code, notes, and snippets.

View Kaleidosium's full-sized avatar

Dania Rifki Kaleidosium

View GitHub Profile
@Kaleidosium
Kaleidosium / How I design Robot Furries.md
Last active January 6, 2023 11:10
An opinionated guide to designing Robot Furries.
@Kaleidosium
Kaleidosium / transgolf.js
Created February 11, 2022 06:25
[Code Golf] Trans Flag in JavaScript Browser Console
console.log(`%c `.repeat(5),...`5CFFABFFFFAB5CF`.match(/.../g).map(c=>`background:#${c};display:block;padding:2%26%`))
@Kaleidosium
Kaleidosium / BudapestMetroMap.bas
Created April 26, 2021 01:04
Budapest Metro Map
5 HOME:HGR2
10 HCOLOR=5:REM Orange OR Red Line
20 HPLOT 0,81 TO 0,72
30 HPLOT 0,72 TO 9,63
40 HPLOT 9,63 TO 36,63
50 HPLOT 36,63 TO 63,90
60 HPLOT 63,90 TO 108,90
110 HCOLOR=2:REM Purple OR Yellow Line
@Kaleidosium
Kaleidosium / UX.md
Last active October 17, 2020 14:46
A list of great UX and Accessibility resources
@Kaleidosium
Kaleidosium / fix_github.css
Last active July 2, 2020 20:47
Fix New GitHub Design Issues
/* ==UserStyle==
@name Fix New GitHub Design Issues
@namespace iamrifki
@version 1.0.1
@description Fixes several things I dislike about the new GitHub redesign
@author Dania Rifki <iamrifki0@gmail.com>
==/UserStyle== */
@-moz-document url-prefix("https://github.com/"), url-prefix("https://gist.github.com/") {
/* Add separators back to the file list. */
@Kaleidosium
Kaleidosium / ecosia-scraper.js
Last active March 25, 2020 02:41
IamRifki's Ecosia Scraper.
/**
* ecosia-scraper (c) MIT Dania Rifki <iamrifki0@gmail.com>
*
* # Prelude:
* Back in 2019, I was introduced to the Ecosia search engine
* I never really liked it, it was pretty terrible in my opinion.
* Search results are pretty eh, and image results frequently pops up unwanted images.
*
* In 2020, I decided to use it for an image scraping project, why you ask?
* Since nobody uses it anymore, Search results come faster than Bing,
Import-Module 'C:\tools\poshgit\dahlbyk-posh-git-9bda399\src\posh-git.psd1'
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
function global:prompt {
<NotepadPlus>
<UserLang name="CCScript" ext="ccs" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="yes" Keywords5="yes" Keywords6="yes" Keywords7="yes" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00// 01 02 03/* 04*/</Keywords>
<Keywords name="Numbers, prefix1">0x</Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
import asm65816
import asmref
// Item Auto Revive Party by D-Man
/*
This script auto revives party members if an item was used during battle that allows the party to auto revive. Auto revives to only the first downed party member. Does not work for NPC character
How the item will function is that it'll zero out the Vitality stat of each player's combatant table since Vitaltiy and IQ aren't considered in any of the damage calulations or battle actions. Then, it'll set that byte to 1 to indicate that they have the chance to revive. This will be done for all controllable characters and not to NPC characters like Pokey and King.
import os
import random
import time
import praw
import discord
from discord.ext import commands
from discord.utils import get