Skip to content

Instantly share code, notes, and snippets.

View rafaelcavalcante's full-sized avatar
🏠
(I wish i was) Working from home

Rafael Cavalcante rafaelcavalcante

🏠
(I wish i was) Working from home
View GitHub Profile
@rafaelcavalcante
rafaelcavalcante / INK_api_admin_hunting_report.json
Created July 22, 2022 03:24
INK_api_admin_hunting_report
{
"data": {
"candidates": [
{
"id": 6,
"gid": "c81bd15297d3610dc0a75ff0375cb160",
"name": "teste insetr",
"surname": "sobre nome",
"birth_date": "1988-05-15T00:00:00.000000Z",
"cellphone": "95981110695",
@rafaelcavalcante
rafaelcavalcante / ktt-data.json
Last active February 23, 2022 23:13
ktt-data
{
"content":{
"categories":[
{
"label":"All Categories",
"value":"all"
},
{
"label":"Integração",
"value":"1"
@rafaelcavalcante
rafaelcavalcante / suggested-readings.json
Last active November 6, 2023 19:06
Suggested Readings
[
{
"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"
jest.mock('react-native-gesture-handler')
const contacts = [
{
displayName: 'Abel Tesfaye',
cellphone: '11971033230'
},
{
givenName: 'Chancelor ',
familyName: 'Bennett',
@rafaelcavalcante
rafaelcavalcante / default-node-version-on-nvm.md
Created November 12, 2018 15:54
Setting the default node version on NVM
$ nvm alias default VERSION
@rafaelcavalcante
rafaelcavalcante / helpers.js
Created September 13, 2018 17:50
elocc/helpers
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;
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;
@rafaelcavalcante
rafaelcavalcante / search.php
Last active May 2, 2017 16:56
Wordpress - Display the number of search results
$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/
@rafaelcavalcante
rafaelcavalcante / penck-thumbnail.php
Created March 8, 2017 15:44
the_penck_thumbnail()
<?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
@rafaelcavalcante
rafaelcavalcante / Preferences.sublime-settings
Last active May 8, 2017 03:41
Sublime Text 3 - User Preferences
{
// 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"