Skip to content

Instantly share code, notes, and snippets.

View braian125's full-sized avatar

Brian Vanegas Parra braian125

View GitHub Profile
@vadiraja
vadiraja / AuthScreen.js
Last active January 25, 2021 16:52
Oauth configuration and URL Opener for social login
import { Linking } from 'expo';
import * as WebBrowser from 'expo-web-browser';
/**Amplify documentation has this example */
const urlOpenerExpo = async (url, redirectUrl) => {
console.log(">>>>>>>>> in urlOpener")
// On Expo, use WebBrowser.openAuthSessionAsync to open the Hosted UI pages.
const { type, url: newUrl } = await WebBrowser.openAuthSessionAsync(url, redirectUrl);
console.log("Type")
@motatoes
motatoes / stopwatch.vue
Last active April 30, 2021 13:05
quick and dirty stopwatch component for vueJS
<template>
<span id="time" v-html="time"></span>
</template>
<style>
</style>
<script>
module.exports = {
@pedrofurtado
pedrofurtado / SparseMatrix.java
Created January 3, 2016 16:18
Implementation of Sparse Matrix in Java
/**
* @file
* Sparse matrix.
*
* Implementation with singly linked list, through the nested class SparseMatrixNode.
* It's used nested class to improve encapsulation.
*
* @author Pedro Furtado
*/
@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active March 21, 2024 09:16
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository