This code is now available at Kaggle.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""A vanilla py-script to download all Pocket.com data via API. | |
Read before: | |
- https://blog.getpocket.com/2012/11/introducing-the-new-pocket-api-for-developers-and-publishers/ | |
- https://getpocket.com/developer/docs/authentication | |
""" | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/BastiTee/tolino-notes |
This code is now available at Kaggle.
This code is now available at Kaggle.
This code is now available at Kaggle.
This code is now available at Kaggle.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This assumes that python and pyenv is already installed and configured. | |
# https://github.com/pyenv/pyenv#installation | |
# Install minimal bootstrapping environment | |
python -m pip install --upgrade \ | |
pip \ | |
pipdeptree \ | |
pipenv \ | |
poetry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GenericBuilderTest { | |
@Test | |
void test() { | |
final SpecialDataClass build = new SpecialBuilder() | |
// We want to call this in an arbitrary order! | |
.withCommonAttribute(-2) | |
.withSpecialAttribute(-1) | |
.withAnotherCommonAttribute(-3) | |
.build(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
"""MP3 folder to Spotify. | |
Creates a Spotify playlist with the first song of each album found in the | |
provided directory or its children by the containing MP3s. | |
That's the only way in Spotify to have some way of record crates by genre or | |
theme. | |
Identification happens by the ID3 tags. If multiple tracks of the same | |
album are found amongst the MP3s then the subsequent files are ignored. |
NewerOlder