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 function foo: | |
return this::bar | |
private function bar: | |
return new GithubApiClient |
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
// services/validators/ExampleValidator.js | |
export class ExampleValidator { | |
validateFoo(input) { | |
return input.length === 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class DialogueSystem : MonoBehaviour | |
{ | |
public ProgressiveText dialogueText; | |
public static DialogueSystem Instance { get; set; } |
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
{ | |
"Version": "2012-10-17", | |
"Id": "Office-Only access", | |
"Statement": [{ | |
"Sid": "Access-to-Office-IP-only", | |
"Effect": "Deny", | |
"Principal": "*", | |
"Action": "s3:GetObject*", | |
"Resource": "arn:aws:s3:::BUCKET_NAME/*", | |
"Condition": { |
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
Message pattern: ^\[(.*)\] (.+?)\.([A-Z]+): (.*) | |
Message start pattern: ^\[ | |
Time format: yyyy-MM-dd HH:mm:ss | |
Time capture group: 1 | |
Severity capture group: 3 | |
Category capture group: 2 |
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
SELECT GROUP_CONCAT('CALL mysql.rds_kill(',id,')' SEPARATOR '; ') AS kill_list | |
FROM INFORMATION_SCHEMA.PROCESSLIST | |
WHERE command='Sleep'; |
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 App\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | |
use Symfony\Component\Routing\Annotation\Route; | |
class DefaultController extends AbstractController | |
{ | |
/** |
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 | |
// src/Service/SomeService.php | |
use Symfony\Component\Routing\Generator\UrlGeneratorInterface; | |
class SomeService | |
{ | |
private $router; |
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
export class ParentAvro extends BaseAvroRecord { | |
public static readonly schema: object = {}; // here is some schema object | |
@MyAvroDecorator(() => ChildAvro) // <-- Note the decorator | |
public child: ChildAvro; | |
public get schema(): object { | |
return ParentAvro.schema; | |
} | |
} |
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 Foo extends BaseAvroRecord { | |
public constructor(options: FooOptions) { | |
// ovdje ide mapiranje | |
} | |
} | |
interface FooOptions { | |
public requiredField1: string; | |
public requiredField2: number; | |
public optionalField3?: number; |
OlderNewer