N

@nvd05

example_1

C++
2 years ago
#include <iostream> using namespace std; int x[2] = {1, 2}; int y[2] = {1, 2}; int main() { cout << "player_1" << endl;

Find Different Symbols

C++
2 years ago
#include <iostream> #include <string.h> using namespace std; int main () { const string buffer_one = "hello"; const string buffer_two = "world";

struct array

C++
2 years ago
#include <iostream> #include <string.h> using namespace std; struct MyCustom { public: int param1; int param2;

Map vs object

TypeScript
2 years ago
// Map { const options = new Map(); options.set('param1', 'value1'); options.set('param2', 'value2'); options.set('param3', 'value3'); for (const [key, value] of options)

StringBuilder vs StringReplace

C#
2 years ago
using System; using System.Text; namespace MyCompiler { public static class Program { public static void Main(string[] args) { // build

Calling Events

C#
2 years ago
using System; namespace MyCompiler { public class MyCustomOptions { public string Buffer; } public class MyCustom

GetFullClassName

C#
2 years ago
using System; namespace MyCompiler { public class ClassFullName { } public static class Program {

GetPrivateFields

C#
2 years ago
using System; namespace MyCompiler { public partial class Properties { private readonly string _message; public Properties(string message) {

CheckPassedFlagEnum

C#
2 years ago
using System; namespace MyCompiler { public enum MyCustomEnum { Parameter1 = 1 << 1, // 2 Parameter2 = 1 << 2, // 4 Parameter3 = 1 << 3, // 8 Parameter4 = 1 << 4, // 16

Serializer

PHP
2 years ago
<?php abstract class Serializer { public function __construct(array $dictionary) { $class_name = get_class($this); $class_vars = get_class_vars($class_name); foreach ($class_vars as $key => $default)

MathematicsTask18_1

PHP
3 years ago
<?php $elements = [ 5 => 7, 4 => 5 ]; # n - for ($index = 3; $index >= -5; $index--) {

MemoryUsage

PHP
3 years ago
<?php /** * [clean class] * 1.500 => 515.09 KB * 15.000 => 1.56 MB * 150.000 => 16.09 MB * * [1 field] * 1.500 => 538.44 KB

GeneratorYield

PHP
3 years ago
<?php function get_values(): Generator { for ($index = 0; $index <= 100; $index++) { echo 'function => ' . $index . PHP_EOL; yield $index; } }

RacingStatistics

PHP
3 years ago
<?php /* game: [ { team: string, game: string, player: string,

GetArrayProperty

PHP
3 years ago
<?php final class ArrayTools { public static function get_property(array $fields, string $field, string $type) { if (array_key_exists($field, $fields) === false) { throw new Exception('field'); }

GetProperty

PHP
3 years ago
<?php /** * warnings: * 1. PHP Warning: Undefined property: stdClass::$nullable in /tmp/main.php on line 11 * 2. PHP Warning: Undefined array key "nullable" in /tmp/main.php on line 16 * 3. PHP Warning: Undefined property: GetProperty::$nullable in /tmp/main.php on line 25 */ $std = new stdClass();

QueryMiddleware

PHP
3 years ago
<?php class MiddlewareWorker { private $modules; private function callback(): callable { $next = function () {

Middleware

PHP
3 years ago
<?php class MiddlewareWorker { private $modules; private function callback(): callable { $next = function () {

ArduinoSwitcherV2

C++
4 years ago
class PinListener { private: void (*_reference)(int, int); int _milliseconds; int _signal; int _pin; public: void listen()

RaBotCompilation

PHP
4 years ago
<?php function array_property(array $parameters, $property) { return $parameters[$property]; } namespace RaBotCompilation\Modules { use RaBotCompilation\Types\Local\RaBotTypeConstructor;