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
{ | |
"New React FC": { | |
"prefix": "importReact", | |
"body": [ | |
"import React from \"react\";", | |
// "import \"./${1:$TM_FILENAME_BASE}Styles\";", | |
// "import \"./${1:$TM_FILENAME_BASE}.${0:css}\";", | |
"import \"./${1:$TM_FILENAME_BASE}.${0:less}\";", | |
// "import \"./${1:$TM_FILENAME_BASE}.${0:sass}\";", | |
// "import \"./${1:$TM_FILENAME_BASE}.${0:scss}\";", |
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
tune = "data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU1LjEyLjEwMAAAAAAAAAAAAAAA//uQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAAcAAAAIAAAOsAA4ODg4ODg4ODg4ODhVVVVVVVVVVVVVVVVxcXFxcXFxcXFxcXFxjo6Ojo6Ojo6Ojo6OqqqqqqqqqqqqqqqqqsfHx8fHx8fHx8fHx+Pj4+Pj4+Pj4+Pj4+P///////////////9MYXZmNTUuMTIuMTAwAAAAAAAAAAAkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQRAAAAn4Tv4UlIABEwirzpKQADP4RahmJAAGltC3DIxAAFDiMVk6QoFERQGCTCMA4AwLOADAtYEAMBhy4rBAwIwDhtoKAgwoxw/DEQOB8u8McQO/1Agr/5SCDv////xAGBOHz4IHAfBwEAQicEAQBAEAAACqG6IAQBAEAwSIEaNHOiAUCgkJ0aOc/a6MUCgEAQDBJAuCAIQ/5cEAQOCcHAx1g+D9YPyjvKHP/E7//5QEP/+oEwf50FLgApF37Dtz3P3m1lX6yGruoixd2POMuGLxAw8AIonkGyqamRBNxHfz+XRzy1rMP1JHVDJocoFL/TTKBUe2ShqdPf+YGleouMo9zk////+r33///+pZgfb/8a5U/////9 |
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 * as functions from 'firebase-functions'; | |
import * as admin from 'firebase-admin'; | |
import * as express from 'express'; | |
import * as bodyParser from 'body-parser'; | |
import * as cors from 'cors'; | |
/** | |
* Apenas uma imagem de demonstração | |
*/ | |
const appIcon = "https://img.icons8.com/carbon-copy/2x/bot.png"; |
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 { useEffect, useCallback } from "react"; | |
export default function (effect: () => void | Promise<void>) { | |
const mountEffect = useCallback(() => { | |
effect(); | |
}, [effect]); | |
useEffect(mountEffect, []); | |
} |
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 { Component } from '@angular/core'; | |
@Component({ | |
selector: 'app', | |
template: ` | |
<div long-press [debounce]="2000" (onLongPress)="logEvent($event)"> | |
Press me for 2 seconds | |
</div> | |
`, | |
styles: [` |
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
/** | |
* Códigos HTTP tipicamente usados em retornos do servidor. | |
*/ | |
public enum HttpStatusPtBr { | |
/** | |
* Solicitação aceita. | |
*/ | |
ACCEPTED(202, "solicitacao aceita"), | |
/** | |
* Solicitação ambígua ou inconsistente. |
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
const sorteios = { | |
s2009: '10 27 40 46 49 58', | |
s2010: '02 10 34 37 43 50', | |
s2011: '03 04 29 36 45 55', | |
s2012: '14 32 33 36 41 52', | |
s2013: '20 30 36 38 47 53', | |
s2014: '01 05 11 16 20 56', | |
s2015: '02 18 31 42 51 56', | |
s2016: '05 11 22 24 51 53', | |
s2018: '03 06 10 17 34 37' |
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
// package com.example.user.project // REPLACE THIS LINE BY YOUR PACKAGE | |
import android.support.annotation.DrawableRes | |
import com.example.edmilton.prototipoamerica.R | |
enum class AlertType(@DrawableRes internal val path: Int) { | |
// THAT IS ONLY AN EXAMPLE, YOU CAN REPLACE WITH YOUR ICONS FILE NAMES | |
WARNING(R.drawable.ic_warning), | |
SUCCESS(R.drawable.ic_success), |
NewerOlder