Skip to content

Instantly share code, notes, and snippets.

View umnikos's full-sized avatar

Alex Stefanov umnikos

  • Sofia, Bulgaria
View GitHub Profile
@umnikos
umnikos / a.bf
Last active August 8, 2019 20:15
bff brainf**k interpreter crashing
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>+[<[>>+>+<<<-]>>>[<<<+>>>-]<+>>++[<++++++++++>-]<++++>>+<<<[>>+<<-]>>[>-]>[><<<<+>[-]>>->]<+<<[>-[>-]>[><<<<+>[-]+>>->]<+<<-]>[-]>-<<<[>>+[<[>>+>+<<<-]>>>[<<<+>>>-]<+>++++++++++>>+<<<[>>+<<-]>>[>-]>[><<<<+>[-]>>->]<+<<[>-[>-]>[><<<<+>[-]+>>->]<+<<-]>[-]>-<<<[<<[>>>+>+<<<<-]>>>>[<<<<+>>>>-],<[<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>-]>[<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>-]<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>[[>>]+[<<]>>-]+[>>]<[-]<[<<]>[>[>>]<+<[<<]>-]>[>>]<<[-<<]>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>[>>>+>+<<<<-]>>>>[<<<<+>>>>-]+[<+>-]<<<<[-]>>>[<<<+>>>-]<[-]<+>]<-]<[-],<<<<[-]>>>>[<<<<+>>>>-]>+[<[>>+>+<<<-]>>>[<<<+>>>-]<+>+++++>>+<<<[>>+<<-]>>[>-]>[><<<<+>[-]>>->]<+<<[>-[>-]>[><<<<+>[-]+>>->]<+<<-]>[-]>-<<<[<<[>>>+>+<<<<-]>>>>[<<<<+>>>>-],<[<<<<<<<<<<<<<<<<<<+>>>>>>>>>>>>>>>>>>-]>[<<<<<<<<<<<<<<<<<<<<+>>>>>>>>>>>>>>>>>>>>-]<<<<<<<<<<<<<<<<<<<<<>>[[>>]+[<<]>>-]+[>>]<
@umnikos
umnikos / interface_map.js
Last active January 30, 2022 20:06
neptune's pride mod - glowing carriers (TODO: turn into a userscript)
/*globals jQuery:true, Crux: true, Hammer: true*/
// jshint esversion: 6
if (!NeptunesPride) {var NeptunesPride = {};}
(function () {
NeptunesPride.Map = function(npui, universe) {
"use strict";
var map = {};
map = Crux.Widget();
map.ui.off();
@umnikos
umnikos / quiner interpreter.py
Last active January 13, 2022 12:35
An interpreter for the Quiner esolang (more info on https://esolangs.org/wiki/Quiner)
code = input("enter quiner code: ")
data = ""
code_ip = 0
data_ip = 0
debug = False
a = 1
a_len = 0
inputs = ""
@umnikos
umnikos / saveload.user.js
Last active January 31, 2022 14:09
Kaboom save and load buttons (https://pwmarcz.pl/kaboom/)
// ==UserScript==
// @name Kaboom save and load
// @namespace Kaboom
// @match https://pwmarcz.pl/kaboom/
// @grant none
// @version 1.0
// @author umnikos
// ==/UserScript==
function isObject(item) {
@umnikos
umnikos / bandcamp-download.user.js
Last active January 31, 2022 18:04
Download button for bandcamp.com
// ==UserScript==
// @name Bandcamp downloader
// @namespace Bandcamp
// @version 1.0
// @description Adds a download button next to songs on bandcamp.com
// @author umnikos
// @match http*://*.bandcamp.com/*
// @license GPL3
// @grant GM_download
// @require https://cdn.jsdelivr.net/npm/@violentmonkey/dom@1
// ==UserScript==
// @name Kaboom superchording
// @namespace Kaboom
// @match https://pwmarcz.pl/kaboom/
// @grant none
// @version 0.6
// @author umnikos
// ==/UserScript==
// TODO:
@umnikos
umnikos / exchange.txt
Last active May 23, 2022 16:28
Exchange esolang specification
Exchange is a programming language in which atoms traverse lines and exchange numbers.
Atoms:
Atoms are unordered lists of positive integers (1, 2, 3, etc.). You can create a constant stream of new empty atoms with a >> symbol at the beginning of a line, or a single empty atom with a > symbol at the beginning of the line. You can also destroy atoms with a > symbol at the end of a line.
Example:
>----------->
Here an empty atom is created and then immediately destroyed.
Numbers in atoms: __
@umnikos
umnikos / hopper.lua
Last active August 1, 2023 20:24
computercraft program: move items from A to B without any hassle
-- Copyright umnikos (Alex Stefanov) 2023
-- Licensed under MIT license
-- Version 1.2.1
-- CURRENTLY BUGGY, USE v1.2!
-- https://gist.githubusercontent.com/umnikos/72d4d537822b5f347e294edda2497648/raw/ad3e070385daab08b56dfbc1c9029290612dbba1/hopper.lua
local help_message = [[
hopper script v1.2.1, made by umnikos
@umnikos
umnikos / geocaching.md
Last active March 27, 2024 23:58
Geocaching for the SC3 minecraft server

Rules:

  1. You will be given the coordinates of the cache (aka. chest), but they will intentionally be slightly (or not so slightly) wrong. The coordinates listings will be paired with a measure of how accurate they are. (measured using chebyshev distance)

Example:
Listed coords: 100 69 420 (10 blocks accuracy)
Actual coords: 97 79 412

  1. While searching you are not allowed to use a block scanner, chorus fruit, ender pearls, or break blocks, unless the cache specifies you may do so.
-- A Radon layout for 1x1 monitor shops
-- This is a modification of the default theme that comes with with Radon itself
-- https://github.com/Allymonies/Radon
--- Imports
local _ = require("util.score")
local sound = require("util.sound")
local eventHook = require("util.eventHook")
local renderHelpers = require("util.renderHelpers")