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
type ResponseEnvelopeYuki<T> = ResponseEnvelopeSuccess<T> | ResponseEnvelopeFailure; | |
type ResponseEnvelopeSuccess<T> = { | |
success: true; | |
} & T; | |
type ResponseEnvelopeFailure = { | |
success: false; | |
errorMessage: string; |
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
import PrintA from '../PrintA'; | |
export const printConfig = { | |
A: { | |
component: PrintA, | |
nextTransaction: 'B', | |
}, | |
B | |
} |
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
/** | |
* @author amcsi / Szerémi Attila | |
**/ | |
#include <stdio.h> | |
/** | |
* Returns the length of a string | |
**/ | |
int strlen(char* str) { |
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 | |
class ObjectStorage { | |
public $pairs = []; | |
public function add(object $objectKey, $value): void | |
{ | |
$this->pairs[] = [$objectKey, $value]; | |
} |
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
Land | |
1 Access Tunnel | |
1 Bojuka Bog | |
1 Command Tower | |
1 Darkwater Catacombs | |
1 Dimir Aqueduct | |
11 Island | |
1 Myriad Landscape | |
1 Mystic Sanctuary | |
1 Path of Ancestry |
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
impl<'a> SerializingCommon<'a> { | |
pub fn serialize_page<T>(serialized: &SerializingPage) -> SerializingCommon<'a> | |
{ | |
SerializingCommon { | |
ancestors: &serialized.ancestors, | |
assets: serialized.assets, | |
components: serialized.components, | |
content: serialized.content, | |
description: serialized.description, | |
draft: serialized.draft, |
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
async function lol() { | |
const responseBodies = await Promise.all([ | |
fetch('http://example.com/1').then(response => response.json()), | |
fetch('http://example.com/2').then(response => response.json()), | |
]); | |
return { | |
list: responseBodies[0], | |
template_something: responseBodies[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
('Single ticket', 350), | |
('Single ticket bought on the spot', 450), | |
('Block of 10 tickets', 3000), | |
('Airport shuttle bus single ticket (100E)', 900), | |
('Transfer ticket', 530), | |
('Short section metro ticket for up to 3 stops', 300), | |
('Single ticket for public transport boat', 750), | |
('Single ticket for public transport boat Children (under 15)', 550), | |
('Metropolitan area ticket', 250), | |
('Metropolitan area single ticket (50 % price discount)', 125), |
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
#Warn ; Enable warnings to assist with detecting common errors. | |
; Custom function to press down two buttons. | |
PressBoth(a, b) | |
{ | |
Send, {%a% down}{%b% down}{%a% up}{%b% up} | |
} | |
#IfWinActive MELTY BLOOD |
NewerOlder