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
// === RUN IN BROWSER DEV TOOLS === | |
// Requires: cURL set up and in path | |
// alterntively, change the generated command to whatever you like | |
// Log in to the Untappd website and open the gallery for any user: | |
// https://untappd.com/user/<USERNAME>/photos | |
// Auto-Click "Load more images" until there are no more (until button is hidden) | |
function more() { | |
const b = document.querySelector('.more_photos'); |
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
// Chrome DevTools console ~~ enter pt.1 & 2 separately | |
// var input = $({auto-generated <pre>-tag w/ input txt}).textContent.trimTrailingNL(); | |
// I.) | |
input.split('').map((e,i,a)=>e===(a[i+1]||a[0])?+e:0).reduce((a,b)=>a+b) | |
((t,l)=>(l=t.length/2)&&t.split('').map((e,i,a)=>e==a[(i+l)%t.length]?+e:0).reduce((a,b)=>a+b))(input) | |
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 | |
SETLOCAL | |
:: ffffffff | |
GOTO eof | |
:: ffff | |
:: -- OPTIONS -- | |
:: 1 for yes, 0 for no |
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
// Chrome DevTools console ~~ enter pt.1 & 2 separately | |
// var input = $({auto-generated <pre>-tag w/ input txt}).textContent.trimTrailingNL(); | |
// I.) | |
input.split(', ').reduce(function (o,e,i,a) { | |
o.i=(o.i+(e[0]=='L'?3:5))%4; | |
o[o.i%2]+=(o.i>1?-1:1)*+e.substr(1); | |
return i+1==a.length?Math.abs(o[0])+Math.abs(o[1]):o; | |
},{i:0,0:0,1:0}) | |
input.split(', ').reduce(function (o,e,s,n) { |
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
[].filter.call(document.querySelectorAll('.chartlist-name'), function (e) { return (/(Hellboy)|(Bibi Blo)|(Bibi und Tina)|(Benjamin Bl)|(Die drei )|(John Sinclair)|(Sherlock Holmes)|(Hui Bu)|(Offenbarung 23)/i).test(e.innerText) }). | |
forEach(function (e) { e.parentNode.querySelector('.chartlist-delete form button').click(); }); | |
document.querySelector('li.previous a').click(); |
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
// content script for /event/mini-league/individual/ | |
;(function () { | |
var maxEntries = 0, | |
sep = '', | |
$t = $('.table-responsive'), | |
sorted, | |
strideLength = []; | |
$t.find('th:eq(3)').text('FIXED'); | |
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
import System; | |
import System.Windows.Forms; | |
import Fiddler; | |
// INTRODUCTION | |
// | |
// Well, hello there! | |
// | |
// Don't be scared! :-) | |
// |
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
const | |
MASK = '*.mp3'; | |
var | |
MasterFile: WideString; | |
function FindMasterFile(const Folder: WideString): WideString; | |
var | |
Files: TStringsArray; | |
begin |
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
// Chrome DevTools console ~~ enter pt.1 & 2 separately | |
// var input = $({auto-generated <pre>-tag w/ input txt}).textContent.trimTrailingNL(); | |
// I.) | |
input.split('').reduce((e,s) => e+(s==='('?1:-1),0) | |
input.split('').some(((p) => (c,i) => !~(p+=c==='('?1:-1)?console.log(++i)|1:0)(0)) | |
// II.) | |
input.split('\n').map((s) => s.split('x').map(parseFloat).sort((a,b) => a-b)).map((a) => a[0]*a[1]*3+a[1]*a[2]*2+a[0]*a[2]*2).reduce((a,b) => a+b) |
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
(function (str, notes, wrap) { | |
var IDX = 0, TXT = 1, | |
lines = (Array(str.length + 1)).join(' ').split(''); | |
notes = notes.map(function (n) { | |
return [+n.replace(/\D[\s\S]*$/, '') || 0, n.replace(/^\d+\s*/, '')]; | |
}); | |
notes.sort(function (a, b) { | |
return a[IDX] === b[IDX] ? 0 : (+a[IDX] < +b[IDX] ? 1 : -1); | |
}).forEach(function (n) { |