final int FPS = 60;
// 1 secondes divisée en 60 frames;
final long timeForAFrame = 1 000 000 000 / 60;
long beginTime = CurrentTime();
doSomeStuff();
This file contains 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
-- --------------------------------------------- | |
-- @Author: bendem | |
-- @Date: 2013-12-13 10:13:47 | |
-- @Last Modified by: bendem | |
-- @Last Modified time: 2013-12-16 19:34:14 | |
-- --------------------------------------------- | |
CREATE OR REPLACE PROCEDURE rot3( | |
parm_str in varchar2, | |
parm_ret out varchar2 |
This file contains 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
-- ---------------------------------------------- | |
-- @Author: bendem | |
-- @Date: 2013-12-16 08:23:17 | |
-- @Last Modified by: bendem | |
-- @Last Modified time: 2013-12-16 11:27:06 | |
-- ---------------------------------------------- | |
CREATE OR REPLACE TRIGGER ResulatsDecision | |
BEFORE INSERT ON Resultats | |
FOR EACH ROW |
This file contains 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
-- ---------------------------------------------- | |
-- @Author: bendem | |
-- @Date: 2013-12-16 08:24:05 | |
-- @Last Modified by: bendem | |
-- @Last Modified time: 2013-12-16 13:37:09 | |
-- ---------------------------------------------- | |
CREATE OR REPLACE TRIGGER PlanningDistance | |
BEFORE INSERT OR UPDATE OF Distance, Jour ON Planning | |
FOR EACH ROW |
This file contains 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
-- ---------------------------------------------- | |
-- @Author: bendem | |
-- @Date: 2013-12-16 11:28:14 | |
-- @Last Modified by: bendem | |
-- @Last Modified time: 2013-12-16 12:01:35 | |
-- ---------------------------------------------- | |
CREATE OR REPLACE TRIGGER NageursCategorie | |
BEFORE INSERT OR UPDATE ON Nageurs | |
FOR EACH ROW |
This file contains 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
-- ---------------------------------------------- | |
-- @Author: bendem | |
-- @Date: 2013-12-17 12:10:38 | |
-- @Last Modified by: bendem | |
-- @Last Modified time: 2013-12-19 12:07:26 | |
-- ---------------------------------------------- | |
CREATE OR REPLACE TRIGGER BeforeRow | |
BEFORE UPDATE ON TestProc | |
FOR EACH ROW |
This file contains 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
import org.bukkit.block.Furnace; | |
import org.bukkit.event.block.BlockPlaceEvent; | |
import org.bukkit.event.inventory.FurnaceBurnEvent; | |
import org.bukkit.event.inventory.FurnaceSmeltEvent; | |
import org.bukkit.event.inventory.InventoryClickEvent; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.Listener; | |
import org.bukkit.inventory.FurnaceInventory; |
This file contains 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
/** | |
* @author bendem | |
*/ | |
public abstract class AbstractRepeatingTask implements Runnable { | |
private final long time; | |
private long delay = 0; | |
private final Thread thread; | |
private volatile boolean cancelled = false; | |
private volatile boolean idling = false; |
This file contains 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
a = '0f69b410ccc810c9450186a010eff110f05510ccc910c8eb10ccd30186a010c8ea10effa10cd3710f05f10cd360186a010c94e10cd3710f3d80186a010ccd210f05510cd2d10eff010effb0186a010cd3710f05e10c94510effa0186a010f05410ccc810c9450186a010cd2c10c8e110f3e210f3d90186a010c94410cd3710c94f018af6' | |
def split(s, size): | |
return [s[i:i+size] for i in range(0, len(s), size)] | |
c = ''.join([chr(int(str(int(c, 16)), 2)) for c in split(a, 6)]) | |
print(c) |
OlderNewer