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 { render, screen } from '@testing-library/react' | |
import userEvent from '@testing-library/user-event' | |
import { Input } from '.' | |
describe('<Input />', () => { | |
it('should render the component', () => { | |
render(<Input label="mock_label" />) | |
expect(screen.getByLabelText('mock_label')).toBeInTheDocument() |
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
# EditorConfig is awesome: https://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 2 | |
indent_style = space |
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
:root { | |
--color-blue-gray-50: #F8FAFC; | |
--color-blue-gray-100: #F1F5F9; | |
--color-blue-gray-200: #E2E8F0; | |
--color-blue-gray-300: #CBD5E1; | |
--color-blue-gray-400: #94A3B8; | |
--color-blue-gray-500: #64748B; | |
--color-blue-gray-600: #475569; | |
--color-blue-gray-700: #334155; | |
--color-blue-gray-800: #1E293B; |
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
bash { echo "data:image/png;base64,"; openssl enc -base64 -in src/pages/Index/images/input.png; } > output.b64 | |
# Remove new lines | |
echo (tr -d "\n\r" < output.b64) >> output_without_new_lines.b64 |
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/sh | |
# Add fish PPA | |
sudo apt-add-repository ppa:fish-shell/release-3 | |
sudo apt update | |
# Install minimal tools | |
sudo apt install fish git dirmngr gpg vim -y | |
# Set fish as default shell |
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
/* | |
* JAVASCRIPT BOOKMARKLET | |
* | |
* In order to have this function always at hand and use it in | |
* any website, just add the code below to a bookmark in your favorite browser. | |
* Every time you click it, the browser will prompt you for a new playback | |
* rate for first video in the page. | |
*/ | |
javascript:(function() { |
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
#Right::Send {End} ; Windows + Right Arrow = End | |
#Left::Send {Home} ; Windows + Right Arrow = Home | |
#+Right::Send +{End} ; Windows + Right Arrow + Shift = Select to the End | |
#+Left::Send +{Home} ; Windows + Right Left + Shift = Select to the Home |
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
<?php | |
$cache_key = 'categoria-da-home'; | |
if ( ! $ids = get_transient( $cache_key ) ) { | |
//Essa query pega apenas os IDs dos posts | |
$query = new WP_Query( [ | |
'fields' => 'ids', | |
'posts_per_page' => 15, | |
'cat' => 5, //ID da categoria |
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
<?php | |
function dougmoura_query_by_date( $ano = null, $mes = null, $dia = null ) { | |
// Retorna uma matriz com o dia de hoje. Veja http://php.net/manual/en/function.getdate.php | |
$hoje = getdate(); | |
if ( null === $ano ) | |
$ano = $hoje['year']; | |
if ( null === $mes ) |
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
<?xml version="1.0"?> | |
<inputList> | |
<inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1"> | |
<input name="a" type="key" id="115" value="1" /> | |
<input name="b" type="key" id="97" value="1" /> | |
<input name="down" type="key" id="1073741905" value="1" /> | |
<input name="left" type="key" id="1073741904" value="1" /> | |
<input name="pagedown" type="key" id="1073741902" value="1" /> | |
<input name="pageup" type="key" id="1073741899" value="1" /> | |
<input name="right" type="key" id="1073741903" value="1" /> |