Skip to content

Instantly share code, notes, and snippets.

View JanneSalokoski's full-sized avatar

Janne Salokoski JanneSalokoski

View GitHub Profile
@JanneSalokoski
JanneSalokoski / jenn4 TPT theme
Created June 18, 2012 17:48
jenn4 TPT theme
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("powdertoy.co.uk") {
/* Links */
html {
background-image: url('http://img88.imageshack.us/img88/843/backgroundnu.jpg') !important;
background-attachment: fixed !important;
background-repeat: repeat !important;
}
@JanneSalokoski
JanneSalokoski / dark.css
Created June 19, 2012 05:40 — forked from boxmein/dark.less
Stylesheet for The Powder Toy's web site powdertoy.co.uk .
@namespace url(http://www.w3.org/1999/xhtml);
/**
* (Original) Background pattern used from http://www.dinpattern.com/2011/08/29/charcoal/
* New one used from http://www.noqta.it/dromoscopio/ #40
* CSS changes colours, soon background images if I wanna.
* To apply, get Stylish for Firefox(Or other custom style platform SEE #1), then make a new CSS style for
* * powdertoy.co.uk
* and paste this file into the editor box.
** HOW TO INSTALL ON VARIOUS PLATFORMS:
* Opera: http://www.opera.com/docs/usercss/
@JanneSalokoski
JanneSalokoski / luaBot.lua
Last active December 13, 2015 19:58
A lightweight IRC bot made in Lua using LuaSockets. Can be ran even on Android devices. utility commands are still under development, but the bot answers PING messages, answers to "Hi!" 's, and parses PRIVMSG's.
require "socket" --luaBot
s = socket.tcp()
passLine = io.read()
--[initial configuration]
network = "chat.eu.freenode.net"
nick = "jenn4|luabot"
user = nick mode = "8"
realname = "luaBot"
channels = "#jenn4" -- You can stack channels like #chan1,chan2 with no spaces!
#Define the necessary variables here.
network = "chat.eu.freenode.net"
port = 6667
nick = "jenn4|ExpBot"
user = nick
realname = "ExpBot"
passw = "none"
prefix = "!!"
channels = "#jenn4"
mode = "8"
@JanneSalokoski
JanneSalokoski / ExpBot II.lua
Last active December 19, 2015 08:59
ExpBot II (Experimental Bot V2.1) - An simple IRC bot written in Lua - the programming language.
-- ExpBot II (Experimental Bot V2.1) - An simple IRC bot written in Lua - the programming language.
-- jenn4 - salokoski.janne@gmail.com
print("<< Please, enter your password >>")
require "socket"
s = socket.tcp()
-- Passwords are received from the standard input.
passLine = io.read()
-- Configuration.
x = {}
y = {}
--Trilateration point 1
x.solid_1 = 4 --x coordinate
y.solid_1 = 2 --y coordinate
--Trilateration point 2
x.solid_2 = 7 --x coordinate
y.solid_2 = 8 --y coordinate
local socket = require "socket"
local s = socket.tcp()
local debug = true
local nick = "Chen-4"
local user = "jenn4"
local realname = "ExpBot"
local passLine = io.read() --Passwords are received from the standard input.
require "socket"
function main()
x = 0
y = 0
z = 0
print("Starting count:")
socket.sleep(1)
require "android"
require "socket"
io.read()
function main()
local run = true
local i, j = 10000, 99999
while run do
function main()
io.write("Press enter to start.")
io.read()
local x = 0
while true do
local f = io.open("1904142.txt", "a")
local x = x + math.random()