Skip to content

Instantly share code, notes, and snippets.

@rodolfojnn
rodolfojnn / jetty-install-debian.sh
Last active September 17, 2018 17:57 — forked from franciscocpg/jetty-install-debian.sh
Install jetty on debian
#!/bin/bash
# do in tmp
cd /tmp
JETTY_FILE='jetty-distribution-9.3.3.v20150827.tar.gz'
JETTY_FOLDER=${JETTY_FILE:0:-7}
# Download
wget http://archive.eclipse.org/jetty/9.3.3.v20150827/dist/$JETTY_FILE
# Extract
sudo tar zxvf $JETTY_FILE -C /opt/
<script src="//unpkg.com/alpinejs" defer></script>
<div x-data="{ open: false, message: '🔥🔥🔥' }">
<button @click="open = !open">Toggle</button>
<span x-show="open">Visible <strong x-text="message"></strong></span>
</div>
<div
x-data="{
search: '',
items: ['foo', 'bar', 'baz'],
get filteredItems() {
return this.items.filter(
i => i.startsWith(this.search)
)
<script>
document.addEventListener('alpine:init', () => {
Alpine.store('darkMode', {
on: false,
toggle() {
this.on = ! this.on
}
})
})
@rodolfojnn
rodolfojnn / README.md
Last active April 23, 2024 15:16
An updated

Hello World from GitHub