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
class Bookmark < BinData::Record | |
endian :little | |
uint32 :address | |
uint32 :name_length | |
string :name, :read_length => :name_length | |
end | |
class Breakpoint < BinData::Record | |
endian :little | |
uint32 :start_address, :inital_value => 0 |
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
debug_prints = [] | |
# scan all source files for ;! annotations | |
(Dir.glob("src/**/*.h") + Dir.glob("src/**/*.s")).each do |file| | |
File.open(file, "r") do |file| | |
capture_next_line = false | |
file.readlines.each do |line| | |
if capture_next_line | |
debug_prints[-1][:name] = line.strip.split(":").first | |
capture_next_line = 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
/* | |
* usage: /js generate_texture(width, height) | |
* | |
* notes: comment out one of the blocks in the generate_texture method to get started | |
* or play with the make_discrete function to get different colors. | |
*/ | |
load(__folder + "core/scriptcraft.js"); | |
function make_discrete(noise){ | |
var val = parseInt(noise)+1; |
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
<tr> | |
<td> | |
{{players[0].points}} | |
</td> | |
<td> | |
{{players[0].name}} | |
</td> | |
<td> | |
{{players[0].post}} | |
</td> |
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
$scope.players = {[ | |
{ name:"Cabrera, Miguel", pos:"3B", team:"DET", slg:0.606, obp:0.393 }, | |
{ name:"Braun, Ryan", pos:"OF", team:"MIL", slg:0.595, obp:0.391 }]}; |
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
<tr> | |
<td> | |
1,048.50 | |
</td> | |
<td> | |
Cabrera, Miguel | |
</td> | |
<td> | |
3B | |
</td> |
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
<tr ng-repeat="player in players"> | |
<td> | |
{{player.score | number:2}} | |
</td> | |
<td> | |
{{player.name}} | |
</td> | |
<td> | |
{{player.pos}} | |
</td> |
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
load(__folder + "../drone/drone.js"); | |
load(__folder + "../core/scriptcraft.js"); | |
Drone.extend("big",function(){ | |
server.scheduler.scheduleAsyncDelayedTask(global.plugin,function(){ | |
(new Drone()).box(1,500,100,500); | |
print("done"); | |
}); | |
}); |
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
load(__folder + "../core/scriptcraft"); | |
var quest = quest || plugin("quest",{ | |
initialize_quest:function(player_name){ | |
quest.store.players[player_name] = { | |
current:-1, | |
accepted:false, | |
skeleton_counter:0, | |
steps:[{ | |
step:1, |
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
skeleton_kill_counter:function(event,data){ | |
var target = data.getEntity(); | |
var killer = target.getKiller(); | |
// check if it is the player who did the killing and if a skeleton was the target | |
if(killer != null && killer.getUniqueId() == getPlayerObject().getUniqueId() && target.getType() == org.bukkit.entity.EntityType.SKELETON && quest.store.players[killer.name] != null){ | |
quest.store.players[killer.name].skeleton_counter = (quest.store.players[killer.name].skeleton_counter + 1); | |
if(quest.store.players[killer.name].skeleton_counter < 10){ | |
killer.sendMessage("" + quest.store.players[killer.name].skeleton_counter + "/10 skeletons killed."); | |
} | |
else{ |
NewerOlder