The login procedure for skribbl.io is divided between several network requests.
Request Headers:
User-Agent: <user agent>
Accept: */*
Accept-Language: en-US;q=0.7,en;q=0.3
Made this example to show how to use Next.js router for a 100% SPA (no JS server) app.
You use Next.js router like normally, but don't define getStaticProps
and such. Instead you do client-only fetching with swr
, react-query
, or similar methods.
You can generate HTML fallback for the page if there's something meaningful to show before you "know" the params. (Remember, HTML is static, so it can't respond to dynamic query. But it can be different per route.)
Don't like Next? Here's how to do the same in Gatsby.
""" | |
Fix opencv imshow in i3wm | |
- Use namedWindow with WINDOW_NORMAL | |
- Only close when Esc (==27) is pressed | |
(For some reason it triggers on Alt/i3 mod as well otherwise) | |
- 50% chance the window is opened in tiled mode or floating mode | |
Just change mode to liking after the fact with keybind | |
""" | |
import cv2 |
This project makes a wifi router out of an ASUS PCE-AC88 wireless adapter and your Ubuntu Linux computer that can exceed top of the line routers.
Instead of buying a gaming grade router or another computer that you install openWRT on, follow this project and put the savings towards upgrading your main computer or modem.
The adapter needs to be added to a PCI slot and the wireless antenna needs to be connected to the adapter. If your computer does not detect it, you may need to re-seat the adapter in the slot. If you can't detect wireless networks after installing the firmware below then this is probably why.
For your computer to use the wifi adapter you need to add the missing firmware that Asus won't provide.
#!/usr/bin/python3 | |
""" | |
Copyright 2021 Mygod | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
#include <nytl/vec.hpp> | |
#include <nytl/vecOps.hpp> | |
#include <vector> | |
#include <limits> | |
using Polygon = std::vector<nytl::Vec2f>; | |
/// Returns whether the two given convex polygons intersect using the | |
/// separating axis theorem. The given polygons can be in clockwise or |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare git@github.com:usi-systems/easytrace.git