Skip to content

Instantly share code, notes, and snippets.

View viller239's full-sized avatar

Anton Viller viller239

View GitHub Profile
@import url(/viller239/bce40e93cdb2e58857a7b9b1b861ce20/raw/6bb0f7474e9605086228e97e0ef18099c48de074/styleA.css)
export default class AutoCleaningMap {
constructor(ttl = 5000) {
this.oldMap = new Map();
this.map = new Map();
this.cleanupInt = setInterval(() => {
this.oldMap = this.map;
this.map = new Map();
}, ttl);
}
@viller239
viller239 / lists.md
Last active November 28, 2016 17:06
  1. a
  2. b
  3. c 1.1.1. d
  4. AA 1.1. AA1 1.1. AA2
for (var i = 0; i < 10; i += 1) {
for (var j = 0; j < 100; j += 1) {
chrome.cookies.set({
url: `http://ya${i}.ru`,
name: `name${j}`,
value: `value${j}`,
expirationDate: Math.round(Date.now() / 1000) + 1000000
});
}
}
h3 { color: blue; }
@import url("https://rawgit.com/viller239/b2e86aa679af87285fabd53c6419cc2b/raw/eb6729442a1087190e3ad12184731787527a569c/sheetC.css");
h2 { color: red; }
@viller239
viller239 / test.html
Last active December 15, 2016 21:00
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://rawgit.com/viller239/32927627da771b7fa4f46997f40203dd/raw/14e80a1d4c688eb1fd787fe3b8cf17d8e22842d7/sheetB.css"/>
</head>
<body>
<h2> red </h2>
<h3> blue </h3>
</body>
</html>
const foo = /123/**100**/345/;
<html>
<head>
<script>
window.location.href = '/';
</script>
<noscript>
<meta http-equiv="refresh" content="0;url=/">
</noscript>
</head>
<body>
#a { color: red; }