Skip to content

Instantly share code, notes, and snippets.

Avatar

George Nemes wanderer06

  • Coventry, United Kingdom
View GitHub Profile
@wanderer06
wanderer06 / lowest_needed_mastery.js
Last active Feb 9, 2021
Lowest champ mastery needed
View lowest_needed_mastery.js
$$('#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 Aug 28, 2018
List all non-standard properties on the window.
View window.js
(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) {
View index.html
<!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">
View links.txt