Skip to content

Instantly share code, notes, and snippets.

View LastDragon-ru's full-sized avatar

Aleksei Lebedev LastDragon-ru

View GitHub Profile
@LastDragon-ru
LastDragon-ru / TcxFixCommand.php
Created December 26, 2019 19:16
Add distance to indoor txc
<?php
namespace App\Console\Commands;
use Carbon\Carbon;
use Illuminate\Console\Command;
use SimpleXMLElement;
class TcxFixCommand extends Command {
/**
@LastDragon-ru
LastDragon-ru / README.md
Created January 12, 2014 15:11
git-http-backend + nginx (RHEL/Centos)

Requirements:

  • fcgiwrap
  • spawn-fcgi
  • nginx
  • git

Repository setup (without anonymous access):

@LastDragon-ru
LastDragon-ru / ISO3166-1-alpha-2-to-php.php
Created December 27, 2013 05:40
Convert ISO 3166-1 Alpha-2 into php code
<pre>
<?php
/**
* @see http://www.iso.org/iso/home/standards/country_codes.htm
* @author Aleksey Lebedev aka LastDragon <[email protected]>
* @license BSD license
*/
$file = 'http://www.iso.org/iso/home/standards/country_codes/country_names_and_code_elements_txt.htm';
$data = file($file);