Skip to content

Instantly share code, notes, and snippets.

View Kaleidosium's full-sized avatar

Dania Rifki Kaleidosium

View GitHub Profile
@Kaleidosium
Kaleidosium / PythonBotTemplate.py
Last active November 14, 2018 12:34
Template for a Python 3 Reddit Bot
import praw #Make sure you have Praw already, if not get it from here https://pypi.org/project/praw/ .
#Also make sure to put the Text in the Quotes.
def bot_login():
print ("Logging in...")
r = praw.Reddit(username = "", #Insert Reddit Username here, must be an actual account.
password = "", #Insert Reddit Account's Password.
client_id = "", #Put the line below the personal use script text here.
client_secret ="", #Put the secret here.
user_agent = "") #Put whatever here.
print ("Logged in!")
import discord
TOKEN = '' #removed because i don't want to spoil my tokens
client = discord.Client()
@client.event
async def on_message(message):
# don't want the bot to reply to itself
if message.author == client.user:
import os
import random
import time
import praw
import discord
from discord.ext import commands
from ebaysdk.exception import ConnectionError

The Importance of the Ring Menu system

History

The Ring menu system was an innovative menu system. It was first made in 1969 with the PIXIE system. In 1986, Mike Gallaher and Don Hopkins together independently arrived at the concept of a context menu based on the angle to the origin where the exact angle and radius could be passed as parameters to a command, or the radius could be used to trigger a submenu. The Action RPG video game Secret of Mana popularized the menu system, featuring an innovative icon-based ring menu in 1993. Its ring meu system was adopted by later video games

Usage

import os
import random
import time
import praw
import discord
from discord.ext import commands
from discord.utils import get
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.
<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-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 {
@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,
@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. */