Skip to content

Instantly share code, notes, and snippets.

ahallora / addwish-to-csv.js
Created May 25, 2022 06:50
Gem dine ønskelister fra til CSV
View addwish-to-csv.js
Sådan gemmer du dine ønskelister fra til CSV
1) Log ind på din ønskeliste på
2) Start console i din browser (fx. tryk [ctrl+shift+i] i Chrome)
3) Copy/paste dette script ind i console og tryk [enter] for at køre det
4) Kopier CSV-teksten som vises i din browser prompt ind i Google sheets og tryk "Split text to columns" og vælg "Semicolon"
5) Din ønskeliste er nu gemt i Sheets
ahallora / index.js
Last active March 10, 2022 21:41
FCK Grid
View index.js
1. Go to a match page showing a FC København game
2. Run this script in the browser console
3. Enjoy FCKKøbenhavnLIVE tweets, liveScore updates and FCK fan banter live chatting
4. Good game.
Disclaimer: Use at own discretion.
const renderGrid = ()=>{
ahallora / Cool text effect.html
Created November 18, 2021 07:34
Cool text effect
View Cool text effect.html
<a href="#">
<span class="outline">COOL TEXT</span>
<style type="text/css">
body {
background: #000;
ahallora / index.js
Created September 18, 2021 19:58
Slack API: Get User details based on reactions
View index.js
const { App } = require('@slack/bolt');
const reaction = process.env.EMOJI;
const url = process.env.URL;
const app = new App({
signingSecret: process.env.SLACK_SIGNING_SECRET,
token: process.env.SLACK_BOT_TOKEN,
ahallora / unavailable.html
Created February 23, 2021 09:23
View unavailable.html
<html dir="ltr" lang="en"><head>
<meta charset="utf-8">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#fff">
<meta name="viewport" content="width=device-width, initial-scale=1.0,
maximum-scale=1.0, user-scalable=no">
<style>/* Copyright 2017 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
ahallora / A YouTube regExp VideoID and
Last active February 17, 2021 14:53
Extract video ID and host name from Youtube URL
View A YouTube regExp VideoID and

Extract video ID and host name from Youtube URL

A regular expression to extract video ID and host name from a wide range of different youtube links. Built upon this foundation.


Supported URLs

ahallora /
Created February 11, 2021 11:48
How to run a retrospective

How to run retro-spective


  1. Make sure you have access to easyretro
  2. Make sure you have access to previous retro board
  3. Create a public retro board in time

How to

  1. send out links to previous + current retro
  2. walk through action points from previous retro (any carry over unfinished action points to current retro)
ahallora / dotPathToObject.js
Last active February 4, 2021 15:01
Convert string in dot notation into an object with JavaScript
View dotPathToObject.js
const dotPathToObject = (pathStr, value) => pathStr
.reduce((acc, cv, index) => ({
[cv]: index === 1 && value ? {[acc]: value} : acc
console.log("expect:", JSON.stringify({
"a": {
ahallora /
Created January 1, 2021 21:28
Streambeats Dropbox audio preview snippet

Streambeats Dropbox audio preview snippet


Harris ( has done a remarkable job with Streambeats ( and the massive library of high quality music for your streaming needs. The library was so vast that I didn't want to just download everything and listen to it locally, so instead I did what every programmer would do. I did a small code snippet to add a preview pane to the Dropbox experience.


  1. Copy the snippet below
  2. Enter a folder in Dropbox containing music files; e.g.
  3. Switch to table view in the folder view
  4. Press CTRL+SHIFT+I (Windows) / CMD+SHIFT+I (Mac) to open Chrome Developer Tools
ahallora /
Created July 28, 2020 19:13
Math and JavaScript live problem solving with Anders - episode 1

Math and JavaScript live problem solving - episode 1

Welcome to this mini series of me trying to solve a simple math problem with Javascript. I apologize in advance to everyone more capable in both math and javascript.

Today's objective

  • Divide a number by 100 and limit the result's amount of decimals to 5 tops.
  • Expected outcome: 49.95 becomes 0.4995 and 9.95 becomes 0.0995.

That's easy, you might think.