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
| 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
| #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
| *.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
| 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
| <?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
| <?php | |
| interface Database {} | |
| class Mysql implements Database {} | |
| class Postgresql implements Database {} | |
| class Container | |
| { | |
| protected $bindings = []; |
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 | |
| abstract class Window | |
| { | |
| protected $impl; | |
| public function __construct(WindowImpl $impl) | |
| { | |
| $this->setWindowImpl($impl); | |
| } |
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 | |
| abstract class Component | |
| { | |
| protected $_parent; | |
| protected $_children; | |
| public function __construct() | |
| { | |
| $this->_children = new SplDoublyLinkedList(); | |
| } |
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 | |
| interface IGreeting | |
| { | |
| public function greeting(); | |
| } | |
| abstract class GreetingDecorator implements IGreeting | |
| { | |
| protected $greeter; |