This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//From Forum: marioR14.love | |
$bname = array("mario","mari0",""); | |
$after = array("R","v","alpha",""); | |
$exts = array(".zip",".love",".rar",".7z",".gz",".tar",".tgz"); | |
$it = 100; | |
/* | |
$bname = array("mari0"); | |
$after = array("R"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Cannot have a trailing slash. Arg 1 is folder. | |
cd $1 | |
zip -r ../${PWD##*/}.love * | |
cd .. | |
cat /usr/bin/love $1.love > build_$1 | |
chmod a+x build_$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SERVICE=' love ' | |
killall love 2> /dev/null | |
gnome-terminal -e "love $GEDIT_CURRENT_DOCUMENT_DIR" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function love.errhand(msg) | |
print(debug.traceback()) | |
print(msg) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
hg clone https://bitbucket.org/rude/love && cd love | |
hg update 0.8.0 | |
./platform/unix/automagic | |
CXXFLAGS="-DLOVE_OLD_MODPLUG" | |
./configure | |
make |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Yet Another Get Options | |
* | |
* This function will provide a simple alternative to *nix's getopt that has | |
* some extended features found in GNU's getopts. | |
* | |
* @author josefnpat <[email protected]> | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
circle = {x=400,y=300,r=100} | |
point = { x = 100, y = 100 } | |
col = false | |
function love.draw() | |
if cols then | |
love.graphics.print("Collision",0,0) | |
love.graphics.setColor(255,0,0) | |
for _,col in pairs(cols) do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
while(1){ | |
if("Already up-to-date." == $ans = rtrim(`git pull`)){ | |
echo "."; | |
} else { | |
echo "\n$ans\n"; | |
`notify-send "$ans"`; | |
} | |
sleep(5); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
MASTER="./master/" | |
SLAVE="./slave/" | |
date +%s > ${MASTER}.lastupdate | |
rsync -vazlpEogt --delete --progress $MASTER $SLAVE |
OlderNewer