Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Torres danielfttorres

  • Sao Paulo, Brazil
View GitHub Profile
View AD-XX-template.md

AD-XX: <TOPIC - short, concise summary>

  • Date: <DATE - when the decision was made>
  • Deciders: <DECIDERS - list everyone involved in the decision>
  • Status: [PROPOSED | ACCEPTED | SUPERSEDED | DEPRECATED]
  • Category: <CATEGORY - use a simple grouping to help organize the set of decisions (e.g. backend, payment, user management, ...)>

Related

View semantic-commit-messages.md

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@danielfttorres
danielfttorres / RSACipher.java
Created Jul 4, 2020 — forked from awesometic/RSACipher.java
RSA encryption example for android
View RSACipher.java
/**
* Created by Awesometic
* It's encrypt returns Base64 encoded, and also decrypt for Base64 encoded cipher
* references: http://stackoverflow.com/questions/12471999/rsa-encryption-decryption-in-android
*/
import android.util.Base64;
import java.nio.charset.StandardCharsets;
import java.security.InvalidKeyException;
import java.security.KeyFactory;
@danielfttorres
danielfttorres / rsaCipher.js
Created Jun 25, 2020 — forked from awesometic/rsaCipher.js
RSA encryption example for Node.js using node-rsa.
View rsaCipher.js
/**
* Created by Awesometic
* references: https://github.com/rzcoder/node-rsa
* RSA encryption example for Node.js with node-rsa. It's encrpyt returns Base64 encoded cipher, also decrypt for Base64 encoded cipher. RSA public key be returned in PKCS8 format.
* License for node-rsa
Copyright (c) 2014 rzcoder<br/>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
@danielfttorres
danielfttorres / logger.js
Created Jun 3, 2020 — forked from cklanac/logger.js
Morgan, Winston and Loggly
View logger.js
'use strict';
const { LOGGLY_TOKEN } = require('../config');
/**
* [Winston](https://github.com/winstonjs/winston)
* A multi-tranport async logging library
*
* Use winston to implement our logger, but the rest of the app uses
* the generic logger interface that we export. This decouples logging
* logic in our code from implementation with Winston.
View Keybase.md

Keybase proof

I hereby claim:

  • I am danielfeelfine on github.
  • I am danielfeelfine (https://keybase.io/danielfeelfine) on keybase.
  • I have a public key ASBAO5UP1NrYGADTEDNpWLETKY0sKd8G493C0y9XID1y3Ao

To claim this, I am signing this object:

View gist:082a3cebd5a3bf742eb3ca74b7b6e1de
Verifying my Blockstack ID is secured with the address 1H3eP5Fzghoxrw3P1B9NFpZ8ETgKriW8Vk https://explorer.blockstack.org/address/1H3eP5Fzghoxrw3P1B9NFpZ8ETgKriW8Vk
@danielfttorres
danielfttorres / CreateStoryMutation.js
Last active Nov 1, 2017
Some stuff for help to make Relay Modern mutation updates
View CreateStoryMutation.js
// @flow
import Relay, { graphql } from 'react-relay'
import { mutationCreateUpdater} from './mutationUpdater'
const mutation = graphql`
mutation createStoryMutation($input: CreateStoryInput!) {
createStory(input: $input) {
story {
id
View keybase.md

Keybase proof

I hereby claim:

  • I am danielfeelfine on github.
  • I am danielfeelfine (https://keybase.io/danielfeelfine) on keybase.
  • I have a public key ASDQPcarojRWSNAeeG7uMhvKJeOsQ2ahKjFf2_t8q9O9nwo

To claim this, I am signing this object:

@danielfttorres
danielfttorres / RegisterScreen.js
Last active Apr 25, 2018
A example of Mutation using Relay Modern and React Native
View RegisterScreen.js
// @flow
import React, { PureComponent } from 'react'
import { View, Text, TextInput, TouchableOpacity } from 'react-native'
import { commitMutation, graphql } from 'react-relay'
import environment from './createRelayEnvironment'
import style from './RegisterScreen.style'
/**
* In Relay Modern a name pattern are used in Mutations or Queries, as example below:
* `ComponentName__MutationName__Mutation(...`
You can’t perform that action at this time.