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 | |
for subdir in *; do | |
mkdir -p "resorted" | |
for subsubdir in $subdir/*/; do | |
subsub=${subsubdir#*/} | |
mkdir -p resorted/$subsub | |
mv $subsubdir resorted/$subsub/$subdir | |
done | |
rm -r $subdir | |
done |
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
# Ugh! | |
from commands import * | |
import sys | |
class Test(object): | |
def __getattr__(self, name): | |
return self | |
def __call__(*args): | |
r = ""; l = long("1ye7arur2v2r9jacews0tuy9fe8eu8fcva4eh", 36) | |
while l: r += chr(l&127); l >>= 7 |
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
local floor = math.floor | |
function rd(x, d) | |
return floor(x * d * 10) / (d * 10) | |
end | |
function tst(x, d) | |
local r = rd(x, d) | |
print(string.format("rd(%s, %s) => %s", tostring(x), tostring(d), tostring(r))) | |
end | |
tst(0.40, 1) | |
tst(0.35, 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
---- Minecraft Crash Report ---- | |
// Hey, that tickles! Hehehe! | |
Time: 10/24/14 1:59 AM | |
Description: Ticking block entity | |
java.lang.ArrayIndexOutOfBoundsException: 5 | |
at thaumcraft.common.tiles.TileTubeBuffer.getSuctionAmount(TileTubeBuffer.java:166) | |
at thaumcraft.common.tiles.TileTubeBuffer.fillBuffer(TileTubeBuffer.java:233) | |
at thaumcraft.common.tiles.TileTubeBuffer.func_145845_h(TileTubeBuffer.java:219) |
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
local passnouns = { 'Loc', 'Rot', 'Scl', 'Color' } | |
local anim_safe_data = {} | |
setmetatable(anim_safe_data, { __mode = 'k' }) | |
local animverbs = { 'seek', 'move' } | |
function Util.animsafe(obj) | |
if anim_safe_data[obj] then | |
return | |
end | |
local d = {} |
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
diff --git a/src/moai-sim/MOAIParticlePexPlugin.cpp b/src/moai-sim/MOAIParticlePexPlugin.cpp | |
index f2b556a..32c5015 100644 | |
--- a/src/moai-sim/MOAIParticlePexPlugin.cpp | |
+++ b/src/moai-sim/MOAIParticlePexPlugin.cpp | |
@@ -752,6 +752,8 @@ void MOAIParticlePexPlugin::_renderRadialScript( float* particle, float* registe | |
sprite->mXLoc = particle[ MOAIParticle::PARTICLE_X ]; | |
sprite->mYLoc = particle[ MOAIParticle::PARTICLE_Y ]; | |
+ sprite->mGfxID = 1; | |
+ |
NewerOlder