profile
viewpoint
Marguel Gutierrez Marguelgtz WeAreApp Everywhere https://www.linkedin.com/in/marguelgtz weareapp.co

startederikdelange/Reinforcement-Learning-Maze

started time in a day

startedpizza3/re-swipe

started time in 5 days

startedreach/router

started time in 6 days

fork Marguelgtz/mujoco-worldgen

Automatic object XML generation for Mujoco

fork in 17 days

startedopenai/mujoco-worldgen

started time in 17 days

startedReactNativeNews/React-Native-Apps

started time in 24 days

startedbuilderbook/builderbook

started time in 24 days

fork Marguelgtz/hackernews-react-graphql

Hacker News clone rewritten with universal JavaScript, using React and GraphQL.

fork in 24 days

startedclintonwoo/hackernews-react-graphql

started time in 24 days

startedluukdv/gooey-react

started time in a month

startedmicrosoft/TypeScript-React-Conversion-Guide

started time in a month

startedakshgpt7/youtube-deno

started time in a month

push eventMarguelgtz/oak

Lambda_School_Loaner_26

commit sha 1cd8ea7e9c14de049fc2d149b1bc2e738d1b3936

only needed to add await to promise ME DUMBSOMETIMES

view details

push time in a month

push eventMarguelgtz/oak

Lambda_School_Loaner_26

commit sha 8ceb754248fcb203c3c12a4402321d22579b65c8

debugging promise responses

view details

Lambda_School_Loaner_26

commit sha 45267a637dcfeb511d2b17f6d091c61980e5d685

debugging promise responses

view details

push time in a month

push eventMarguelgtz/oak

Kitson Kelly

commit sha 506ad2a5d4e5f82e3014ed167fd1bd252f1711f5

Add .send() to context

view details

Kitson Kelly

commit sha ca212615989ddf7376858e933f6a0a69c1b09478

Update to Deno 1.0.2 and std 0.53.0

view details

Reed Jones

commit sha d6f90580f68e22f7c60713733b8cdd95f06ffcb7

