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
using OpenTK; | |
using OpenTK.Graphics; | |
using OpenTK.Graphics.OpenGL; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Drawing; | |
using System.Linq; | |
namespace RLConsole |
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
# scheduler.py - scheduling entity actions | |
import collections | |
import numbers | |
class Scheduler(object): | |
""" | |
Schedule entity actions | |
""" | |
def __init__(self, actors, start_time=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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.Serialization; | |
using System.Diagnostics; | |
using System.Globalization; | |
using System.IO; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using System.Security.Permissions; |
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
# field of view quadrant cache | |
# uses brute force O(N^3) calculation of fov and caches results | |
import cython | |
from bitarray import bitarray | |
from pygame import Rect | |
from .geometry import generate_partial_supercover_line, generate_points_in_rect_xy, Coordinate | |
def _gen_quadrant_adjusted(x0, y0, q1x, q1y): |
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 workers | |
// Commands commands for workers (extensible) | |
type Commands int | |
// Command types | |
const ( | |
CommandNone Commands = iota | |
CommandReset | |
CommandStart |
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
module bomdetect; | |
import std.range; | |
import std.traits; | |
import std.array; | |
private enum size_t BOM_BYTES_MAX = 4; | |
enum BOM : int { | |
NONE = -1, |