from | to | description |
---|---|---|
0 | 10,000 | System items (including junkyards and other special purpose items |
500,000 | 1,000,000 | Factions |
1,000,000 | 2,000,000 | NPC corporations |
3,000,000 | 4,000,000 | NPC characters (agents and NPC corporation CEO's) |
9,000,000 | 10,000,000 | Universes |
10,000,000 | 11,000,000 | NEW-EDEN Regions |
11,000,000 | 12,000,000 | Wormhole Regions |
20,000,000 | 21,000,000 | NEW-EDEN Constellations |
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
$distance = sqrt(pow($x2-$x1,2)+pow($y2-$y1,2)+pow($z2-$z1,2))/9.4605284e15 |
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 | |
# The script will fail at the first error encountered | |
set -e | |
PASS=`pwgen -s 40 1` | |
mysql -uroot <<MYSQL_SCRIPT | |
CREATE DATABASE $1; | |
CREATE USER '$1'@'localhost' IDENTIFIED BY '$PASS'; | |
GRANT ALL PRIVILEGES ON $1.* TO '$1'@'localhost'; |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
// remove font size | |
$formattedMessage = preg_replace('/size="[^"]*[^"]"/', "", $reponse->body); | |
// remove wrong color | |
$formattedMessage = preg_replace('/(color="#)[a-f0-9]{2}([a-f0-9]{6}")/', '', $formattedMessage); | |
// link to kms | |
$formattedMessage = preg_replace('/<a href="killReport:(\d+):(\w+)">/', '<a href="' . config('base.kmUrl') . 'kill/\1/" target="_blank">', $formattedMessage); | |
// link fits | |
$formattedMessage = preg_replace('/<a href="fitting:([\d:;]+)">/', '<a href="' . config('base.osmiumUrl') . 'loadout/dna/\1" target="_blank">', $formattedMessage); | |
// link system/station | |
$formattedMessage = preg_replace('/<a href="showinfo:(?:5|3867)\/\/(\d+)">/', '<a href="' . config('base.dotlanUrl') . 'search?q=\1">', $formattedMessage); |
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
$tidy = tidy_parse_string($testString, [ | |
'doctype' => "omit", | |
'show-body-only' => true | |
]); | |
$dom->loadHtml($tidy->value, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); | |
foreach ($dom->getElementsByTagName('font') as $anchor) { | |
if ($anchor->hasAttribute('size')) { | |
$anchor->removeAttribute('size'); | |
} | |
if ($anchor->hasAttribute('color')) { |
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 SUN\Models; | |
use SUN\Traits\HasPermissionsTrait; | |
use Illuminate\Notifications\Notifiable; | |
use Illuminate\Foundation\Auth\User as Authenticatable; | |
use SUN\Models\ESI\{Character, Contract, MailHeader, MailingList, Station, Structure, Type}; |
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 SUN\Models\ESI; | |
use Illuminate\Database\Eloquent\Model; | |
use SUN\Models\{AccessList,CorporationWallet,Member,MailRecipient}; | |
class Corporation extends Model | |
{ |
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 SUN\Models\ESI; | |
use Illuminate\Database\Eloquent\Model; | |
use SUN\Models\{Member, AccessList}; | |
use SUN\Models\SDE\{Ancestry, Bloodline, Race}; | |
class Character extends Model |
OlderNewer