This file contains hidden or 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 | |
| /** | |
| * GPS helper class. | |
| * | |
| * @package Gps | |
| * | |
| * @author Beau Hastings <[email protected]> | |
| * @copyright 2019 Beau Hastings | |
| * @license GNU GPL v2 | |
| * |
This file contains hidden or 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 curses | |
| import signal | |
| import sys | |
| # Globals | |
| screen = None | |
| refresh_time = 1 | |
| class Screen(object): |
This file contains hidden or 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
| *.html diff=html | |
| *.inc diff=php | |
| *.php diff=php | |
| *.phtml diff=php |
This file contains hidden or 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
| #HOWTO Run Sia host on Ubuntu server | |
| #Updated: 13 august, 2016 | |
| #Tested with Sia 1.0.2 and Ubuntu 16.04 | |
| #Update 13.08.2016: Changed from using supervisor to systemd | |
| # Create user `siad` | |
| adduser siad | |
| su siad |
This file contains hidden or 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
| const DEFAULT_SELL_DELAY_IN_SECONDS = 60; | |
| function showReactorMenu() { | |
| $('#reactorsButton').click(); | |
| } | |
| function selectReactor(name) { | |
| var reactors = $('.reactorSelect'); | |
| var reactor = reactors.find('.description:contains("' + name + '")').parent(); | |
| var selectButton = reactor.children('.button'); |
This file contains hidden or 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
| defmodule Terraria.IO.WorldFile do | |
| @moduledoc false | |
| import Terraria.BinaryUtils | |
| use Bitwise, only_operators: true | |
| alias Terraria.IO.FileData | |
| alias Terraria.IO.FileMetadata | |
| alias Terraria.IO.WorldFileData |
This file contains hidden or 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
| Current map: orig.wld | |
| Current release: 156 | |
| Map release: 156 | |
| File type: World | |
| Revision: 1120 | |
| IsFavorite? N | |
| World name: PTS 151003, ID=1246390825 | |
| World rect: left=0 right=134400 top=0 bottom=38400 | |
| Max tiles: X=8400 Y=2400 | |
| Expert? N |
This file contains hidden or 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
| #!/bin/bash | |
| # | |
| # fixup-ids | |
| # | |
| # Searches and replaces integer literals with their equivalent enumerated type | |
| # | |
| # Requires: | |
| # dos2unix | |
| # GNU awk >= 4.1.0 | |
| # |
This file contains hidden or 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
| namespace MyPlugin.Db | |
| { | |
| public class MyPluginDbManager | |
| { | |
| private string _tablePrefix = "plugin"; | |
| private string _tableName = "Test"; | |
| private readonly IDbConnection _conn; | |
| internal string TableName | |
| { |
This file contains hidden or 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
| --- Output from query creator using MySQL | |
| CREATE TABLE `Bans` (`IP` CHAR(16), `Name` TEXT, `UUID` TEXT, `Reason` TEXT, `BanningUser` TEXT, `Date` TEXT, `Expiration` TEXT, PRIMARY KEY (`IP`)) | |
| CREATE TABLE `Warps` (`Id` INT AUTO_INCREMENT, `WarpName` VARCHAR(50), `X` INT, `Y` INT, `WorldID` VARCHAR(50), `Private` TEXT, UNIQUE (`WarpName`, `WorldID`), PRIMARY KEY (`Id`)) | |
| CREATE TABLE `Regions` (`Id` INT AUTO_INCREMENT, `X1` INT, `Y1` INT, `width` INT, `height` INT, `RegionName` VARCHAR(50), `WorldID` VARCHAR(50), `UserIds` TEXT, `Protected` INT, `Groups` TEXT, `Owner` VARCHAR(50), `Z` INT, UNIQUE (`RegionName`, `WorldID`), PRIMARY KEY (`Id`)) | |
| CREATE TABLE `Users` (`ID` INT AUTO_INCREMENT, `Username` VARCHAR(32), `Password` VARCHAR(128), `UUID` VARCHAR(128), `Usergroup` TEXT, `Registered` TEXT, `LastAccessed` TEXT, `KnownIPs` TEXT, UNIQUE (`Username`), PRIMARY KEY (`ID`)) | |
| CREATE TABLE `GroupList` (`GroupName` VARCHAR(32), `Parent` VARCHAR(32), `Commands` TEXT, `ChatColor` TEXT, `Prefix` TEXT, `Suffix` TEXT, PRIMA |