Skip to content

Instantly share code, notes, and snippets.

View theuves's full-sized avatar
🎯
Focusing

Matheus Alves theuves

🎯
Focusing
  • Mato Grosso do Sul, Brazil
  • 21:16 (UTC -04:00)
View GitHub Profile
@gaearon
gaearon / index.html
Created January 15, 2022 03:26
tiny worldle clone i built during a stream https://www.youtube.com/watch?v=K77xThbu66A
<h1>Wordle</h1>
<div id="grid"></div>
<style>
body, html {
background: #111;
color: white;
font-family: sans-serif;
text-align: center;
text-transform: uppercase;
}
@gabtoschi
gabtoschi / reducedNumber.ts
Created May 10, 2021 12:20
Forma reduzida de números (3 mil, 42,3 mi, 321,9 bi) em português, feito em TypeScript
const reducedFormStringsByDivisionAmount = [
'', 'mil', 'mi', 'bi', 'tri', 'quatr', 'quint', 'sext', 'sept',
];
export function getNumberReducedForm(value: number): string {
const numberStr = value.toString();
// encontre a quantidade de classes numéricas que se tornarão não significativas
// 1350 = 1.350 => divisionAmount = 1
// 18352140 = 18.352140 => divisionAmount = 2
@leonardobiffi
leonardobiffi / ubuntu_posinstall.sh
Last active December 21, 2019 12:53
Pos Install Ubuntu 19.10
#!/usr/bin/env bash
#VARIAVEIS
URL_GOOGLE_CHROME="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
URL_TEAMVIEWER="https://download.teamviewer.com/download/linux/version_13x/teamviewer_amd64.deb"
DIRETORIO_DOWNLOADS="$HOME/Downloads/programas"
PROGRAMAS_PARA_INSTALAR=(
flameshot
@anabastos
anabastos / about.gif
Last active October 27, 2022 00:27
about.gif
about.gif
@rolandstarke
rolandstarke / laravel setup.sh
Last active July 8, 2024 07:49
Server setup bash script for Laravel
# Ubuntu 20 LTS Server Setup for Laravel
# Login as root user
sudo su -
# Update list of available packages
apt update
@viniceosm
viniceosm / conjugador.js
Created February 21, 2019 17:22
conjugador
/**
* Conjugar qualquer verbo (regular ou irregular).
*
* @param {string} verb Um verbo qualquer.
* @returns {object} Toda as conjugações.
*/
var conjugar = function (verb) {
var build = function (verb) {
/**
* Obter o prefixo e o sufixo de um verbo.
@viniceosm
viniceosm / pluralize.js
Last active July 21, 2019 20:45
pluralizar string sem passar por parâmetros o número e a palavra. Usado código do repositório: https://github.com/theuves/pluralizador.js
var pluralize = (function() {
'use strict';
// Lista de palavras terminadas
// em -ão que têm regras diferentes.
var irregulars = {
// Quando deve assumir -ães.
aes: [
'alemão',
@tj
tj / asya
Created January 24, 2018 18:39
...e$e.$...e$ ...e$e.$...e
!$6lkasd!$6lkasd!$6l !$6lkasd!$6lkasd!
;,a1wert;,a1wert;,a1wert ;,a1wert;,a1wert;,a1we
.asxzcvb.asxzcvb.asxzcvb.as .asxzcvb.asxzcvb.asxzcvb.
1qaswedfqas1wedfqas1wedfqas1wedfqas1wedfqas1edfqas1ewdfqa
:lkjhgfdlkj:hgfdlkj:hgfdlkj:hgfdlkj:hgfdlkj:gfdhlkj:gfdhlk
3edcvfr4edc3vfr4edc3vfr4edc3vfr4edc3vfr4edc3fr4vedc3fr4ved
1234ewqa2341ewqa2341ewqa2341ewqa2341ewqa2341wqa2341weqa234
o[piuytr[piouytr[piouytr[piouytr[piouytr[pioytru[pioytru[p
z/xcvbnm/xczvbnm/xczvbnm/xczvbnm/xczvbnm/xczbnmv/xczbnmv/x
@brenopolanski
brenopolanski / export-svg-inkscape.md
Created December 26, 2017 13:29
Exporting an object as svg from inkscape
  1. Select the object(s) to export
  2. Open the document properties window (Ctrl+Shift+D)
  3. Select "Resize page to drawing or selection"
  4. File > Save As Copy...
  5. Select Optimized SVG as the format if you want to use it on the web
@kentcdodds
kentcdodds / index.html
Last active June 24, 2021 19:48
The one true react boilerplate
<body>
<div id="⚛️"></div>
<script src="https://unpkg.com/react@16.0.0/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16.0.0/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6.26.0/babel.js"></script>
<script type="text/babel">
ReactDOM.render(<div>Hello World!</div>, document.getElementById('⚛️'))
</script>
</body>