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
' SumoBot-2.2-Motor-Test.BS2 | |
' {$STAMP BS2} | |
' {$PBASIC 2.5} | |
' -----[ I/O Definitions ]------------------------------------------------- | |
LMotor PIN 13 ' left servo motor | |
RMotor PIN 12 ' right servo motor | |
' -----[ Constants ]------------------------------------------------------- |
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
// package and imports | |
public interface IWardPlacer extends IScriptObject { | |
/** | |
* Creates a Ward Entity that can trigger wards itself | |
* | |
* @param instance | |
* The instance of the script | |
* @param world | |
* The world to place in |
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
' SumoBot-5.1-Basic-Competition-Program.BS2 | |
' {$STAMP BS2} | |
' {$PBASIC 2.5} | |
' -----[ I/O Definitions ]------------------------------------------------- | |
LMotor PIN 13 ' left servo motor | |
RMotor PIN 12 ' right servo motor | |
LLinePwr PIN 10 ' left line sensor power |
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
' SumoBot-4.2-IR-Scan.BS2 | |
' {$STAMP BS2} | |
' {$PBASIC 2.5} | |
' -----[ I/O Definitions ]------------------------------------------------- | |
LMotor PIN 13 ' left servo motor | |
RMotor PIN 12 ' right servo motor | |
LfIrOut PIN 4 ' left IR LED output |
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
// package and imports | |
public class ScriptData { | |
// idToDataList stores word data according to whether words can be identified to it | |
Map<Integer, Map<String, String>> idToDataList; | |
// wordLocations will be searched for words using Collections#contains(Object) and will return the integer id if it returns true | |
List<Collection<String>> wordLocations; | |
/** | |
* Retrieves a data map for a word | |
* |
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
package /* package */; | |
import java.util.ArrayList; | |
import java.util.List; | |
import net.minecraft.server.MinecraftServer; | |
import net.minecraft.world.GameRules; | |
import net.minecraft.world.GameRules.ValueType; | |
import net.minecraftforge.common.MinecraftForge; | |
import net.minecraftforge.event.world.WorldEvent; |
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
//META{"name":"emojiAPI"}*// | |
var emojiAPI = function () {}; | |
emojiAPI.prototype.emojiList = {}; | |
emojiAPI.prototype.addEmoji = function(containerId, json) { | |
var emoji = JSON.parse(json); | |
emojiAPI.prototype.emojiList[containerId] = emoji; | |
}; |
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
Function::get = (props) -> | |
@::__defineGetter__ name, func for name, func of props | |
Function::set = (props) -> | |
@::__defineSetter__ name, func for name, func of props | |
Function::Symbol = (props) -> | |
@::[Symbol[name]] = func for name, func of props | |
Function::static = |
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
#include <cstdlib> | |
#include <random> | |
#include <vector> | |
#include <iostream> | |
#include <SFML/Graphics.hpp> | |
class Grid { | |
const int MIN_SURROUND = 2; | |
const int MIN_SURROUND_SWITCH = 3; |
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
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: AuthenticAMD | |
CPU Brand: AMD Ryzen 5 2600 Six-Core Processor | |
CPU Family: 0x17 |
OlderNewer