Skip to content

Instantly share code, notes, and snippets.

View ryanpcmcquen's full-sized avatar

Ryan McQuen ryanpcmcquen

View GitHub Profile
@dojoteef
dojoteef / softwrap.kak
Last active September 14, 2023 17:31
Enable softwrap in kakoune and fix associated movement issues
# Softwrap long lines (and correct for improper kakoune movement behavior)
add-highlighter global/softwrap wrap -word -indent
define-command goto-center -docstring 'Jump to the center of the view' %{
execute-keys %sh{
echo $kak_window_range $kak_cursor_line | (
read y x h w l
num_lines=$((l-y-(h+1)/2))
if [ $num_lines -lt 0 ]; then
echo "${num_lines##-}j"
elif [ $num_lines -gt 0 ]; then
@AviDuda
AviDuda / itch-claim-bundle.user.js
Last active June 30, 2023 05:26
itch.io bundle claimer
// ==UserScript==
// @name itch.io - claim bundle items
// @namespace https://raccoon.land/
// @version 1.3
// @description Claims all items from itch bundles
// @author Avi Duda
// @match https://*.itch.io/*
// @icon https://icons.duckduckgo.com/ip2/itch.io.ico
// @grant GM.setValue
// @grant GM.getValue
@BestPig
BestPig / analogue-pocket-game-patches.md
Last active April 20, 2024 20:01
Patches to convert GameBoy ROM to `.pocket` (Analogue Pocket ROM)

Patches

Those patches are to convert GameBoy ROM to .pocket ROM. This allows you to play games from the SD Card on your Analogue Pocket.
Feature like RTC and Link cable seems to be unsupported by the Analogue Pocket in GB Studio mode.

Legend of Zelda, The - Link's Awakening DX

GitHub: https://github.com/BestPig/LADX-Disassembly-Pocket

Zelda no Densetsu - Yume o Miru Shima DX

@liamcain
liamcain / obsidian-debug-mobile.js
Last active April 22, 2024 05:57
Save console messages to logfile for mobile debugging
declare module "obsidian" {
interface App {
isMobile: boolean;
}
}
// Call this method inside your plugin's `onLoad` function
function monkeyPatchConsole(plugin: Plugin) {
if (!plugin.app.isMobile) {
return;
@dogboydog
dogboydog / convert.py
Last active April 6, 2024 08:04
Convert Nimbus Notes HTML to Markdown for Joplin
# -------------------------------------------------------------------------
# Nimbus note HTML export to markdown converter
# Extract all zip files containing 'note.html' and convert to markdown
#
# Setup:
# 1) install python 3 for your OS
# 2) install pandoc https://github.com/jgm/pandoc/releases/tag/2.11.4
# on Windows, the .msi will automatically add pandoc to your $PATH
# otherwise add it to your $PATH.
# 3) save this script in the directory where your HTML exports were
@Ultra-Instinct-05
Ultra-Instinct-05 / Context.sublime-menu
Last active January 16, 2021 07:49
A ST plugin that colorizes selected code blocks.
[
{
"caption": "Code Block Colorer",
"children": [
{ "caption": "Redish", "command": "code_block_colorer", "args": { "color": "region.redish" }, },
{ "caption": "Pinkish", "command": "code_block_colorer", "args": { "color": "region.pinkish" }, },
{ "caption": "Orangish", "command": "code_block_colorer", "args": { "color": "region.orangish" }, },
{ "caption": "Yellowish", "command": "code_block_colorer", "args": { "color": "region.yellowish" }, },
{ "caption": "Greenish", "command": "code_block_colorer", "args": { "color": "region.greenish" }, },
{ "caption": "Cyanish", "command": "code_block_colorer", "args": { "color": "region.cyanish" }, },
---
title: "Obsidian Sentiment Analysis"
author: "Bryan Jenks"
date: "2020-10-10"
output: html_document
---
```{r}
require(here)
require(jsonlite)
@lats
lats / claim_all_the_things.js
Last active April 22, 2024 23:25
Tampermonkey script to claim all of the items within a Bundle on Itch.io
// ==UserScript==
// @name Activate all Itch.io Bundle downloads
// @version 1
// @include https://itch.io/bundle/download/*
// @include https://*.itch.io/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @grant none
// ==/UserScript==
$(document).ready(function() {
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active May 4, 2024 23:05
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

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) because d

@alexpyoung
alexpyoung / pocket_import
Last active August 13, 2020 08:53
Import Safari Reading List Into Pocket
#!/usr/bin/env python3
import logging
import os
import plistlib
import requests
import sys
import webbrowser