Skip to content

Instantly share code, notes, and snippets.

View yurimatheus's full-sized avatar
📱
<coding />

Yuri Matheus Gomes yurimatheus

📱
<coding />
  • Salvador/BA
View GitHub Profile
@justingreerbbi
justingreerbbi / gist:768f1effcca69b4098c9d0f7731deba0
Last active June 11, 2024 11:40
Logout user using WP REST API WordPress Custom Endpoint
/**
* Head to https://wp-oauth.com for more info on user authentication and custom login and out solutions
* for WordPress
*/
add_action( 'rest_api_init', function () {
register_rest_route( 'wpoauthserver/v1', '/logout/', array(
'methods' => 'GET',
'callback' => 'wp_oauth_server_logout'
) );
} );
@rikukissa
rikukissa / POST.md
Last active February 10, 2025 23:38
React Hook prompting the user to "Add to homescreen" 🏠 #PWA #React
title slug createdAt language preview
React Hook prompting the user to "Add to homescreen"
react-hook-prompting-the-user-to-add
2018-11-29T20:35:02Z
en
Simple React Hook for showing the user a custom "Add to homescreen" prompt.

React Hook for showing custom "Add to homescreen" prompt

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="/Users/diegofernandes/.oh-my-zsh"
export PATH="$PATH:/usr/local/bin"
@dimaspante
dimaspante / woo_functions.php
Last active May 2, 2023 04:46
Edições gerais para o Woocommerce no arquivo de funções do Wordpress
<?php
/**
* Altera detalhes nos forms de checkout
*
* Lista de campos disponível em:
* https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/
*/
function my_shipping_fields($fields){
$fields['shipping']['shipping_address_2']['label_class'] = "visible"; //form de entrega
@miazga
miazga / howto.md
Last active March 23, 2024 16:59
Expo + Android TV
import React from 'react';
import { View, Text, StyleSheet, StatusBar, TouchableOpacity, TouchableWithoutFeedback } from 'react-native';
import Svg, { Path } from 'react-native-svg';
import Constants from 'expo-constants';
import { SimpleLineIcons, Ionicons, MaterialCommunityIcons } from '@expo/vector-icons';
export default function App() {
return (
<View style={styles.container}>