Skip to content

Instantly share code, notes, and snippets.

View MarcosSarges's full-sized avatar
🎯
Focusing

Marcos Sarges MarcosSarges

🎯
Focusing
  • [Castanhal/PA/Brazil]
View GitHub Profile
@MarcosSarges
MarcosSarges / launch.json
Created November 15, 2023 18:52 — forked from cecilemuller/launch.json
Run ts-node in VSCode Debugger
{
"version": "0.2.0",
"configurations": [
{
"name": "Example",
"type": "node",
"request": "launch",
"runtimeExecutable": "node",
"runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"],
@MarcosSarges
MarcosSarges / send_cloudmessage_lagacy_api.js
Created May 22, 2022 12:55
Send Cloud Message Lagacy
const { default: axios } = require("axios");
require("dotenv").config();
const FCM_TOKEN = "";
(async () => {
try {
const body = {
registration_ids: [FCM_TOKEN],
describe('when a Ref is provided', () => {
it('should export the reload method', () => {
const webView = tree.getByTestId('webView');
const ref = webView.props.children[1].ref;
expect(ref.current.reload).toBeTruthy();
});
});
@MarcosSarges
MarcosSarges / wrapperBind.ts
Created February 18, 2022 00:39
wrapperBind
const wrapperBind = <T>(controller: T, nameMethod: keyof T): any => {
const func = controller[nameMethod] as unknown as CallableFunction;
return func.bind(controller);
};
export default wrapperBind;
@MarcosSarges
MarcosSarges / config-ssh.md
Created June 4, 2021 17:29
Arquivo de configuração para resolver problemas de conexão com ssh do github, bitbucket, gitlab...

Criar o arquivo ~/.ssh/config e adicionar:

Host github.com
   Hostname ssh.github.com
   Port 443
Host bitbucket.org
   Hostname altssh.bitbucket.org
   Port 443
Host gitlab.com
import 'package:bloc_pattern/bloc_pattern.dart';
import 'package:flutter/material.dart';
import 'package:fluttetube/blocs/videos_bloc.dart';
import 'package:fluttetube/screens/home_screen.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@MarcosSarges
MarcosSarges / db.json
Created September 30, 2019 21:50
ReactJS Test
{
"users": [
{
"id": 1,
"name": "Leanne Graham",
"username": "Bret",
"email": "[email protected]",
"address": {
"street": "Kulas Light",
"suite": "Apt. 556",
import React from "react";
import { ScrollView, Image, Text } from "react-native";
const data = Array(30)
.fill(0)
.map((el, i) => (
<Text
style={{
marginVertical: 10,
textAlign: "center",
import React from "react";
import { View } from "react-native";
const AnimacaoScrollView = () => {
return <View />;
};
export default AnimacaoScrollView;