This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET MyPath=%PATH% | |
echo %MyPath% | |
echo -- | |
setlocal EnableDelayedExpansion | |
SET TempPath="%MyPath:;=";"%" | |
SET var= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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. | |
*/ |