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 on: https://www.cheathappens.com/requests.asp | |
let getFundedValue = (listItem) => parseInt(listItem.querySelector("div.col-4.text-right")?.innerText.split("%")[0]) || 0 | |
Array.from(document.querySelectorAll("li.list-group-item.mb-1")).sort( (a,b) => getFundedValue(b) - getFundedValue(a) ).forEach(el => el.parentElement.append(el)) | |
// #js #dom #sort |
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 csv | |
import os | |
data = {} | |
# { | |
# '352135': { 'name': 'company' , 'count': 5 } | |
# } | |
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
# Solution to Advent of Code 2020, day 1 | |
# https://adventofcode.com/2020/day/1 | |
EXAMPLE_INPUT = """1721 | |
979 | |
366 | |
299 | |
675 | |
1456""" | |
EXPECTED_EXAMPLE = 514579 |
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
# https://www.typescriptlang.org/play/#code/JYOwLgpgTgZghgYwgAgLIE8DCAbOBnPZAbwChlzk8B7AWwgGUwpQBzALkqdYBoyLq6AOQCuNAEbQOIURKgkAviRKhIsRCgwAFKFQAO0MMAiFSFZFAgBHYcAsATEeOjIpM6LzN7DVEHGza9A3QAfg4MHHw8DwovYB8-R1lgl2RpJzlFEhhhEARvEGQ7KmMA-ShDY0wfMDhQAHldfL8ACl0dXUIw9FKDIzwAShSxKipsCDgC0woLMGEoAra9PAA6WPj-dqDkAEIAXl3kHLsIGFAIOwUlMbBkNd9sOrEAKwg8gFEAD2A8ME60bs25T6yAORHMVhs9kSkmQAEZuLdGnF7j1yugUmCBAwuCB2MgAEQACQg2GwVGQAHUqFBsHZ8QisdCoBwACwAJmQ8k5JGuiKaD2erzAqG+eFYXVRFUIoPB1ls5yZHA5mQQPmoY2WZJYzQA5J99HlWMgmMIUAiWFQwBwdcgANSFYp4SV9KrgWogBr85p3PyPF7vL4-Ab9ADcJFVIHVEE1VG1eo+BsMuOQ8GweAg5st1rtyGaRRKgKlrpq9SR629ZfufqFIoIrH6oaU2Vy+XBs3mTMl6DqUAAIic4MJsGBWu08BLC31+q50sQ+OQAPQL5CYCY6m5FY0AC2+CIA7igWBAbmAtyhoDpmQTq3lkN9kLoqHWxNh0TqjicznYdctmmyAKwAMxsv09LgjAF5GmA5I+hsgRovObZzAsY6rJWCRuFAyAAD7YcgADsbKXDyx58siGHpJ83y-BO8FSiCxCypCCqYRw8JkesirIGy+HcrysFMrWYq4rRZT0TKFhylCrHcdy4ZqqM0Zarq+pCkaPHIJmVrIDa9ozMhnaFt2fYDkOI4CZhVFBg2YYRlGMZxqphrJoRWnZnpx4GZhXY9v28BmRW-KCaK9aNkAA | |
interface MyClass { | |
someString: string, | |
someNumber: |
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
REM pull_logs.sh v.0.3 | |
REM author: Michael J. Kazin - https://github.com/mkazin | |
@echo off | |
if "%~1"=="" ( | |
echo Target log folder not specified! | |
echo Usage: %0 [log_folder] | |
goto BAIL | |
) | |
SET logname=%1 |