This file contains hidden or 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
String b() { | |
print("Hey, I'm a side effect, I'm gonna mess with your program!"); | |
return ""; | |
} | |
final a = b(); | |
void main() { |
This file contains hidden or 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
// ⡴⠑⡄⠀⠀⠀⠀⠀⠀⠀⣀⣀⣤⣤⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ | |
// ⠸⡇⠀⠿⡀⠀⠀⠀⣀⡴⢿⣿⣿⣿⣿⣿⣿⣿⣷⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀ | |
// ⠀⠀⠀⠀⠑⢄⣠⠾⠁⣀⣄⡈⠙⣿⣿⣿⣿⣿⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀ | |
// ⠀⠀⠀⠀⢀⡀⠁⠀⠀⠈⠙⠛⠂⠈⣿⣿⣿⣿⣿⠿⡿⢿⣆⠀⠀⠀⠀⠀⠀ | |
// ⠀⠀⠀⢀⡾⣁⣀⠀⠴⠂⠙⣗⡀⠀⢻⣿⣿⠭⢤⣴⣦⣤⣹⠀⠀⠀⢀⢴⣶ | |
// ⠀⠀⢀⣾⣿⣿⣿⣷⣮⣽⣾⣿⣥⣴⣿⣿⡿⢂⠔⢚⡿⢿⣿⣦⣴⣾⠁⠸⣼ | |
// ⠀⢀⡞⠁⠙⠻⠿⠟⠉⠀⠛⢹⣿⣿⣿⣿⣿⣌⢤⣼⣿⣾⣿⡟⠉⠀⠀⠀⠀ | |
// ⠀⣾⣷⣶⠇⠀⠀⣤⣄⣀⡀⠈⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀ | |
// ⠀⠉⠈⠉⠀⠀⢦⡈⢻⣿⣿⣿⣶⣶⣶⣶⣤⣽⡹⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀ | |
// ⠀⠀⠀⠀⠀⠀⠀⠉⠲⣽⡻⢿⣿⣿⣿⣿⣿⣿⣷⣜⣿⣿⣿⡇⠀⠀⠀⠀⠀ |
This file contains hidden or 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
extension CopyWithAdditional on DateTime { | |
DateTime copyWithAdditional({ | |
int years, | |
int months = 0, | |
int days = 0, | |
int hours = 0, | |
int minutes = 0, | |
int seconds = 0, | |
int milliseconds = 0, | |
int microseconds = 0, |
This file contains hidden or 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
/* eslint-disable @typescript-eslint/no-magic-numbers */ | |
import { useRefCallback } from '@hooks/useRefCallback' | |
import React from 'react' | |
import { StyleProp, ViewStyle } from 'react-native' | |
import { TextInput } from 'react-native-paper' | |
type Props = { | |
label: string | |
value: number | |
onChangeValue: (value: number) => void |
This file contains hidden or 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
library flambda; | |
typedef Predicate<T> = bool Function(T); | |
class Case<T, R> { | |
Case(this.predicate, this.whenTrue); | |
factory Case.otherwise(R Function(T) whenTrue) { | |
return Case((T) => true, whenTrue); |
This file contains hidden or 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 _HomeItem { | |
_HomeItem({ | |
@required this.appbar, | |
@required this.body | |
}); | |
final PreferredSizeWidget appbar; | |
final Widget body; | |
} |
This file contains hidden or 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
// calls always the last | |
export const debounce = (time: number) => { | |
let timeout: ReturnType<typeof setTimeout> | null = null | |
return (fn: () => void) => { | |
if(timeout !== null) { | |
clearTimeout(timeout) | |
timeout = null | |
} |
This file contains hidden or 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
/* eslint-disable no-magic-numbers */ | |
import React from 'react' | |
import { StyleSheet, Text, View, ViewStyle } from 'react-native' | |
import { BaseColors } from '@constants/colors' | |
import fonts from '@constants/fonts' | |
type Props = { | |
style: ViewStyle | |
} |
This file contains hidden or 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
trigger: | |
- none | |
pool: | |
vmImage: 'ubuntu-latest' | |
variables: | |
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn | |
GRADLE_USER_HOME: $(Pipeline.Workspace)/.gradle |
This file contains hidden or 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
directive @client on FIELD | |
type GalleryItemImage { | |
t: String!, | |
w: Int!, | |
h: Int | |
} | |
type GalleryItemTag { | |
count: Int! | |
id: ID |