Skip to content

Instantly share code, notes, and snippets.


Robin mewmew

  • Sweden
View GitHub Profile

Ten seconds to ponder if a thread is worth it


A userstyle that makes you wait ten seconds before entering a Hacker News thread. I use stylus to manage mine.

.subtext {
  display: inline-block;
  background: linear-gradient(to left, transparent 50%, #f60 50%) right;
mewmew /
Created Oct 27, 2020 — forked from myusuf3/
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
mewmew /
Created Apr 24, 2020 — forked from raysan5/
A small state-of-the-art study on custom 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 or Unity for their games (or that's what lot of people think) becaus

#!/usr/bin/env python3
import librosa
import numpy as np
from pathlib import Path
import pandas as pd
class WaveFile(object):
filename = None
mewmew / main.c
Created Feb 6, 2020
Proof of concept to render first cutscene of Diablo 1.
View main.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "diablo.h"
#include "dx.h"
#include "init.h"
#include "interfac.h"
void StoreScreenshot();
mewmew /
Created Jan 17, 2020 — forked from alexander-hanel/
old and new names in (in progress)
import re
import sys
import os
def load_apis():
new_old_apis = [
# start of changes for
("hasValue", "has_value"),
("byteValue", "byte_value"),
("isLoaded", "is_loaded"),
mewmew / use-example.go
Last active Dec 24, 2019
Example of use-tracking API with modification of value.
View use-example.go
// nopTrunc propagates From values of truncation instructions that have no
// effect on type (where From and To type are the same).
// Example:
// before:
// %10 = xor i32 %src2, %src1
// %11 = trunc i32 %10 to i32
// %12 = xor i32 %sum, %11
mewmew / subject.c
Created Jul 17, 2019 — forked from ceeac/subject.c
Boomerang v0.5.0 output for dmi/cfg test file
View subject.c
int main(int argc, char *argv[]);
void basic_1_if(__size32 param1);
void basic_2_if_else(__size32 param1);
void basic_3_if_elseif(int param1);
void basic_4_if_elseif_else(__size32 param1);
void basic_5_head_controlled_loop(__size32 param1);
void basic_6_tail_controlled_loop(__size32 param1);
void basic_7_for_loop();
void basic_8_forever_loop(__size32 param1);
void basic_9_dead_block();
mewmew / natural_sort.go
Created Jun 30, 2019 — forked from philippbayer/natural_sort.go
A perverted kind of natural sort in golang
View natural_sort.go
package main
import (