Moved to https://api.fmhy.net
| javascript:(function(){try{navigator.clipboard.readText().then(function(t){if(t){var e=window.open("","_blank","width=800,height=600");e.document.open(),e.document.write(t),e.document.close()}else alert("Clipboard is empty. Please copy some text to the clipboard first.")}).catch(function(t){console.error("Failed to read clipboard contents: ",t),alert("An error occurred while trying to access the clipboard. Please ensure your browser allows clipboard access.")})}catch(t){console.error("An error occurred:",t),alert("An error occurred while trying to open the new window with the clipboard content.")}})();//bookmarklet_title: HTML Preview from Clipboard |
| # update system | |
| $ sudo apt update && sudo apt upgrade | |
| # uninstall old node (v10?) | |
| $ sudo apt remove nodejs npm -y | |
| # install nvm | |
| $ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash | |
| # use 'unofficial builds' in nvm |
Online music/voice separator based on neural nets (using best models, including some from Sound Demixing Challenge) https://mvsep.com/
Quality of algorithms comparison https://mvsep.com/en/quality
Details of algorithms https://mvsep.com/en/algorithms
GUI for popular Vocal Remover models that uses Deep Neural Networks.
| // Open loop motor control example for L298N board | |
| #include <SimpleFOC.h> | |
| #include <neotimer.h> | |
| #define IN1 14 | |
| #define IN2 12 | |
| #define IN3 13 | |
| //#define IN4 8 | |
| // BLDC motor & driver instance |
| <body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c> |
| using System; | |
| using System.Text; | |
| using System.Text.RegularExpressions; | |
| namespace MainColorConsole | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { |
WARNING: Article moved to separate repo to allow users contributions: https://github.com/raysan5/custom_game_engines
A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.
Nowadays lots of companies choose engines like [Unreal](https:
| This gist is a list of instructions that I used to program my ATTiny85s with Micronucleus. They worked for me, but your mileage may vary! I would highly recommend starting by looking at the SparkFun article linked at the bottom for schematics and more in-depth info. This gist is mostly just a copy/paste list. | |
| ## Required: | |
| - ATTiny85 | |
| - AVR programmer | |
| - 1 uF capacitor | |
| - Micronucleus FW: https://github.com/micronucleus/micronucleus/releases | |
| - avrdude: http://www.nongnu.org/avrdude/ | |
| ## Setup: |
| // source: https://stackoverflow.com/a/3054357/826308 | |
| public static Image ConvertToGrayscale(Image image) | |
| { | |
| Image grayscaleImage = new Bitmap(image.Width, image.Height, image.PixelFormat); | |
| // Create the ImageAttributes object and apply the ColorMatrix | |
| ImageAttributes attributes = new System.Drawing.Imaging.ImageAttributes(); | |
| ColorMatrix grayscaleMatrix = new ColorMatrix(new float[][]{ | |
| new float[] {0.299f, 0.299f, 0.299f, 0, 0}, | |
| new float[] {0.587f, 0.587f, 0.587f, 0, 0}, |
