Skip to content

Instantly share code, notes, and snippets.

View wanderer06's full-sized avatar

George Nemes wanderer06

  • Coventry, United Kingdom
View GitHub Profile
@wanderer06
wanderer06 / lowest_needed_mastery.js
Last active February 9, 2021 15:33
Lowest champ mastery needed
$$('#container tbody tr').map(el => [el.querySelector('td:first-child').innerText, parseInt(el.querySelector('td:last-child').innerText.replace(',', '')), parseInt(el.querySelector('td:nth-child(2)').innerText)]).reduce((accum, item) => item[1] < accum[1] ? item : accum, ['Unknown', Number.MAX_SAFE_INTEGER, '']).map((item, index) => index === 2 ? `${item} -> ${item + 1}` : item)
@wanderer06
wanderer06 / window.js
Last active August 28, 2018 09:14
List all non-standard properties on the window.
(function () {
var results, currentWindow, typedResult
iframe = document.createElement('iframe');
iframe.style.display = 'none';
document.body.appendChild(iframe);
currentWindow = Object.keys(window);
results = currentWindow.filter(function(prop) {
@wanderer06
wanderer06 / index.html
Created March 3, 2017 02:24 — forked from anonymous/index.html
Wally's widgets // source http://jsbin.com/qiyuwagoqo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Wally's widgets</title>
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<style id="jsbin-css">
@wanderer06
wanderer06 / links.txt
Created October 31, 2016 08:54
vscode atom