Skip to content

Instantly share code, notes, and snippets.

View robcowie's full-sized avatar

Rob Cowie robcowie

  • Recycleye
  • Leeds/London, United Kingdom
View GitHub Profile

Easy Scala Publication

The following describes how you can publish artifacts for any sbt project using the GitHub Package Registry and the sbt-github-packages plugin.

Step 1: Create a GitHub Token

In your GitHub account, go to Settings > Developer settings > Personal access tokens, then click on Generate new token (or click here). Fill in some sort of meaningful name (I chose Dev) and click on the write:packages checkbox:

the new personal access token page with the above steps having been followed

@dedsm
dedsm / app.py
Last active September 19, 2024 12:34
Fastapi cache setup
from .initialize import setup_cache
from .connections import connection
@app.on_event('startup')
async def setup_connections():
await setup_cache()
@app.middleware("http")
async def connections_middleware(request, call_next):
@ahopkins
ahopkins / # Sanic websocket feeds v2.md
Last active September 19, 2024 11:54
Sanic based websocket pubsub feed

Sanic Websockets Feeds v2

This is an outdated version

See latest

@ScottJWalter
ScottJWalter / install-ffmpeg-WSL.sh
Created August 22, 2018 19:55
Install FFMpeg under Windows Subsystem for Linux
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ffmpeg
@swalkinshaw
swalkinshaw / tutorial.md
Last active February 26, 2025 21:15
Designing a GraphQL API
@chespinoza
chespinoza / ADR.md
Created May 21, 2018 17:19
Architecture Decision Record

[short title of solved problem and solution]

  • Status: [accepted | superseeded by ADR-0005 | deprecated | …]
  • Deciders: [list everyone involved in the decision]
  • Date: [YYYY-MM-DD when the decision was last updated]

Technical Story: [description | ticket/issue URL]

Context and Problem Statement

@gschivley
gschivley / altair_app.py
Created May 13, 2018 18:32
Altair plot in Plotly Dash
# -*- coding: utf-8 -*-
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import pandas as pd
import sqlalchemy
import altair as alt
import io
from vega_datasets import data
# -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@steven2358
steven2358 / ffmpeg.md
Last active May 15, 2025 12:51
FFmpeg cheat sheet