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 | |
/** | |
* @author greevex | |
* @date : 8/10/16 7:48 PM | |
*/ | |
class CLD2Detector | |
{ | |
public function __construct() |
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
class profiler | |
{ | |
private static $instance; | |
private static $internalCounter = 0; | |
private $timing = [ | |
'pending' => [], | |
'results' => [], | |
]; |
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
#!/usr/bin/env php | |
<?php | |
namespace hardcore; | |
abstract class appBase | |
{ | |
private $input; | |
abstract protected function handle(); |
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
// BUTTON PINS | |
const int buttonPin_1 = 2; | |
const int buttonPin_2 = 3; | |
const int buttonPin_3 = 4; | |
const int buttonPin_4 = 5; | |
const int buttonPin_reset = 5; | |
// GAME OPTIONS | |
const int defaultValue = 16; | |
const int minValue = 5; |
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
$a = ["151", "1500"]; | |
foreach($a as $item) { echo "Value `{$item}` is " . gettype($item) . PHP_EOL; } | |
//output: Value `151` is string | |
//output: Value `1500` is string | |
sort($a, SORT_REGULAR); | |
var_dump($a); | |
//output: array(2) { | |
//output: [0] => | |
//output: string(3) "151" | |
//output: [1] => |
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
Package "sds.test" | |
Var Integer $attempts | |
Block start { | |
$attempts = 5 | |
If $attempts <= 0 | |
- set break true |
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
Package "sds.sdk.test.start" | |
Var Queue $queue | |
Var Integer $count | |
Block start { | |
$queue.append "http://yandex.ru" | |
Foreach $queue | |
- set item $item |
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
Package "sds.sdk.test.start" | |
Var Queue $queue | |
Block start { | |
$queue.append "http://yandex.ru" | |
Foreach $queue | |
- call this.process | |
} |
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
/* | |
* | |
* | |
* 1-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=0 | |
* 0 _ __ __ __ 1 | |
* 1 /' \ __ /'__`\ /\ \__ /'__`\ 0 | |
* 0 /\_, \ ___ /\_\/\_\ \ \ ___\ \ ,_\/\ \/\ \ _ ___ 1 | |
* 1 \/_/\ \ /' _ `\ \/\ \/_/_\_<_ /'___\ \ \/\ \ \ \ \/\`'__\ 0 | |
* 0 \ \ \/\ \/\ \ \ \ \/\ \ \ \/\ \__/\ \ \_\ \ \_\ \ \ \/ 1 | |
* 1 \ \_\ \_\ \_\_\ \ \ \____/\ \____\\ \__\\ \____/\ \_\ 0 |
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
#!/usr/bin/perl -w | |
use strict; | |
use Socket; | |
use IO::Handle; | |
if($#ARGV+1 != 2){ | |
print "$#ARGV $0 Remote_IP Remote_Port \n"; | |
exit 1; | |
} |
NewerOlder