Skip to content

Instantly share code, notes, and snippets.

View braian125's full-sized avatar

Brian Vanegas Parra braian125

View GitHub Profile
@huksley
huksley / decodeGoogleNewsUrl.ts
Last active May 19, 2025 12:25
This script decodes Google News generated encoded, internal URLs for RSS items
/**
* This magically uses batchexecute protocol. It's not documented, but it works.
*
* Licensed under: MIT License
*
* Copyright (c) 2024 Ruslan Gainutdinov
*
* 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

AWS Cloudformation ApiGateway vs ApiGatewayV2 with Lambda

This shows how to convert a basic REST ApiGateway template to its equivalent HTTP ApiGatewayV2.

The original code before refactoring to ApiGatewayV2 comes from this article

Deployment

Replace MY_PROFILE, MY_REGION and MY_STACK_NAME

@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 May 14, 2025 09:43
`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