Skip to content

Instantly share code, notes, and snippets.

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

Yuri Matheus Gomes yurimatheus

📱
<coding />
  • Workspace Hub
  • Salvador/BA
View GitHub Profile
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}>
@miazga
miazga / howto.md
Last active March 23, 2024 16:59
Expo + Android TV
@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
# 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"
@rikukissa
rikukissa / POST.md
Last active February 20, 2024 07:30
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

@justingreerbbi
justingreerbbi / gist:768f1effcca69b4098c9d0f7731deba0
Last active January 11, 2024 11:04
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'
) );
} );
@jennimckinnon
jennimckinnon / .htaccess
Created May 7, 2017 15:21
Default .htaccess file for sub-directory installations of WordPress Multisite for versions 3.5+.
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
@thulioph
thulioph / service-worker.js
Created March 16, 2017 06:31
service worker example
(function() {
'use strict';
var cacheName = 'cache_v2.0';
var cacheFiles = [
'./',
'./index.html',
'./sw.js',
'./manifest.json',
'./src/assets/js/libs/sweetalert.min.js',
@DanielSantoro
DanielSantoro / ajaxify-cart.php
Last active November 22, 2022 13:34
AJAX Update Cart thats added to Template File Manually (
// Ensure cart contents update when products are added to the cart via AJAX (place the following in functions.php).
// Used in conjunction with https://gist.github.com/DanielSantoro/1d0dc206e242239624eb71b2636ab148
// Compatible with WooCommerce 3.0+. Thanks to Alex for assisting with an update!
function woocommerce_header_add_to_cart_fragment( $fragments ) {
global $woocommerce;
ob_start();
?>
@ajskelton
ajskelton / WP Customizer - Checkbox
Last active August 23, 2022 15:59
Add a Checkbox field to the WordPress Customizer.
$wp_customize->add_setting( 'themecheck_checkbox_setting_id', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'themeslug_sanitize_checkbox',
) );
$wp_customize->add_control( 'themeslug_checkbox_setting_id', array(
'type' => 'checkbox',
'section' => 'custom_section', // Add a default or your own section
'label' => __( 'Custom Checkbox' ),
'description' => __( 'This is a custom checkbox input.' ),