Skip to content

Instantly share code, notes, and snippets.

View jonlimitless's full-sized avatar

Jon Limitless jonlimitless

View GitHub Profile
@BestPig
BestPig / analogue-pocket-game-patches.md
Last active May 18, 2024 13:35
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

@jan-koch
jan-koch / woo-add-custom-sku.php
Last active July 16, 2021 10:39
Add a custom SKU field to WooCommerce products.
<?php
function jk_add_custom_sku() {
$args = array(
'label' => __( 'Custom SKU', 'woocommerce' ),
'placeholder' => __( 'Enter custom SKU here', 'woocommerce' ),
'id' => 'jk_sku',
'desc_tip' => true,
'description' => __( 'This SKU is for internal use only.', 'woocommerce' ),
);
@Pathoschild
Pathoschild / stardew-mod-recommendations.md
Last active July 27, 2024 23:12
Stardew Valley mod recommendations

Here are the mods I recommend. These are all compatible with the latest versions of SMAPI and Stardew Valley on Linux/macOS/Windows. See the player's guide to using mods if you're interested.

Quality of life

I think the best mods are those which improve the game while maintaining its balance, lore, and style.

  • AutoGate
    Gates open automatically when you approach and close behind you.

  • Better Sprinklers Plus
    Customise the sprinkler radius, with a proportional change to their cost. If you're willing to mine all the ores you'll need, that makes the basic sprinklers useful early in the game and lets you do more than just watering crops every day.

{
/*
// Place your snippets for HTML here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// ${1}, ${2} for tab stops, ${0} for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
@leewillis77
leewillis77 / enable-gpf-render-cache.php
Created May 4, 2017 11:17
Enable WooCommerce Google Product Feed extension feed item cache.
<?php
/*
Plugin Name: Enable WooCommerce GPF feed item cache.
Plugin URI: http://docs.woothemes.com/document/google-product-feed/
Description: Enables feed item caching in the Google Product Feed extension.
Version: 1.0
Author: Lee Willis
Author URI: https://plugins.leewillis.co.uk/
*/
@joviczarko
joviczarko / mysql-backup.bat
Last active March 28, 2023 08:13
Automatic MySQL database backup (dump) bat file for wamp server
@ECHO OFF
For /f "tokens=2-4 delims=. " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
For /f "tokens=1-3 delims=.:," %%a in ("%TIME%") do (set mytime=%%a-%%b-%%c)
set TIMESTAMP=%mydate%_%mytime%
REM Export all databases into file E:\wamp64\backup\database_backup.[year][month][day].sql
"E:\wamp64\bin\mysql\mysql5.7.14\bin\mysqldump.exe" --all-databases --result-file="E:\wamp64\backup\database_backup_%TIMESTAMP%.sql" --user=root
REM Change working directory to the location of the DB dump file.
// ==UserScript==
// @name Enhance Dota builds page
// @namespace https://gist.github.com/parnakra/90f9885d8f95ca446541f87f2f2365ce
// @version 0.6
// @updateURL https://gist.github.com/parnakra/90f9885d8f95ca446541f87f2f2365ce/raw/
// @description Adds sorting, searching, filtering and publishing functionality to Dota builds list
// @author Parnakra
// @match http://www.dota2.com/workshop/builds
// @grant none
// ==/UserScript==
@williamd1k0
williamd1k0 / demo_markdown.md
Last active February 23, 2021 14:32
Ren'Py - Demo Script Example

Ren'Py language using the pre/code in Markdown

Using pre/code:


```renpy
# Ren'Py statements
```
// ==UserScript==
// @name Fix Dota builds page
// @namespace https://gist.github.com/parnakra/d3720201f66cc64ada7c
// @version 7.00
// @updateURL https://gist.github.com/parnakra/d3720201f66cc64ada7c/raw/
// @downloadURL https://gist.github.com/parnakra/d3720201f66cc64ada7c/raw/
// @description Fixes various issues on the Dota 2 builds page
// @author Parnakra
// @match http://tampermonkey.net/index.php?version=3.11&ext=dhdg&updated=true#features
// @grant none
@SankaD
SankaD / BeutifyJS.js
Last active July 6, 2016 20:58
BeautifyJS for Node.JS
// not sure about the origin, probably https://gist.github.com/adehaas/3693846 Customized version for my liking.
komodo.assertMacroVersion(3);
if (komodo.view.scintilla)
{
komodo.view.scintilla.focus();
} // bug 67103
var koDoc = (komodo.koDoc === undefined ? komodo.document : komodo.koDoc);
var formatter;
var language = koDoc.language;