Skip to content

Instantly share code, notes, and snippets.

{
let pageUrlSelector = '.name a[href*="/music/gameboy-gbs/"]';
let downloadUrlSelector = '#mass_download a';
let lastPageUrl = document.querySelector('.pagination-end a').href;
let lastPageNumber = Number(new URL(lastPageUrl).searchParams.get('page'));
let pages = Array.from({ length: lastPageNumber }, (value, index) => index + 1).slice(1);
let urlsPerPage = await Promise.all(pages.map(async (pageNumber) => {
server {
listen 80;
server_name www.simenonamps.com simenonamps.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;

Keybase proof

I hereby claim:

  • I am thependulum on github.
  • I am thependulum (https://keybase.io/thependulum) on keybase.
  • I have a public key ASD7ZKVkM6-EnHDCnBW89CBrc5WdSxUJ-JVAEnIu7utKhQo

To claim this, I am signing this object:

#include <SPI.h>
#include <Wire.h>
#include <Adafruit_ILI9341.h>
#include <Adafruit_FT6206.h>
#include <Adafruit_GFX.h>
#include <Enrf24.h>
#include <nRF24L01.h>
#define ARDUINOJSON_ENABLE_PROGMEM 0
#include <ArduinoJson.h>

Luwt

Website for the Luwt café in Leeuwarden.

Hosting

The root directory of this website is dist/, which is the directory your web server must point to.

Making changes

To make changes, modify the .vue files in pages/, layouts/ (reused templates) or components/ (small page elements). Photos and other images can be added to the static/img/ directory.

The Luwt website uses Nuxt.js as a static site generator for Vue, which must be run to build and publish the changes.

client
dev tun
proto udp
remote 209.105.231.254 52187
resolv-retry infinite
mute-replay-warnings
mute 20
nobind
persist-key
persist-tun
{
"root": true,
"parser": "babel-eslint",
"extends": "airbnb-base",
"parserOptions": {
"sourceType": "script"
},
"rules": {
"strict": 0,
"no-unused-vars": ["error", {"argsIgnorePattern": "^_"}],
async function assignModerator({ _commit }, { roomId, userId }) {
const res = await fetch(`${config.api.url}/rooms/${roomId}/moderators`, {
method: 'POST',
mode: 'cors',
credentials: 'same-origin',
body: JSON.stringify({ userId }),
});
const moderators = await res.json();
const result = await knex('tags_assigned')
.where({
task_id: taskId,
group_id: tag.group_id,
})
.leftJoin('tags_available', 'tags_assigned.tag_id', 'tags_available.id');
const taskTagsEntries = await knex
.select('tags_available.id', 'tags_available.body', 'tags_available.color', 'tags_available.priority', 'tags_groups.name AS group')
.from('tags_assigned')
.where({ task_id: taskId })
.leftJoin('tags_available', 'tags_assigned.tag_id', 'tags_available.id')
.leftJoin('tags_groups', 'tags_available.group_id', 'tags_groups.id');