Skip to content

Instantly share code, notes, and snippets.

@collardeau
collardeau / demo.svelte
Last active November 13, 2024 14:45
Svelte: SweetAlert2 setup
<script>
import Swal from "sweetalert2";
// npm i [email protected]
// https://sweetalert2.github.io/
</script>
<!-- a simple alert -->
<button
on:click={() => {
Swal.fire('hello sweet alert');
@danwit
danwit / node_acl_example.js
Created April 26, 2014 00:22
Authorization with node_acl + mongo + express
/**
* Simple node_acl example with mongoDB and expressjs
*
* Usage:
* 1. Start this as server
* 2. Play with the resoures
*
* Show all permissions (as JSON)
* http://localhost:3500/info
*