Skip to content

Instantly share code, notes, and snippets.

View tarmo888's full-sized avatar
Developing on Obyte network

Tarmo tarmo888

Developing on Obyte network
View GitHub Profile
@tarmo888
tarmo888 / number-guessing-game.bas
Created November 8, 2025 07:40
Number Guessing Game for Commodore 64
10 PRINT"PRESS ANY KEY"
20 GET A$:IF A$="" THEN 20
30 X=RND(-TI):PRINT"{CLR}"
40 B=INT(RND(1)*10)+1
50 PRINT"GUESS 1-10 (Q=QUIT)"
60 INPUT A$:IF A$="Q" THEN END
70 A=VAL(A$):IF A=B THEN PRINT"CORRECT!":GOTO 40
80 PRINT"TOO ";:IF A>B THEN PRINT"HIGH":GOTO 60
90 PRINT"LOW":GOTO 60
@tarmo888
tarmo888 / TFWR-spawn_drone_per_row.py
Created November 1, 2025 18:38
drone spawning template for The Farmer Was Replaced
def do_work(y):
# example task
till()
def drone_template(y):
def worker_task():
# introduce yourself
print("ready", y)
# do stuff and move right forever
while True:
@tarmo888
tarmo888 / main.lua
Created December 22, 2022 09:34
"Shooting Stars" by @XorDev for Love2D
local prevW, prevH = 1280, 720
function love.load(arg)
love.filesystem.setIdentity('ShootingStars')
local pixelcode = [[
/*
"Shooting Stars" by @XorDev
I got hit with inspiration for the concept of shooting stars.
This is what I came up with.
@tarmo888
tarmo888 / lock-with-interest.js
Created October 5, 2020 18:28
rewards interest for locking up funds
/*jslint node: true */
'use strict';
const constants = require('ocore/constants.js');
const conf = require('ocore/conf');
const db = require('ocore/db');
const eventBus = require('ocore/event_bus');
const validationUtils = require('ocore/validation_utils');
const headlessWallet = require('headless-obyte');
var sessionData = {};
@tarmo888
tarmo888 / bouncer-forwarder.js
Last active October 5, 2020 18:23
bounces the payment to inserted address
/*jslint node: true */
'use strict';
const constants = require('ocore/constants.js');
const conf = require('ocore/conf');
const db = require('ocore/db');
const eventBus = require('ocore/event_bus');
const validationUtils = require('ocore/validation_utils');
const headlessWallet = require('headless-obyte');
Array.prototype.forEachAsync = async function(fn) {
@tarmo888
tarmo888 / php7-apache2-redis.sh
Last active August 20, 2017 04:15
php7.0-fpm (FastCGI Process Manager), Apache2 (mod_mpm_event & mod_proxy_fcgi) and Redis on WSL (Windows Subsystem for Linux)
#!/bin/bash
sudo apt-get install apache2 php7.0-fpm -y
sudo apt-get install php7.0-mbstring php7.0-xml php7.0-gd php7.0-curl php7.0-zip -y
sudo apt-get install redis-server php-redis -y
sudo a2enconf php7.0-fpm
sudo a2enmod proxy
sudo a2enmod proxy_fcgi
sudo a2enmod rewrite
#sudo a2dismod status