This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <style> | |
| body { | |
| background: #f5f6f7; | |
| display: flex; | |
| flex-flow: wrap; | |
| justify-content: center; |
This file contains hidden or 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
| #!/usr/bin/env node | |
| var http = require('http'); | |
| var os = require('os'); | |
| var url = require('url'); | |
| var zlib = require('zlib'); | |
| var buf1 = zlib.gzipSync('Conca'); | |
| var buf2 = zlib.gzipSync('tenated'); | |
| var port = 8080; |
This file contains hidden or 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
| <body onload="s=[7,0,15,15,24,-9366,7,14,11,8,3,0,24,18].map(v=>v+9398);setInterval(`b.innerText=String.fromCodePoint(...s=s.map(v=>32<v&Math.random()<.3?v+117914*(v<1e4||-1):v))`,500)"id=b> |
This file contains hidden or 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
| console.log('Number of unique 5 bytes unordered sets.'); | |
| console.log('Calculating the long way... (it may take a while)') | |
| const MAX = 64; | |
| let setSize = 0; | |
| for (let i = 0; i <= MAX; i++) { | |
| for (let j = i; j <= MAX; j++) { | |
| for (let k = j; k <= MAX; k++) { | |
| for (let l = k; l <= MAX; l++) { | |
| for (let m = l; m <= MAX; m++) { |
This file contains hidden or 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
| <p><a href="slow.html" target="_blank">Open slow page</a></p> | |
| <canvas id="a"></canvas> | |
| <script> | |
| var a = document.getElementById('a'); | |
| var c = a.getContext('2d'); | |
| (function frame(){ | |
| c.clearRect(0, 0, 300, 150); | |
| c.fillRect(Math.cos(Date.now() / 100) * 125 + 125, 0, 50, 50); | |
| requestAnimationFrame(frame); | |
| })(); |
This file contains hidden or 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
| <script> | |
| top.onkeyup=top.onkeydown=(e)=>top['lurdl+d+l+ur+u'[(e.which+3)%20]]=e.type[5] | |
| </script> | |
| <script> | |
| setInterval(_ => document.body.textContent = [ | |
| top.l && '←', | |
| top.u && '↑', | |
| top.d && '↓', | |
| top.r && '→' |
This file contains hidden or 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
| /* Изменение проперти */ | |
| html { | |
| - color: red; | |
| + color: green; | |
| } | |
| /* Добавление проперти */ | |
| html { | |
| color: red; | |
| + margin: 0; |
This file contains hidden or 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
| var arr = [ | |
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
This file contains hidden or 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
| #!/bin/bash | |
| if [ $1 ] | |
| then sourceurl=$1 | |
| else sourceurl="https://upload.wikimedia.org/wikipedia/ru/2/24/Lenna.png" | |
| fi | |
| echo "downloading the test image ($sourceurl)..." | |
| curl --silent $sourceurl > /tmp/source.png |