Skip to content

Instantly share code, notes, and snippets.

View luisfelipe-dev's full-sized avatar
:octocat:
👨🏻‍💻

Luís Felipe de Olivera luisfelipe-dev

:octocat:
👨🏻‍💻
View GitHub Profile
@Nick-Gabe
Nick-Gabe / Pombify.js
Last active November 21, 2024 17:24
Transforma uma string em pombês, e traduz para a língua dos humanos.
const pombify = (phrase) => {
return phrase
.split(' ')
.map((word) => {
const wordLetters = word.split('')
return wordLetters
.map((letter, index) => {
const charCode = letter.charCodeAt(0);
const binary = charCode
.toString(2)
@sibelius
sibelius / testingConcept.md
Last active February 1, 2024 17:36
testing library concept and basic test

You first need to undestand the concept of frontend tests.

You should not test the implementation but the behavior

You test like the end user

For instance, imagine a login screen with email and password inputs and a submit button

The test should input the email and the password, then click in the submit button.

.container {
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
/* BREAKPOINT 576px */
@media (min-width: 36em) {
@akexorcist
akexorcist / index.js
Last active September 13, 2024 19:03
Axios post method requesting with x-www-form-urlencoded content type. See https://axios-http.com/docs/urlencoded
const axios = require('axios')
/* ... */
const params = new URLSearchParams()
params.append('name', 'Akexorcist')
params.append('age', '28')
params.append('position', 'Android Developer')
params.append('description', 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/')
params.append('awesome', true)
@khalid32
khalid32 / Convert ISO Date format to dd-mm-yyyy
Created November 28, 2017 03:45
a demonstration to convert toISOString() to dd-mm-yyyy with JavaScript
new Date().toISOString().replace(/T.*/,'').split('-').reverse().join('-')
@CodeMyUI
CodeMyUI / index.html
Created October 30, 2017 10:33
SVG Gooey Hover Menu Concept
<div id="menu">
<div class="hamburger">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</div>
<div class="menu-inner">
<ul>
<li>Menu Item</li>
@webgurus
webgurus / acf-repeater-pagination.php
Created July 18, 2017 09:29
example on how to paginate an acf repeater image gallery
<?php
/*
* Paginate Advanced Custom Field repeater
*/
if( get_query_var('page') ) {
$page = get_query_var( 'page' );
} else {
$page = 1;
}
@helgatheviking
helgatheviking / kia_add_script_to_footer.php
Created February 24, 2017 18:09
Add plus and minus buttons to WooCommerce quantity inputs
@luisfelipe-dev
luisfelipe-dev / Barra de Rolagem Personalizada
Last active January 22, 2023 14:31
barra de rolagem, scroll
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background-color: #eaeaea;
}
::-webkit-scrollbar-thumb {
background-color: #b0b0b0;
border-radius: 6px;
cursor: pointer;