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
| const controlEnter = (e: React.KeyboardEvent) => | |
| (e.metaKey || e.ctrlKey) && e.which === 13; |
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
| import numpy as np | |
| from matplotlib import pyplot as plt | |
| concentrationCurve = [100,50,25,12.5,6.25,3.125,0] | |
| opticalDensityCurve = [0.7755,0.3205,0.1325,0.061,0.038,0.029,0.026] | |
| concentrationSamples = [19.1,28.05,44.44,59.38,68.67,74.27,91.33] | |
| opticalDensitySample = [0.1065,0.1585,0.268,0.384,0.464,0.515,0.684] |
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
| const [, token] = bearer.match(/Bearer (.*)/); |
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
| import React from 'react'; | |
| import { Select } from 'antd'; | |
| const { Option } = Select; | |
| const SelectPaises = props => ( | |
| <Select name="paises" style={{width: 150, height: 40}} placeholder="Selecione um país" {...props}> | |
| <Option value="África do Sul">África do Sul</Option> | |
| <Option value="Albânia">Albânia</Option> | |
| <Option value="Alemanha">Alemanha</Option> |
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
| import { useState } from 'react'; | |
| function Gato() { | |
| const [idade, setIdade] = useState(3); | |
| return ( | |
| <div> | |
| <p>Este gato tem {idade} anos</p> | |
| <button onClick={() => setIdade(count + 1)}> | |
| Clique aqui para envelhecer o bixano |
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 Metronomo extends React.Component { | |
| componentDidMount() { | |
| this.primeiroContador = setInterval( | |
| () => this.contagem(), | |
| 1000 | |
| ); | |
| this.segundoContador = setInterval( | |
| () => this.contagem(), | |
| 500 | |
| ); |
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 Gato { | |
| constructor(nome) { | |
| this.nome = nome; | |
| } | |
| falar(paraPessoas) { | |
| paraPessoas.forEach(function(pessoa){ | |
| console.log(`${this.nome} para ${pessoa}: Meow!`); | |
| }) | |
| } |
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 Gato { | |
| constructor(nome) { | |
| this.nome = nome; | |
| } | |
| falar() { | |
| console.log(`${this.nome}: Meow!`); | |
| } | |
| }; |
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
| SELECT SUM(funnel_1) as f1_total, SUM(funnel_2) as f2_total FROM ( | |
| SELECT | |
| if (event_name = "home_to_info1", 1, 0) AS funnel_1, | |
| if (event_name = "home_to_info1" AND next_event = "app_remove" AND next_timestamp - event_timestamp < 60 * 1000 * 1000, 1, 0) AS funnel_2 | |
| FROM ( | |
| SELECT event_name, user_pseudo_id , event_timestamp, | |
| LEAD(event_name, 1) OVER (PARTITION BY user_pseudo_id ORDER BY event_timestamp) AS next_event, | |
| LEAD(event_timestamp, 1) OVER (PARTITION BY user_pseudo_id ORDER BY event_timestamp) AS next_timestamp | |
| FROM `mobile-app-production-f37fd.analytics_189954145.events_*` | |
| WHERE event_name = "home_to_info1" OR event_name = "app_remove" |
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
| "https://www.youtube.com/watch?v=lgJOJAmXlBw".match(/(youtu\.be\/|youtube\.com\/(watch\?(.*&)?v=|(embed|v)\/))([^\?&"'>]+)/)[5]; |
NewerOlder