Skip to content

Instantly share code, notes, and snippets.

Avatar

Leo Verto LeoVerto

View GitHub Profile
View reddit-robin-autogrow.js
// Paste this into your browser's dev console to automatically click "Grow" once a minute.
setInterval(function () {document.getElementsByClassName("robin--vote-class--increase")[0].click();}, 60000);
@LeoVerto
LeoVerto / Add-ignore_prefix-configuration-option.patch
Created Aug 25, 2015
Download to root of project and run "git apply Add-ignore_prefix-configuration-option.patch" to apply.
View Add-ignore_prefix-configuration-option.patch
From 69b7d2a3d8f62edb717aabc7a094ee13798d4de5 Mon Sep 17 00:00:00 2001
From: LeoVerto <LeoVerto@users.noreply.github.com>
Date: Thu, 30 Jul 2015 04:41:22 +0300
Subject: [PATCH] Add ignore_prefix configuration option
This option allows users to prevent a message from being logged by starting it with a configurable prefix.
Possible prefixes include: "[off]", ".off" and "[ignore]".
---
botbot/apps/plugins/core/logger.py | 31 +++++++++++++++++++++----------
@LeoVerto
LeoVerto / nukeAPI
Last active Aug 29, 2015
Custom ComputerCraft shell based on a file browser by some other guy.
View nukeAPI
-- Initialize some variables for later
local xMax, yMax = term.getSize()
local row = 4, 3, 1
-- Returns a table of possible icon origin positions
function originTable(maxCol, maxRow)
local tOrigins = {}
for i=1, maxRow do
for j=1, maxCol do
table.insert(tOrigins, {3+9*(j-1), 2+6*(i-1)})
View KMP json test
{
"version": "0.1.5.1",
"port": 2078,
"playersActive": 0,
"playersMax": 8,
"playersOnline": {},
"serverInfo": "Leo's KMP dev server",
"updatesPerSecond": 60,
"shipsInactive": 100,
"screenshotHeight": 512,
View .gitignore
*.class
# Package Files #
*.jar
*.war
*.ear
# Forge and vanilla #
/bin/*
/conf/*