Skip to content

Instantly share code, notes, and snippets.

View ericpatrick's full-sized avatar

Eric Patrick ericpatrick

  • GoGeo
  • Goiânia- GO
View GitHub Profile
@ericpatrick
ericpatrick / MemeMaker.html
Created July 25, 2017 22:03 — forked from jwill/MemeMaker.html
Starter code for Meme Maker
<!DOCTYPE html>
<html>
<head>
<title>MemeMaker-Simple</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<style>

React Native Starter Project

Antes de começar, instale o yarn: npm install -g yarn

Inicie um projeto react native com o comando: react-native init nomeDoProjeto

Complemente o package.json com as seguintes dependências:

@ericpatrick
ericpatrick / logger.js
Created December 3, 2018 12:38
Logger para react-native usando o sentry
// @flow
/* eslint-disable no-console, no-plusplus, no-param-reassign */
import { Sentry, SentrySeverity } from 'react-native-sentry';
type Level = 'debug' | 'warning' | 'error' | 'info';
function log(message: string, ...args: Array<any>): void {
if (__DEV__) {
console.log(message, ...args);
} else {
@ericpatrick
ericpatrick / generate-ssh-key.sh
Created September 21, 2019 13:58 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa