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
import queue | |
import threading | |
import os | |
import time | |
import signal | |
class Worker(threading.Thread): | |
def __init__(self, tasks, results): | |
super().__init__() | |
self.tasks = tasks |
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
<? | |
public const WHITE = 0; | |
public const WHITE_WHITE = 256; | |
public const WHITE_WHITE_FIELD = 512; | |
public const WHITE_WHITE_DOTS = 768; | |
public const WHITE_BLACK_DOTS = 1024; | |
public const CREAMY = 1; | |
public const CREAMY_WHITE = 257; | |
public const CREAMY_WHITE_FIELD = 513; |
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 | |
/** | |
* | |
* ____ _ _ ____ ____ _ __ __ ____ | |
* | _ \| | | | _ \ / ___| / \ | \/ | _ \ | |
* | |_) | |_| | |_) | \___ \ / _ \ _____| |\/| | |_) | | |
* | __/| _ | __/ ___) / ___ \_____| | | | __/ | |
* |_| |_| |_|_| |____/_/ \_\ |_| |_|_| | |
* | |
* This project is not affiliated with SA-MP team nor RakNet. |
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
from xlsxwriter import Workbook | |
players = [ | |
{'dailyWinners': 3, 'dailyFree': 2, 'user': 'Player1', 'bank': 0.06}, | |
{'dailyWinners': 3, 'dailyFree': 2, 'user': 'Player2', 'bank': 4.0, 'level': 'Gold'}, | |
{'dailyWinners': 1, 'dailyFree': 2, 'user': 'Player3', 'bank': 3.1}, | |
{'dailyWinners': 3, 'dailyFree': 2, 'user': 'Player4', 'bank': 0.32, 'time': 'AM'} | |
] | |
def write_excel(dict_objects, filename, sheetname=None): | |
ordered_list = [] |
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 | |
declare(strict_types=1); | |
class clazz{ | |
public $var1 = "value1"; | |
protected $var2 = "value2"; | |
private $var3 = "value3"; | |
} |
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 | |
declare(strict_types=1); | |
namespace converter; | |
use function intdiv; | |
use function min; | |
class TimeUtils{ |
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
#!/bin/bash | |
# Filename: mysqldump.sh | |
# Author: IjorTengab (http://ijortengab.id) | |
# Last Update: 2018-02-07 | |
# | |
# Variables. Set by your own value. | |
HOST= | |
USER= | |
PASSWORD= | |
DATABASE= |
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 Encritary; | |
use pocketmine\entity\Entity; | |
use pocketmine\entity\Villager; | |
use pocketmine\event\Listener; | |
use pocketmine\event\player\PlayerInteractEvent; | |
use pocketmine\event\player\PlayerQuitEvent; | |
use pocketmine\event\server\DataPacketReceiveEvent; |
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 Encritary; | |
use pocketmine\entity\Entity; | |
use pocketmine\entity\Villager; | |
use pocketmine\event\Listener; | |
use pocketmine\event\player\PlayerInteractEvent; | |
use pocketmine\event\player\PlayerQuitEvent; | |
use pocketmine\event\server\DataPacketReceiveEvent; |