Skip to content

Instantly share code, notes, and snippets.

View TheLinx's full-sized avatar

Linus TheLinx

  • Stockholm, Sweden
View GitHub Profile
Copyright (c) 2009 Team Unreliable Pollution (http://www.unreliablepollution.net/)
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
Recent builds: http://love2d.org/builds
Mercurial repo: http://love.hg.sourceforge.net/hgweb/love/love/
if love._version ~= 60 then
function load()
love.graphics.setFont(love.default_font, 32)
end
function draw()
love.graphics.draw("Hello! You're running LOVE 0.5.0!", 40, 50)
love.graphics.draw("However, this game was made for LOVE 0.6.0.", 40, 100)
love.graphics.draw("To run this game you must get a recent build", 40, 150)
love.graphics.draw("from the builds page or build it yourself from", 40, 200)
love.graphics.draw("the mercurial repo. Please visit the following", 40, 250)
#!/bin/bash
for n in *; do
if [ -d $n ]; then
if [ -d $n/.git ]; then
echo "-- $n --";
cd "$n";
git pull origin master;
cd ..;
fi;
fi;
game = {
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0}
-- function goes here somewhere
function love.load()
sprites = {}
numberOfSprites = 62
spriteLoadIterator = num_iter(1, numberOfSprites)
spriteLoadProgress = 0
spritesLoaded = false
end
@TheLinx
TheLinx / .bash_aliases
Created May 8, 2010 11:06
my binaries
# protip: this goes in your ~
alias apt-install="sudo apt-get install"
alias apt-remove="sudo apt-get remove"
alias apt-purge="sudo apt-get purge"
alias apt-update="sudo apt-get update"
alias apt-autorm="sudo apt-get autoremove"
alias apt-upgrade="sudo apt-get upgrade"
alias apt-search="apt-cache search"
alias git-update="git add -A && git commit -m"
function git-push {
@TheLinx
TheLinx / README.textile
Created May 15, 2010 22:24
Braindamage

What is this I dont even

Braindamage is a NEW scripting language that makes Brainfuck even more Brainfuckier!

bd

bd runs Braindamage scripts.

bdc

@TheLinx
TheLinx / md5img
Created May 23, 2010 16:44
md5img
#!/usr/bin/env lua
-- This code is public domain, you may use it however you like.
local md5 = require("md5")
local tonumber = tonumber
local ioOpen,ioRead = io.open,io.read
local osExecute = os.execute
local tableConcat,tableInsert = table.concat,table.insert
if not arg[1] or not arg[2] or not arg[3] then
print("Usage: "..arg[0].." EncodeString OutResolution OutFilename")
-- this goes in your LUA_PATH, which is usually:
-- /usr/share/lua/5.1/
-- /usr/local/share/lua/5.1
-- C:\Program Files\Lua\5.1
-- first, require("printr")
-- then, use the function printr()
-- this code is public domain
local stringFormat,stringRep,stringChar = string.format,string.rep,string.char
local tableInsert,tableConcat = table.insert,table.concat