Skip to content

Instantly share code, notes, and snippets.

View daniloab's full-sized avatar
🎯
Focusing

Danilo Assis daniloab

🎯
Focusing
View GitHub Profile
## git aliases
co = checkout
st = status
cob = checkout -b
cim = commit -m
alias = ! git config --get-regexp ^alias\. | sed -e s/^alias\.// -e s/\ /\ =\ /
pom = pull origin master
poma = pull origin main
com = checkout master
coma = checkout main
import { useSnackbar } from 'notistack';
import { MutationParameters, PayloadError } from 'relay-runtime';
import { useMutation, UseMutationConfig } from 'react-relay';
export const getError = (data: any) => {
if (data?.error) {
return data.error;
}
/**
 * Metro configuration for React Native
 * https://github.com/facebook/react-native
 *
 * @format
 */
const path = require('path');

Problems

After installed brew, node, npm, nvm, yarn we must export some variables. This is a starter file to my .bashrc.

Can be used for .zshrc just need to remove the bash eternal history lines or understand the error beyond shopt

export PATH=/opt/homebrew/bin:$PATH
export NVM_DIR=~/.nvm

export CLICOLOR=1

Hi there, Im trying to configure my react native environment on my Macbook M1. When trying to create a new react native project from Cli returns:

creating

npx react-native init RnRQYPoc --template react-native-template-typescript

...

✔ Downloading template
✔ Copying template
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
Fetching podspec for `boost` from `../node_modules/react-native/third-party-podspecs/boost.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Traceback (most recent call last):
	45: from /usr/local/bin/pod:23:in `<main>'
	44: from /usr/local/bin/pod:23:in `load'
	43: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55:in `<top (required)>'

alias list

  • co = checkout
  • st = status
  • cob = checkout -b
  • cim = commit -m
  • alias = ! git config --get-regexp ^alias. | sed -e s/^alias.// -e s/\ /\ =\ /
  • pom = pull origin master
  • poma = pull origin main

how to add it

<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\FunctionalTestingFramework\Config;
use Magento\FunctionalTestingFramework\Exceptions\TestFrameworkException;
class MftfApplicationConfig
2021-08-03T17:21:19+00:00 DEBUG order data Array
(
    [id] => 48
    [parent_id] => 0
    [status] => pending
    [currency] => BRL
    [version] => 5.5.2
    [prices_include_tax] => 
    [date_created] => WC_DateTime Object