Skip to content

Instantly share code, notes, and snippets.

View Kaleidosium's full-sized avatar

Dania Rifki Kaleidosium

View GitHub Profile
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

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 ebaysdk.exception import ConnectionError
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:
@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!")