Skip to content

Instantly share code, notes, and snippets.

# Adam Foflonker
# 27 April 2024
# A dict is a data structure that stores key-value pairs, where each key MUST be unique.
# This allows us to "map" unique keys to a specific value.
# Lets say for example that we want to store a list of people's names and their ages. We
# could do this using 2 parallel lists called names and ages where index 0 of ages is the age
# of the person's name at index 0 of names. But there's a better way to do this. What if we had a
# data structure that allows us to map or pair an age to a name (without us creating a class/struct)?
@MuhammadSaim
MuhammadSaim / rarreg.key
Last active April 27, 2024 14:32
Step 1: Create a file called rarreg.key Step 2: Paste into the file the raw content of this gist Step 3: Go to Winrar install directory (by default => c:\ProgramFiles\WinRAR\ ) Step 4: Paste the rarreg.key into WinRAR directory Step 5: Enjoy
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
@juanbrujo
juanbrujo / PlayStationBIOSFilesNAEUJP.md
Last active April 27, 2024 14:31
Files for PlayStation BIOS Files NA-EU-JP
@MCJack123
MCJack123 / yellowbox.lua
Last active April 27, 2024 14:29
YellowBox: Virtual machines for ComputerCraft
--- YellowBox 1.0
-- By JackMacWindows
--
-- @module yellowbox
--
-- This module allows you to easily create and manage special ComputerCraft
-- containers called "boxes". These boxes contain their own separate execution
-- environment, completely sequestered from the caller's environment. This allows
-- effective "virtual machines" running CraftOS.
--
@carlessanagustin
carlessanagustin / win2ix.md
Last active April 27, 2024 14:29
Windows and Unix command line equivalents
Windows command Unix command Notes
set env Set on Windows prints a list of all environment variables. For individual environment variables, set is the same as echo $ on Unix.
set Path export $PATH Print the value of the environment variable using set in Windows.
set PROJ -- result: PROJ=c:\project
echo %PROJ% echo $PROJ result: c:\project

|

@fnky
fnky / ANSI.md
Last active April 27, 2024 14:27
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@tomoaki0705
tomoaki0705 / text.md
Last active April 27, 2024 14:25
「OpenCVの画像処理をGPU(CUDA)で高速化する」を読んでresizeをマルチコア対応するお話。

はじめに

OpenCVでの処理(リサイズなど)を、簡単にマルチコア化する方法をどなたかご存知でしたら教えて頂けないでしょうか? TBBを使ってスレッドを作る方法は色々見つかったのですが、単にcv::resize()をマルチコア動作で高速化させたいです。

TL;DR

  • Python バインディングが遅い
  • OpenCV の resize はずっと昔からマルチコア対応している
@CarlosDomingues
CarlosDomingues / python-poetry-cheatsheet.md
Last active April 27, 2024 14:24
Python Poetry Cheatsheet

Create a new project

poetry new <project-name>

Add a new lib

poetry add <library>

Remove a lib

@PicoMitchell
PicoMitchell / man2pdf.sh
Last active April 27, 2024 14:24
Display "man" pages as PDFs on macOS, with nice filenames and caching.
#!/bin/sh
man2pdf() {
##
## Created by Pico Mitchell (of Random Applications) on 11/16/22
##
## https://gist.github.com/PicoMitchell/619c12fd6a53ae6ec657514915d4edf9
##
## MIT License
##
@thesuhu
thesuhu / how-to-build-and-install-latest-curl-version-on-ubuntu.md
Last active April 27, 2024 14:24
How to Build and Install Latest cURL Version on Ubuntu

How to Build and Install Latest cURL Version on Ubuntu

# Written by The Suhu (2021).

# Tested on Ubuntu 20.04 LTS

The default cURL installed on the operating system may not be the latest version. if you want the latest version, then you need to build from the source. Let's check the cURL version installed with the following command.