Braindamage is a NEW scripting language that makes Brainfuck even more Brainfuckier!
bd runs Braindamage scripts.
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 |
# 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 { |
#!/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 |