Skip to content

Instantly share code, notes, and snippets.

View EduardoLopes's full-sized avatar

Eduardo Lopes EduardoLopes

View GitHub Profile
override public function quad_add( _options:PackedQuadOptions ) : Int {
def(_options.visible, true);
def(_options.flipx, false);
def(_options.flipy, false);
var _uid = Luxe.utils.uniquehash();
//First triangle
var budo = require('budo')
//There's no erro if running this directly from the command line
//the error doesn't show if the dir arg is removed
//if there's the --dir arg, subarg seems to change the result
budo.cli(['app/js/main.js:bundle.js', "--live", "--dir", "./app", "-- -t babelify --presets [ env ]"])
/*
Error: TypeError: file.split is not a function
import "random" for Random
class Perlin{
construct new(seed, dimension, octaves, tile, unbias){
_random = Random.new(seed)
_dimension = dimension
_octaves = octaves
@EduardoLopes
EduardoLopes / react-course.md
Last active September 10, 2020 01:36
Even though i already know React, i'm watching a course about it on Udemy.

React Course

Even though i already know React, i'm watching a course about it on Udemy. The course talks about Hooks, but it's mainly created around class components, and talks a lot about the deprecated lifecycle methods. I was kinda aware of that, it's not a complaint.

I'm writing this to list the things i like and things i don't like about some conventions people follow when making react apps.

I'll be updating this as i'm advancing in the course.

I like