Skip to content

Instantly share code, notes, and snippets.

@yxrmz
yxrmz / xmap_loader.py
Created February 7, 2025 22:26
xmap_loader
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 17 14:45:21 2024
@author: roman
"""
import h5py
from matplotlib import pyplot as plt
from decode_xmap_buffers import decode_xmap_buffers
import time
import sqlite3
import requests
import json
import os
import subprocess
import datetime
import spacy
import readline # to use the uparrow
@peteristhegreat
peteristhegreat / mupen64plus-2025-rpi-3b+.md
Last active February 7, 2025 22:43
mupen64plus.cfg optimizations 2025 Rpi 3b+ retropie raspberry pi emulation station attractmode retroarch

Introduction

I've had some RPi 3b+ kicking around for a long time now.

And the n64 emulation is pretty meh most of the time.

I fixed it today!

Speed up your N64 Emulation on Arm

@angantakpe
angantakpe / grpo_qwen-0-5b_single_t4.ipynb
Created February 7, 2025 22:24 — forked from qunash/grpo_qwen-0-5b_single_t4.ipynb
grpo_qwen-0-5b_single_t4.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kemoo2003
kemoo2003 / index.html
Last active February 7, 2025 22:26 — forked from isdaviddong/index.html
<!DOCTYPE html>
<html lang="ar">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>قلوب تتساقط</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
On iTerm2 - Open Preferences > Profiles > Keys > Key Mappings > Presets > Select Natural Text Editing
- You can move a word backwards using Option ⌥ + ← and a word forwards using Option ⌥ + →
- Move to the start of the line using fn + ← and to the end of the line with fn + →.
- Also you can delete a word backwards using Option ⌥ + ⌫, delete the whole line using Command ⌘ + ⌫.
If the preset doesn't appear, reinstall iTerm2. If you installed it using Homebrew + Cask:
brew cask reinstall iterm2
@clementi
clementi / SecureTokenGenerator.cs
Last active February 7, 2025 22:47
SecureTokenGenerator
using System;
using System.Collections.Generic;
public class SecureTokenGenerator : IDisposable
{
private bool disposed = false;
private readonly CryptoRandom random;
private readonly string alphabet;
private readonly int size;
import torch
import torch.nn as nn
import matplotlib.pyplot as plt
# Generator Model
class Generator(nn.Module):
def __init__(self):
super(Generator, self).__init__()
self.model = nn.Sequential(
nn.Linear(100, 256),
@hmowais
hmowais / us-states.json
Last active February 7, 2025 22:23
United States MAP JSON
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Belhome77
Belhome77 / readme.txt
Created February 7, 2025 22:21
When I was a child (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html