Skip to content

Instantly share code, notes, and snippets.

@Fr0sT-Brutal
Fr0sT-Brutal / grab.bat
Created November 13, 2016 14:10
Grab images from a-comics.ru
@echo off
SET Dir=shakes-and-fidget
SET EndNum=148
mkdir tmp
:: get pages
for /l %%f in (1,1,%EndNum%) do wget -nv -P tmp http://a-comics.ru/comics/%Dir%/%%f
:: extract lines with links to images (ipic.ru)
find "ipic" tmp\* > list || goto :Err
@Fr0sT-Brutal
Fr0sT-Brutal / index.html
Last active October 10, 2023 10:37 — forked from Spyryto/index.html
For loop benchmark (http://jsbench.github.io/#6bdfcd2692ba80c16a68c88554281570) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>For loop benchmark</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
// ***************************************************************************
// Class to convert enum value <=> enum name
// T is ordinal / enum type. Enums starting from non-0 are supported (but only
// those which have RTTI):
// ```
// TEnFail = (enF1 = 1, ..., enFX) => will fail (no type info for these)
// TEnBase = (enB0, enB1, ..., enBX)
// TEnOK = enB1..enBX => OK
// ```