Skip to content

Instantly share code, notes, and snippets.

View Spinarooni's full-sized avatar

Randy Patterson Jr. Spinarooni

View GitHub Profile
@Spinarooni
Spinarooni / compress-paths.bat
Created September 14, 2015 18:39
Script to compress file paths in PATH variable in Windows OS. Use when path length is being exceeded. Does not update the actual OS path but allows you to copy and paste it.
@echo off
SET MyPath=%PATH%
echo %MyPath%
echo --
setlocal EnableDelayedExpansion
SET TempPath="%MyPath:;=";"%"
SET var=
@Spinarooni
Spinarooni / OpenWithSublimeText3.bat
Last active May 7, 2018 11:54 — forked from mrchief/LICENSE.md
Adds an Open Folder context menu option in Windows for Sublime Text 3.
@echo off
SET stPath=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%stPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%stPath% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
var tracks = document.querySelectorAll('.track-info');
var songlist = '';
for (var i = 0; i < tracks.length; i++) {
var songName = tracks[i].querySelector('.name > a').innerText;
var artistName = tracks[i].querySelector('.album-name > a').innerText;
songlist += artistName + ' - ' + songName + '\n';
};
console.log(songlist);
@Spinarooni
Spinarooni / gist:4353952
Created December 21, 2012 16:47
AMD Module for jQuery.Spinner plugin for Spin Adapted from: https://gist.github.com/1290439 Spin.js: http://fgnass.github.com/spin.js/ You can now create a spinner using any of the variants below: $("#el").spin(); // Produces default Spinner using the text color of #el. $("#el").spin("small"); // Produces a 'small' Spinner using the text color o…
/*
AMD Module for jQuery.Spinner plugin for Spin
Adapted from: https://gist.github.com/1290439
Spin.js: http://fgnass.github.com/spin.js/
You can now create a spinner using any of the variants below:
$("#el").spin(); // Produces default Spinner using the text color of #el.
$("#el").spin("small"); // Produces a 'small' Spinner using the text color of #el.
@Spinarooni
Spinarooni / gist:4338145
Last active December 9, 2015 22:29
AMD Module for Backbone.Validation Twitter Bootstrap UI Integration
/*
AMD Plugin for Backbone.Validation Twitter Bootstrap UI Integration
Render error messages from Backbone.Validation using Twitter Bootstrap
Adapted from:
https://gist.github.com/2909552#comment-594344
https://gist.github.com/2909552#comment-560252
Updated for Bootstrap 3.
*/