Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Zikoat
Zikoat / percolation.html
Last active January 13, 2020 15:00
calculate percolation threshold with javascript
<script type="text/javascript">
// Download the ZIP(on github), and open this HTML file in the browser.
// Open the console, and you should see the result of runTest(20, 100);
// try writing "runTest(1000,10)" in the console
runTest(20, 100);
// the Percolation and WeightedQuickUnionUF functions come from this article:
// http://michaeltoth.me/using-javascript-to-visualize-a-percolation-system.html
@Zikoat
Zikoat / README.md
Last active January 11, 2024 11:01
last ned bøker fra Brettboka.no

Brettboka Downloader

Nedlastingsverktøy for brettboka.no

Laster ned hver side som et bilde

Boken må være kjøpt

HVORDAN LASTE NED BØKER

  1. logg inn på web-versjonen av brettboka.no, og åpne boken du vil laste ned
@Zikoat
Zikoat / 1_vue2-zustand.md
Last active January 19, 2024 10:11
vue2-zustand

How to use Zustand with Vue 2

💻 Check out this Codesandbox demo: Vue 2 Playground

ℹ️ This approach works for Vue 2.6 and above.

🔍 Tiny: Just 10 lines of source code, no dependencies.

✨ The same Zustand store can be used with different libraries, such as Vue, React, or Svelte.