Skip to content

Instantly share code, notes, and snippets.

@smromain
smromain / xbox-fse-undo.ahk
Last active November 2, 2025 13:44
Windows: XBOX FSE + Moonlight Auto Hot Key Deactivation Script
; XBOX-FSE-AHK-UNDO.ahk
#NoTrayIcon
; --- Step 1: Toggle Xbox Full Screen Mode ---
Send, #{F11} ; Win + F11
Sleep, 1500 ; wait for full screen to apply
ExitApp
@smromain
smromain / xbox-fse.ahk
Created November 2, 2025 13:43
Windows: XBOX FSE + Moonlight Auto Hot Key Activation Script
; XBOX-FSE-AHK.ahk
#NoTrayIcon
Run, shell:AppsFolder\Microsoft.GamingApp_8wekyb3d8bbwe!Microsoft.Xbox.App
Sleep, 5000
; Bring Xbox app to front
WinActivate, Xbox
Sleep, 2500
; --- Step 1: Toggle Xbox Full Screen Mode ---
first sample:
// if using require style and default export
const adderThatIImported = require('./addTwo') //wherein i have a file called 'addTwo.js that has either a default export or a named export
adderThatIImported()
// addTwo.js would look something like
const addTwo = () => {}
@smromain
smromain / gist:252712265ffb5a3bad6f9b204c57fd59
Last active January 15, 2019 14:04
Command Line, Git, IDE and Node Quickstart
Watch some of the internet basics videos:
https://www.theodinproject.com/courses/web-development-101/lessons/how-does-the-web-work
Go through all of the command line basics, including reading the 'Learn Enough Command Line To Be Dangerous' book:
https://www.theodinproject.com/courses/web-development-101/lessons/command-line-basics
Install Git on your local machine:
https://www.atlassian.com/git/tutorials/install-git
Go through the git basics lessons:
@smromain
smromain / lucas.js
Last active August 29, 2015 13:57
The 'LucasGenerator.com' Generator
// The Lucas Generator
// Steve Romain
//
// An extremely simple piece of JS which uses querystring values to generate a 'meme'-like experience.
//
// Elsewhere on the page is a form div, which will generate a querystring when the form is 'entered', as below.
// '<INPUT TYPE="form" NAME="lucasbox" placeholder="What does Lucas do? Press Enter!"></INPUT>'
// Code searches querystring for 'lucasbox' element
function getParameterByName(name) {
var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
@smromain
smromain / RadPicker
Last active August 29, 2015 13:56
Minified version.
<script>
// RadPicker 0.1 by Steve M. Romain
//
// This is a script specifically designed to be used within a 'wall of faces' or about us web template, but it can be used within a set of other web templates that include selection and hide/show functionality.
//
// For each button div, there will be a button image, a floating hover item, as well as a linked content div. A linked content id is set within the data-index of the button: for instance, as in the example below, the button "user1-button-wrap" is permanently linked to the content "content-user1".
//
// When a user mouse hovers over a button, the hover-item will fade in, and fade out when the mouse is moved out. When a user clicks on the button, the linked content div will fade in. When another button is clicked, all other grouped content blocks will fade out, showing that specific content div.
//
// Originally, it was designed for a company's career page, but there are a p