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
public class Areas { | |
static class Retangulo { | |
protected int largura; | |
protected int altura; | |
Retangulo(int largura, int altura) { | |
this.largura = largura; | |
this.altura = altura; | |
} |
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
#!/usr/bin/env bash | |
set -e | |
# Use this script to bind a keyboard shortcut (I recommend alt+shift+number) | |
# tools > external tools | |
# Program: /bin/bash | |
# # Here is up to you, you can place it on the project or globally | |
# Arguments .$Projectpath$/scripts/android-dev-bindings.sh reload | |
# Working directory: $ProjectFileDir$ | |
# Then save/apply/ok and go to keymap > external tools and assign your shortcuts |
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
/** | |
* Copyright (c) Facebook, Inc. and its affiliates. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
* | |
* @flow | |
* @format | |
*/ | |
'use strict'; |
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 |
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
/* 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
// 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
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
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
/* 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 |