Skip to content

Instantly share code, notes, and snippets.

View NanoAi's full-sized avatar
🏠
Working from home

NanoAi NanoAi

🏠
Working from home
View GitHub Profile
@NanoAi
NanoAi / elementio_modals.css
Last active October 23, 2020 16:45
A user script that makes channel topics easier to read by turning them into modals on click.
/* This CSS is added into the page by the script, I added it here for clearity. */
#modalOverlay {
position: fixed;
left: 0px;
top: 0px;
z-index: 98;
width: 100%;
height: 100%;
background-color: rgb(0, 0, 0);
opacity: 0.5;
@NanoAi
NanoAi / ElementTheme.css
Last active August 17, 2021 03:27
ElementTheme.css
/* ==UserStyle==
@name Theme for Element (Matrix Client)
@namespace github.com/openstyles/stylus
@version 1.0.0
@license unlicense
@preprocessor default
==/UserStyle== */
/* Background Application */
div.mx_MatrixChat > .mx_RoomView {
@NanoAi
NanoAi / youtubebg.js
Last active December 6, 2020 19:45
RedditBooru 4 YouTube.com
// ==UserScript==
// @name RedditBooru 4 YouTube!
// @namespace http://tampermonkey.net/
// @version 1.03
// @downloadURL https://gist.githubusercontent.com/NanoAi/8cd0fc0d069ac33018b09fc60048402e/raw/youtubebg.js
// @description Gives you a nice RedditBooru wallpaper for youtube, click on the right to go to the thread, click on the left to reverse image search.
// @author You
// @match https://www.youtube.com/*
// @grant unsafeWindow
// @run-at document-start
package red.mirai.lunaticmode.modules;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.FallingBlock;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
.mx_MatrixChat>:not(.mx_LeftPanel_container):not(.mx_ResizeHandle) {
background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(24, 27, 33, 1)), url("https://i.imgur.com/lcuHKku.png");
background-size: cover;
}
.mx_EventTile.focus-visible:focus-within .mx_EventTile_line, .mx_EventTile.mx_EventTile_actionBarFocused .mx_EventTile_line, .mx_EventTile:hover .mx_EventTile_line {
background-color: #22262e;
background-color: rgba( 0, 0, 0, 0.30 );
}
Special Interaction on the Current Server [ `play.mirai.red` ]
```
-
```
*(Interact, usually means Right Click.)*
**Campfires**: Regular camp fires, will heal you over time if you interact with them, they also remove blindness.
**Darkness**: When you're in a dark area, you will be warned, if you stay too long you will start taking damage. Getting into a well lit area will stop the damage, using a campfire will clear the blind.
@NanoAi
NanoAi / zscores.lua
Last active March 14, 2020 18:37
zscores.lua
function tableReduce(func, tbl)
local out = 0
local head = tbl[1]
local err = "May contain only numbers."
assert( type(head) == "number", err )
for _, v in next, tbl do
assert( type(v) == "number", err )
out = func(out, v)
@NanoAi
NanoAi / poe.md
Last active February 16, 2023 05:00
Info for Path of Exile starters

Feel free to get to level 12 and kill Brutus on your own. In fact I think it's a good idea as you'll actually gain some solo xp. [If you are under leveled, just grind a little, and you should be good to go!]

Things to keep note of... Always do the Medicine Chest quest and get the Quick Silver Flask for faster movement. You don't have to turn in a quest every time you complete one, and you can complete quests that you've not started yet.

Remember to pickup scrolls of wisdom and portal scrolls and junk items, as well as sort/keep track of your inventory. (Sell the junk items for scraps [that turn into scrolls]/chromatics [that you'll need like a billion of eventually]).

Note: Do not pick up junk items after you kill Brutus, you should have quite a few saved up by then plus you'd be getting more just from regular pickups now.

For your early game gear, look for Blue item names, or Yellow item names, usually Yellow will be better so try to go for those. Look for stats like + HP, and % Dama

[{"id":"529939514702168074","role":"​they/them","assignable":"1","colour":"6781385","description":"You enjoy playing the pronoun game, don't you?"},{"id":"529939346938134538","role":"​she/her","assignable":"1","colour":"10181046","description":""},{"id":"528844349778427915","role":"​BR","assignable":"1","colour":"0","description":""},{"id":"528844353301643286","role":"​OCE","assignable":"1","colour":"0","description":""},{"id":"528844350294065163","role":"​EUNE","assignable":"1","colour":"0","description":""},{"id":"528844338709659648","role":"​rose","assignable":"1","colour":"15610023","description":""},{"id":"528844362960863252","role":"​LFG-CN","assignable":"1","colour":"0","description":""},{"id":"529939463200309248","role":"​he/him","assignable":"1","colour":"3447003","description":""},{"id":"528844328685142017","role":"​seagreen","assignable":"1","colour":"1752220","description":""},{"id":"528844361572679682","role":"​LFG-SEA","assignable":"1","colour":"0","description":""},{"id":"529818398604132352","r
package red.mirai.spawnsystems;
import org.bukkit.Chunk;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;