Inconsistent version was 'pinned' in the docs (#103)

view details

Daniël Illouz

commit sha 47429e969a193501a9b2f668fb7bd29878f328a0

Fixed typo in middleware paragraph (#112)

view details

Kitson Kelly

commit sha a7562cccf5f48cccc882ca78f5a34d4ac03a4926

Rewrite router based on @koa/router

view details

Kitson Kelly

commit sha db53b3450e302e5669ce24f961a513d10cce730b

Cookies are iterable Fixes #107

view details

Kitson Kelly

commit sha 8ff91819ee02e16a4ff66896615acb3146b5527a

Improvements to cookie example

view details

Kitson Kelly

commit sha eacb19b92ce1b0541c5d55541002782365d3629b

Add getQuery helper. Fixes #121

view details

Kitson Kelly

commit sha 48b1a41cc9d644b9c7b835568b67b5eee12df72d

Update to media_types v2.3.3

view details

Kitson Kelly

commit sha 5e591f91a5af410a83a779a9e3314a2d7bb40545

Improve state and router param types. Co-authored-by: Zeng Xian <xian.zeng@iftech.io>

view details

Caíque de Castro Soares da Silva

commit sha d28b727a24af99b5554e01b138e939f1c0d78352

Fix encode uri on redirect (#120) Resolves #119

view details

SillyFreak

commit sha 094916b8deb94760e242fcbee971a52fb49f6e5b

fix example author (#123)

view details

Kitson Kelly

commit sha 71f25d792b4e9f385cf427b49e423c4636ae994b

Add "listen" event for Application. Fixes #104

view details

Kitson Kelly

commit sha e91d619cac8bafa27990f1e7856da862b635033c

Restore router delete method types. Fixes #122

view details

Kitson Kelly

commit sha efaecc01b192515a47b1a6526b173110f5253f80

Formatting

view details

Kitson Kelly

commit sha ad899191d549d1994794b34dd2ced4e9b893807e

Unset response.status reflects to be sent status. Plus improvements to inline docs, and hardening of response when not writable. Fixes #118

view details

Kitson Kelly

commit sha 06a649a73a22a8dfbb55591c9e1777e79048d2a1

Process functions pass to response.body

view details

Kitson Kelly

commit sha 7264018d756d5355c9a479dd45389298ae3a5774

Mention @koa/router instead of koa-router

view details

mikolaj6r

commit sha 596255bd76835a1a5242b3993b86b3491e02860c

fix(readme): add `async` keyword where needed (#130)

view details

Lambda_School_Loaner_26

commit sha 8595e690ae6e76220a09baeda6324eb6542699ea

pull most recent oak version

view details

push time in a month

starteddenosaurs/denon

started time in a month

startedevenstensberg/deno-webpack

started time in a month

startedzoom/zoom-e2e-whitepaper

started time in a month

startedaristocratos/bashtop

started time in a month

startedfacebookexperimental/Recoil

started time in a month

startedCovidShield/mobile

started time in a month

startedmyspaghetti/macos-virtualbox

started time in a month

startedkarpathy/char-rnn

started time in 2 months

pull request commentoakserver/oak

Un-Strict Prefix routing fix

@kitsonk No problem, I am testing out deno/oak and the prefix was bothering a bit so went ahead and implemented a quick fix. I'll be on the lookout for your fix just in case I need to refactor my code  👍🏼

Marguelgtz

comment created time in 2 months

push eventMarguelgtz/oak

Lambda_School_Loaner_26

commit sha 209c09c5dd5ca87b6b6939def60ffe555283b2b2

added predix example file

view details

push time in 2 months

issue commentoakserver/oak

Q&A: Router prefix problem

just submitted a fix 😁👍🏼, wrong path was beign sent to pathToRegexp() when strict was false

StraightUpCode

comment created time in 2 months

PR opened oakserver/oak

Un-Strict Prefix routing fix

I fixed the problem, I'll submit a pull request once I clean my code up.

as @aldinp16 mention setPrefix() is where it seems to go wrong and its correct 😬. oak uses path-to-regexp to create the reject that creates matches for the routes. One of the arguments it needs it's the path, when we set an endpoint with the base path '/' the setPrefix() function is putting the prefix and the path together

this.path = `${prefix}${this.path}`

which when we send to pathToRegexp() even with the strict flag as false we are still passing the path with the strict trailing / because those 2 are put together so it returns a regex that needs to verify that last / as part of the path hence it is on a permanent strict mode.

FIX

debugging was the hard part but the fix is relatively easy. We just have to check if we have a "base" path / and if the strict option is false. if those things are both true we just set the path to its prefix this.path =${prefix}; else continue as usual with this.path = ${prefix}${this.path};

 if (this.path === "/" && !this.options.strict) {
        // check if path is set to "base" and the strict option
        this.path = `${prefix}`;
      } else {
        this.path = `${prefix}${this.path}`;
      }

Fixes #91

+6 -1

0 comment

1 changed file

pr created time in 2 months

push eventMarguelgtz/oak

Lambda_School_Loaner_26

commit sha 983db327518a6de4ad2e38c72145b2f57b01022c

clean up code

view details

push time in 2 months

push eventMarguelgtz/oak

Lambda_School_Loaner_26

commit sha 077395f3821a1ede3459f594fb1d7fd65bc5798f

remove unused add stuff

view details

push time in 2 months

push eventMarguelgtz/oak

Lambda_School_Loaner_26

commit sha 26f4d1bfb3ad40a17e4551c2d73de1bdcbd5b159

routing prefix fix

view details

push time in 2 months

fork Marguelgtz/oak

A middleware framework for Deno's net server 🦕

https://oakserver.github.io/oak/

fork in 2 months

startedkolson25/WebRTC-Multi-Peer-Video-Audio

started time in 2 months

startedNMathar/deno-express

started time in 2 months

starteddenoland/deno

started time in 2 months

starteddenolib/awesome-deno

started time in 2 months

starteddenjucks/dex

started time in 2 months

startedjustsml/guides

started time in 2 months

fork Marguelgtz/code-server

Run VS Code on a remote server.

https://coder.com

fork in 2 months

startedcdr/code-server

started time in 2 months

fork Marguelgtz/kaleidosync

An HTML5 Spotify visualizer, built with spotify-viz and Vue.

https://www.kaleidosync.com

fork in 3 months

startedzachwinter/kaleidosync

started time in 3 months

fork Marguelgtz/web-worker

Consistent Web Workers in browser and Node.

https://npm.im/web-worker

fork in 3 months

starteddevelopit/web-worker

started time in 3 months

startedwebrtc/samples

started time in 3 months

startedredux-utilities/redux-promise

started time in 3 months

startedtc39/proposal-dynamic-import

started time in 3 months

startedtimruffles/mobile-drag-drop

started time in 3 months

startedrgommezz/react-native-offline

started time in 3 months

startedzeit/swr

started time in 3 months

fork Marguelgtz/3d-photo-inpainting

[CVPR 2020] 3D Photography using Context-aware Layered Depth Inpainting

https://shihmengli.github.io/3D-Photo-Inpainting/

fork in 3 months

startedvt-vl-lab/3d-photo-inpainting

started time in 3 months

startedget-wrecked/medal-developers

started time in 3 months

more