Skip to content

Instantly share code, notes, and snippets.

View vini-guerrero's full-sized avatar
💻
Keep On Rockin' In The Free World!

Vinicius Guerrero vini-guerrero

💻
Keep On Rockin' In The Free World!
View GitHub Profile
import React from 'react'
import { BrowserRouter as Router, Route, Link, Redirect, withRouter } from 'react-router-dom'
import authState from './CoreComponents/authState'
import PrivateRoute from './CoreComponents/privateRoute'
import fakeAuth from './CoreComponents/fakeAuth'
const Public = () => <h3>Public</h3>
const Protected = () => <h3>Protected</h3>
class Login extends React.Component {
@vini-guerrero
vini-guerrero / UPNP.gd
Created January 29, 2019 00:37
This snippet checks if the router is available to port forward using Godot's RPC system
extends Node2D
func _ready():
var port = 12345
var upnp = UPNP.new()
upnp.discover()
for i in range(upnp.get_device_count()):
var upnp_device = upnp.get_device(i)
print('device[',i,']:')
print('- igd_our_addr: ', upnp_device.igd_our_addr)
@vini-guerrero
vini-guerrero / Create_IsoCam.py
Created March 18, 2020 03:11 — forked from krasnovpro/Create_IsoCam.py
Creates a true isometric camera in blender
# This script creates two kinds of isometric cameras.
#The one, TrueIsocam called camera, is the mathematical correct isometric camera with the 54.736 rotation to get the 30 degrees angles at the sides of the rhombus.
#The other, GameIsocam called camera, is a camera with which you can render isometric tiles for a 2d game. Here we need a 60 degrees angle instedad of the 54.736 one to get a proper stairs effect and a ratio of 2:1
# Then there is the special case with a 4:3 ratio, which is button 3. You can also make 2D games with that one. The view is more topdown though as with a 2:1 ratio of the traditional game iso view.
# The fourth button creates a simple groundplane where you can place your stuff at.
#You can of course set up everything by hand. This script is a convenient solution so that you don't have to setup it again and again.
# The script is under Apache license
@vini-guerrero
vini-guerrero / Google Play Api - Apk Upload.md
Created January 20, 2021 01:07 — forked from machinekoder/Google Play Api - Apk Upload.md
This python script uploads an apk file into Google Play Store using Android Play Publisher API

In Google Developer Console inside your app project, on the Credentials section, you must create a new "Service Account" "Client ID", if you have not already. And download the p12 file. You need the service account key file, generated in the Google APIs Console into the same directory and rename it to key.p12.

On Google Play Developer Console you have to give permissions to "YOUR_SERVICE_ACCOUNT_EMAIL@developer.gserviceaccount.com" for uploading apks.

Installation

Download Google APIs Client Library for Python (google-api-python-client): https://code.google.com/p/google-api-python-client/ or use pip:

$ pip install google-api-python-client
@vini-guerrero
vini-guerrero / binarySearchTree.js
Created April 19, 2023 16:29 — forked from Prottoy2938/binarySearchTree.js
Binary Search Tree implementation in JavaScript
// A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child.
// Left child is always less than it's parent and the right child is always bigger than it's parent.
class Node {
constructor(value) {
this.value = value;
this.right = null;
this.left = null;
}
}