Skip to content

Instantly share code, notes, and snippets.

View Erisa's full-sized avatar
💕

Erisa A Erisa

💕
View GitHub Profile
@Erisa
Erisa / eventcopy.rb
Last active April 29, 2017 20:02
[RMVXA] Fixed script to copy event from a different map. All credit to original author.
#==============================================================================
# ** Game_Event
#------------------------------------------------------------------------------
# This class handles events. Functions include event page switching via
# condition determinants and running parallel process events. Used within the
# Game_Map class.
#==============================================================================
class Game_Event < Game_Character
attr_accessor :id
print("-=-=-=-=-=-=-=-=-=-=-")
print("= Welcome to quiz!! =")
print("-=-=-=-=-=-=-=-=-=-=-")
print()
score = 0
question = 1
print("[- Question 1 -]")
print("Q -- Into which sea does the Nile flow?")
print("A: Amundsen")
@Erisa
Erisa / procedural_demo.py
Last active January 11, 2018 00:44
Some assignment for some college thing :teehee:
print("┌-────────────────────────────-┐ _ ")
print("│ Procedural Programming Demo │ ( ) _ ")
print("│ With Python! │ (_` )_('> ")
print("├─────────────────────────────-┤ (__,~_)8 ")
print("│ │ _YY_ ")
print('""""|""|""^^^|^^^^^^^^^^^"""|""^^^^^^^"""|"^')
def procedure_demo():
print("\n\nThis demo is actually a procedure in itself, but lets demo one anyway!")
print("(Comments will help here")
@Erisa
Erisa / pwsh-u1804.sh
Last active December 28, 2019 11:10
Install Powershell on Ubuntu 18.04 x64
# https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-6#ubuntu-1804
# Download the Microsoft repository GPG keys
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
# Register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb
rm -v packages-microsoft-prod.deb
# Update the list of products
@Erisa
Erisa / prompt.ps1
Last active January 1, 2020 10:03 — forked from Ovyerus/prompt-preview.png
Hot powershell prompt
function prompt {
$lastCmdFailed = !$?;
$asciiSymbols = $true # If your terminal doesn't display unicode properly
# Cause $IsWindows and shit doesn't exist on current Windows Powershell version
$windows = $IsWindows -or $env:OS -eq 'Windows_NT'
if ($windows) {
$admin = [bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match 'S-1-5-32-544')
$name = $env:UserName
@Erisa
Erisa / _switch_variable_logger.md
Last active January 18, 2020 12:11
Seriel ~ Switch/Variable Logger

Important

These scripts/plugins are now being stored on the Erisa/RPG-Maker-Scripts repository, check there for the newest versions.

@Erisa
Erisa / _dt_autosave.md
Last active January 18, 2020 12:18
DT's autosave but cleaned and has disable option

Important

These scripts/plugins are now being stored on the Erisa/RPG-Maker-Scripts repository, check there for the newest versions.

@Erisa
Erisa / wgi.ps1
Created May 30, 2020 06:31
wgi: install multiple winget packages at once
$numOfArgs = $args.Length
for ($i=1; $i -le $numOfArgs; $i++)
{
$target = $($args[$i-1])
write-host "Trying: $($target)"
winget install $args[$i-1]
write-host "Finished trying: $($target)"
}
@Erisa
Erisa / config.fish
Created February 16, 2020 01:12 — forked from Ovyerus/config.fish
Sexy fish prompt
set -g symb '▲'
set -g leading_brace 0
set -g has_launched 0
function git_info
set -l branch (git rev-parse --abbrev-ref HEAD 2> /dev/null)
printf "%s(%s%s%s)" $c0 $c1 $branch $c0
set -l changes (git status --porcelain --ignore-submodules 2> /dev/null)
@Erisa
Erisa / profile.json
Last active August 7, 2020 04:21
Windows Terminal Config
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"snapToGridOnResize": false,
"profiles": {
"defaults": {
"fontFace": "Cascadia Code",
"useAcrylic": true,
"padding": "0, 0, 0, 0",
"colorScheme": "One Half Dark",