Skip to content

Instantly share code, notes, and snippets.

View austinarchibald's full-sized avatar

Austin Archibald austinarchibald

View GitHub Profile
@jeremywrowe
jeremywrowe / gist:3506869
Created August 29, 2012 04:33
highcharts - show label for first and last data points in a series
plotOptions: {
line : {
dataLabels : {
enabled : true,
formatter: function() {
var first = this.series.data[0],
last = this.series.data[this.series.data.length - 1];
if ((this.point.category === first.category && this.point.y === first.y) ||
(this.point.category === last.category && this.point.y === last.y)) {
return this.point.y;
@Gustavo-Kuze
Gustavo-Kuze / force-ctrl-c-v.md
Last active July 10, 2024 16:38
Enable copy and paste in a webpage from the browser console
javascript:(function(){
  allowCopyAndPaste = function(e){
  e.stopImmediatePropagation();
  return true;
  };
  document.addEventListener('copy', allowCopyAndPaste, true);
  document.addEventListener('paste', allowCopyAndPaste, true);
  document.addEventListener('onpaste', allowCopyAndPaste, true);
})(); 
@joyrider3774
joyrider3774 / QuitActiveWindow.ahk
Created October 7, 2021 02:32
XBox Controller autohotkey script to close or activate the active window (handy with games)
#SingleInstance Ignore
while (true)
{
;back + start -> quit active window
if ((getKeyState("joy7") && getKeyState("Joy8")) || (getKeyState("2joy7") && getKeyState("2Joy8")) || (getKeyState("3joy7") && getKeyState("3Joy8")))
{
WinClose A
sleep 900
}
;back + right stick click -> send esc
@robince
robince / set_folder_date_modified.py
Created February 22, 2022 21:22
Fix loss of folder "date modified" on mac (e.g. from iCloud): cd ~/Documents; set_folder_date_modified.py ./
#!/usr/bin/env python
import os
import sys
import time
from datetime import datetime
def set_folder_dates(root):
for x in os.walk(root, topdown=False):

Half-Life 2 on the Switch

This is a guide for running Half-Life 2 on your Switch. Please be aware that this isn't a great way of playing Half-Life 2 - do not expect this mod to work perfectly.

Thank you to Bringus Studios for fixing save files not showing up!

NOTE: I am assuming that you have basic knowledge about how modding games on the Switch works. I will not provide support for questions like "how do I install Atmosphère / CFW", "how do I make an emuMMC", "how do I extract games", etc. For help with modding your console, see the NH Switch Guide.

WARNING: While this mod should be fairly safe to use, I do not take any responsibility if your Portal save data is deleted, you get banned from Nintendo Switch Online, or if your Switch explodes.