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
/* | |
* Copyright (c) 2013 Chris Patuzzo <[email protected]> | |
* | |
* The "github.css" Style Sheet by Chris Patuzzo <[email protected]> | |
* is available from http://www.github.com/tuzz. | |
*/ | |
/* | |
* Copyright (c) 2014-2016 wereturtle | |
* | |
* Modifications made to the hr element style. |
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
"use strict"; | |
/** | |
* Recursively overwrites 1 settings object with another. | |
* Ported from PHP: https://gist.github.com/00f1b9b1fd6ca0610b780587f11ede4e#file-applysettings-php | |
* @param {object} def The default settings object to overwrite. | |
* @param {object} custom The settings to use when overwriting. | |
*/ | |
function apply_settings(def, custom) { | |
// If the default doesn't exist, then return the custom |
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; | |
namespace SBRL.Utilities | |
{ | |
/// <summary> | |
/// Represents an isosceles / equilateral Triangle in 2D space. | |
/// </summary> | |
/// <remarks> | |
/// Features the ability to return its bounding box as a Rectangle - the struct | |
/// this struct was forked from. |
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
<?php | |
/** | |
* Normalises and removes any unknown characters from a string, making it safe | |
* for use as a filename. | |
* @param string $string The string to slugificate. | |
* @param integer $maxlength The maximum desired length of the resultant string. | |
* @return string The slugified string. | |
*/ | |
function slugify($string, $maxlength = 50) { |
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
<?php | |
namespace SBRL; | |
use \stdClass; | |
use \Yosymfony\Toml\Toml; | |
use \Yosymfony\Toml\TomlBuilder; | |
/** | |
* Handles the loading and saving of settings from a toml file. |
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
#!/usr/bin/env bash | |
########################## | |
### Colour Definitions ### | |
#### ANSI color codes #### | |
RS="\033[0m" # reset | |
HC="\033[1m" # hicolor | |
UL="\033[4m" # underline | |
INV="\033[7m" # inverse background and foreground | |
FBLK="\033[30m" # foreground black |
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; | |
namespace SBRL.IO.Svg | |
{ | |
/// <summary> | |
/// Represents a single point in 2D space. | |
/// May also be used to represent a direction with a magnitude. | |
/// </summary> | |
/// <version>v0.4.2</version> | |
/// <changelog> |
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
"use strict"; | |
/***************************************************************************** | |
******************************** Mouse class ******************************** | |
********************************************************************* v0.1 ** | |
* A simple mouse class, records and stores mouse information later use | |
* outside an event listener. Depends on my earlier Vector class. | |
* | |
* Author: Starbeamrainbowlabs | |
* Twitter: @SBRLabs |
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; | |
namespace SBRL.Utilities | |
{ | |
/// <summary> | |
/// Represents a rectangle in 2D space. | |
/// </summary> | |
/// <version>v0.3</version> |
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
"use strict"; | |
import Vector from './Vector2.mjs'; | |
/** | |
* Represents a rectangle in 2D space. | |
* @source https://gist.github.com/d7ff700d3ca57ab5d52ec12a1ee8b8a0 | |
* Changelog: | |
* 29th May 2019 | |
* Created this changelog |