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
| void Main() | |
| { | |
| for (int kol = 2; kol < 15; ++kol) | |
| { | |
| Console.WriteLine("{0}: {1}", kol, Enumerable.Range(0, 1 << kol).Select(i => Check(Enumerable.Range(0, kol).Select(b => (i & (1 << b)) == 0 ? 0 : 1).ToList())).Min()); | |
| } | |
| } | |
| static int Check(List<int> krupier) => | |
| Enumerable.Range(0, 2).Select(rada => |
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
| async function updatePasswords() { | |
| let oldPassword = prompt('Old password:') | |
| if (!oldPassword) return | |
| let loginManager = Components.classes['@mozilla.org/login-manager;1'] | |
| .getService(Components.interfaces.nsILoginManager) | |
| let matchingLogins = (await loginManager.getAllLogins()).filter(l => l.password === oldPassword) | |
| let matchCount = matchingLogins.length | |
| if (matchCount === 0) return alert('No matching logins found') |
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
| -- see https://blog.plover.com/math/logic/gantos-axe.html | |
| import Data.Void | |
| -- The general theorem, valid for all types p, q | |
| heart :: (p -> q) -> ((p -> Void) -> q) -> (q -> Void) -> Void | |
| -- The proof | |
| heart pq npq nq = v where | |
| -- np :: p -> Void | |
| np = nq . pq |
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
| record Osoba(string Ident, string PrijmeniJmeno, int RokNarozeni, decimal KcDuchodu); | |
| record CteniKartotekyResults(int Pocet, decimal Soucet); | |
| void Main() | |
| { | |
| var results = CteniKartoteky(ParseDuchody(File.ReadLines(@"duchody.txt"))); | |
| var prumer = Math.Round(results.Soucet / results.Pocet); | |
| Console.WriteLine($"Pocet: {results.Pocet}, Prumer: {prumer}"); | |
| } |
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
| Jan Mikolášek | 324500 | |
|---|---|---|
| Ivan Jonák | 251400 | |
| Petr Pavel | 206400 | |
| Ivan Roubal | 176600 | |
| Danuše Nerudová | 175600 | |
| Karel Gott | 139000 | |
| Hana Zagorová | 138500 | |
| František Mrázek | 111200 | |
| Jan Žižka | 104700 | |
| Libuše Šafránková | 100000 |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 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
| Ref;Osm rel | |
| 0021;3260507 | |
| 0024;3260519 | |
| 0025;3260520 | |
| 0026;3260521 | |
| 0027;3260522 | |
| 0029;3260523 | |
| 0031;3260524 | |
| 0032;3260536 | |
| 0033;3260539 |
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
| Stránka | Editací | |
|---|---|---|
| Wikipedista:Prikryl/Pískoviště | 7423 | |
| Wikipedie:Nástěnka správců | 2655 | |
| Wikipedie:Pod lípou | 1927 | |
| Wikipedista:StephenzJehnic/Pískoviště | 1755 | |
| Ruská invaze na Ukrajinu (2022) | 1674 | |
| Wikipedista:Davidek2009/Pískoviště | 1317 | |
| Wikipedista:Kubajdaa22cz/Pískoviště | 1284 | |
| Wikipedie:Potřebuji pomoc | 1050 | |
| Wikipedie:Pískoviště | 995 |
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
| Článek | Editací | |
|---|---|---|
| Ruská invaze na Ukrajinu (2022) | 1674 | |
| Časová osa ruské invaze na Ukrajinu (2022) | 731 | |
| Mistrovství světa ve fotbale 2022 | 483 | |
| Survivor Česko & Slovensko | 352 | |
| Úmrtí v roce 2022 | 342 | |
| Seznam fotbalistů s 500 a více vstřelenými brankami | 331 | |
| Tvoje tvář má známý hlas (9. řada) | 325 | |
| 2022 | 316 | |
| Seznam zájemců o kandidaturu ve volbě prezidenta České republiky 2023 | 311 |
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
| Ukrajina | 679000 | |
|---|---|---|
| Česko | 675700 | |
| Jeffrey Dahmer | 558400 | |
| Alžběta II. | 533500 | |
| Severoatlantická aliance | 426300 | |
| Orličtí vrazi | 424300 | |
| Vladimir Putin | 412100 | |
| Marie Terezie | 331100 | |
| Jan Mikolášek | 324500 | |
| Josef II. | 314200 |
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
| let successes = 0; | |
| let failures = 0; | |
| for (let iter = 0; iter < 100000000; ++iter) { | |
| let counts = [3,0,0,0]; | |
| while (counts.length > 1) { | |
| let loser = Math.round(Math.random() * counts.length); | |
| if (loser === 0) { | |
| break; | |
| } |
NewerOlder