$ nvm alias default VERSION
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
{ | |
"data": { | |
"candidates": [ | |
{ | |
"id": 6, | |
"gid": "c81bd15297d3610dc0a75ff0375cb160", | |
"name": "teste insetr", | |
"surname": "sobre nome", | |
"birth_date": "1988-05-15T00:00:00.000000Z", | |
"cellphone": "95981110695", |
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
{ | |
"content":{ | |
"categories":[ | |
{ | |
"label":"All Categories", | |
"value":"all" | |
}, | |
{ | |
"label":"Integração", | |
"value":"1" |
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
[ | |
{ | |
"title": "Unpopular Opinion: It’s harder than ever to be a good software engineer", | |
"active": true, | |
"url": "https://juraj.hashnode.dev/unpopular-opinion-its-harder-than-ever-to-be-a-good-software-engineer" | |
}, | |
{ | |
"title": "Canary Deployment Intro to deployment strategies: blue-green, canary, and more", | |
"active": true, | |
"url": "https://dev.to/mostlyjason/intro-to-deployment-strategies-blue-green-canary-and-more-3a3" |
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
jest.mock('react-native-gesture-handler') | |
const contacts = [ | |
{ | |
displayName: 'Abel Tesfaye', | |
cellphone: '11971033230' | |
}, | |
{ | |
givenName: 'Chancelor ', | |
familyName: 'Bennett', |
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 helpers = { | |
toCurrency: (value) => value.toLocaleString('pt-BR', { style: 'currency', currency: 'BRL' }), | |
parseIsoDate: (value) => Date.parse(value).toLocaleDateString('pt-BR', { day: 'numeric', month: 'long', year: 'numeric' }) | |
}; | |
export default helpers; |
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
jQuery(document).ready(function(){ | |
jQuery(window).on('scroll', function(){ | |
var scrollTop = jQuery(window).scrollTop(); | |
var windowHeight = jQuery(window).height(); | |
var windowAxis = scrollTop + (windowHeight / 2); | |
jQuery('[data-bubble]').each(function(){ | |
var height = jQuery(this).height(); | |
var top = jQuery(this).offset().top; |
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
$allsearch = &new WP_Query("s=$s&showposts=-1"); | |
$count = $allsearch->post_count; | |
echo $count; // print results quantity | |
wp_reset_query(); | |
// Source: http://www.problogdesign.com/wordpress/3-codes-for-a-far-better-wordpress-search-page/ |
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 | |
/* | |
PT: O snippet "penck thumbnail" foi feito para exibir | |
o caminho da imagem de acordo com o objeto de imagem retornado do | |
plugin Advanced Custom Fields | |
EN: The penck thumbnail snipper were made to output the | |
image path according to the image object returned by the | |
Advanced Custom Fields plugin |
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
Show hidden characters
{ | |
// editor behavior | |
"ensure_newline_at_eof_on_save": true, | |
// you-will-never-browse-this-while-coding-etc stuff | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
"node_modules" |
NewerOlder