Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Vinicius Guerrero vini-guerrero

🎯
Focusing
  • São Paulo
Block or report user

Report or block vini-guerrero

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View GodotFireball
shader_type canvas_item;
uniform bool hide_background = true;
uniform int flame_amount = 1;
vec2 hash( vec2 p ){
p = vec2( dot(p,vec2(127.1,311.7)),
dot(p,vec2(269.5,183.3)) );
return -1.0 + 2.0 * fract(sin(p) * 43758.5453123);
}
View blender-basic-ui-example-28x.py
# https://blender.stackexchange.com/q/57306/3710
bl_info = {
"name": "Add-on Template",
"description": "",
"author": "p2or",
"version": (0, 0, 2),
"blender": (2, 80, 0),
"location": "3D View > Tools",
"warning": "", # used for warning icon and text in addons panel
@vini-guerrero
vini-guerrero / main_scene.gd
Created Apr 26, 2019
Godot-Facebook Script
View main_scene.gd
Godot Scene
Node
>>LoginButton
>>ShareButton
>>LoginStatus
extends Node
var fb
@vini-guerrero
vini-guerrero / UPNP.gd
Created Jan 29, 2019
This snippet checks if the router is available to port forward using Godot's RPC system
View UPNP.gd
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)
View authState.js
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 {
You can’t perform that action at this time.