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 React, {Component, Context, useState, useContext} from 'react'; | |
import { | |
ActivityIndicator, | |
KeyboardAvoidingView, | |
ScrollView, | |
StyleSheet, | |
Text, | |
View, | |
} from 'react-native'; | |
import {Button, TextInput} from 'react-native-paper'; |
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 main | |
import ( | |
"fmt" | |
"github.com/goccy/go-yaml" | |
"io/ioutil" | |
"log" | |
) | |
type conf struct { | |
Hits int64 `yaml:"hits"` | |
Time int64 `yaml:"time"` |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#ifdef __unix__ | |
#define IS_POSIX 1 | |
#else | |
#define IS_POSIX 0 | |
#endif |
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
<template> | |
<div id="app"> | |
<div v-for="item in list" :key="item">{{item}}</div> | |
<button @click="setPage(page-1)" :disabled="page==1">Anterior</button> | |
{{page}}/500 | |
<button @click="setPage(page+1)" :disabled="page>list.length-1">Proximo</button> | |
{{page}} | |
</div> | |
</template> |
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
#include <stdio.h> | |
double linearInterpolation(double x0, double y0, double x1, double y1, double x) { | |
return y0 + (y1 - y0) * ((x - x0) / (x1 - x0)); | |
} | |
void chamaLinearInterpolation(){ | |
float x, x0, y0, x1, y1, i; | |
printf("Digite o fator X: "); | |
scanf("%f", &x); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<style> | |
#painel{ | |
display: block; | |
background-color: #f00; | |
width:200px; |
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 Comp = () => { | |
let listUfs = ufs.map(uf =>{ | |
return { label: uf, value: uf } | |
}) | |
return <RNPickerSelect | |
onValueChange={(value) => console.log(value)} | |
items={listUfs} | |
/> | |
} |
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
{ | |
"require": { | |
"mfacenet/hello-world": "v1.*" | |
} | |
} |
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
#!/bin/bash | |
TARGET="/var/www/html" | |
GIT_DIR="/home/ubuntu/crm.git" | |
BRANCH="master" | |
TARGET_HOMOLOGACAO="/home/ubuntu/homologacao" | |
BRANCH_HOMOLOGACAO="homologacao" | |
while read oldrev newrev ref | |
do | |
# only checking out the master (or whatever branch you would like to deploy) |
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 { app, BrowserWindow, nativeTheme, Menu, Tray, nativeImage } from 'electron' | |
const path = require('path') | |
let tray = null | |
try { | |
if (process.platform === 'win32' && nativeTheme.shouldUseDarkColors === true) { | |
require('fs').unlinkSync(require('path').join(app.getPath('userData'), 'DevTools Extensions')) | |
} | |
} catch (_) { } |