Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" ?>
<systemList>
<system>
<fullname>Sega Mega Drive / Genesis</fullname>
<name>megadrive-dgen</name>
<path>~/RetroPie/roms/megadrive-dgen</path>
<extension>.smd .SMD .bin .BIN .gen .GEN .md .MD .zip .ZIP</extension>
<command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 "/opt/retropie/emulators/dgen/bin/dgen -f -r /opt/retropie/configs/all/dgenrc %ROM%" "dgen"</command>
<platform>genesis,megadrive</platform>
<theme>megadrive</theme>
@williewillus
williewillus / primer.md
Last active December 20, 2020 08:13
1.8.9 to 1.9 quick primer
@subhaze
subhaze / JavaScript NG.sublime-syntax
Last active September 29, 2023 14:58
very start of Angular 2 sublime syntax file
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: JavaScript NG
file_extensions:
- js
- ng.js
scope: source.js.ng
contexts:
main:
@ryosebach
ryosebach / CustomItemBlock.java
Last active April 18, 2016 23:07
[minecraft][Forge] ItemとBlockに情報を付与する [modding] ref: http://qiita.com/ryosebach/items/3f1f19b6281a33d5d203
@SideOnly(Side.CLIENT)
public class CustomItemBlock extends ItemBlock
{
public CustomItemBlock(Block block)
{
super(block);
}
public void addInformation(ItemStack itemstack, EntityPlayer player, List list, boolean par4)
{
@smbarbour
smbarbour / ClientProxy.java
Last active December 9, 2022 05:42
ItemColors implementation
package com.example.examplemod;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.common.FMLLog;
/**
* Created by sbarbour on 4/7/16.
@ddeveloperr
ddeveloperr / git_push_force_upstream.md
Last active September 6, 2023 15:52
How to force “git push” to overwrite remote repo files WITH LOCAL files

You want to push your local files to remote files

git push -f <remote> <branch>
git push -f origin master

Local version has priority over the remote one!

more...

@dillansimmons
dillansimmons / recaptchaMarketo.js
Created October 21, 2016 05:51
Insert Google reCAPTCHA into Marketo form with validation
/* Load the Google reCAPTCHA API : Make sure it loads somewhere above the insert code-->
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
*/
/* Main code that inserts the reCAPTCHA into the marketo form */
// Wait for Marketo form to load
MktoForms2.whenReady(function (form) {
// Insert the recap div after the last form row
$( '<div id="recap"></div>' ).insertAfter( ".mktoFormRow:last-of-type" );
// render the recap : replace with your site key
@mannharleen
mannharleen / AddPrimaryContact.cls
Created November 2, 2016 15:46
Salesforce trailhead - Asynchronous Apex Controlling Processes with Queueable Apex
public class AddPrimaryContact implements Queueable {
public contact c;
public String state;
public AddPrimaryContact(Contact c, String state) {
this.c = c;
this.state = state;
}
public void execute(QueueableContext qc) {
@joshschmelzle
joshschmelzle / remove-gamebar-powershell-win10.md
Last active January 2, 2026 22:27
How to Remove the Xbox Game Bar with Powershell on Windows 10. Scroll to the end of the gist for Windows 11.

You've probably stumbled upon this researching how to remove the Xbox Game Bar. This gist includes a few different methods you can try. Please note that some of these first options are probably not be available unless you are running an older version of Windows 10.

EDIT: make sure to check out the comment below from @nmhung1985 which seems to be working for most folks.

Uninstalling/Removing the Game Bar (old Windows 10 build GUI options)

(this is no longer an option on any recent Windows 10 build)

  1. Press Windows Key or click on the Start menu.
  2. Start typing Xbox or Game Bar, until you get the Xbox Game Bar app to appear in the results.
@Shadows-of-Fire
Shadows-of-Fire / RecipeHelper.java
Last active September 30, 2018 02:10
Recipes in 1.12
import java.util.ArrayList;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.item.crafting.ShapedRecipes;
import net.minecraft.item.crafting.ShapelessRecipes;