Skip to content

Instantly share code, notes, and snippets.


Famous Ketoma jfamousket

  • Silverslope
  • Germany
View GitHub Profile
jfamousket / sp
Created Jun 19, 2020 — forked from wandernauta/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
View sp
#!/usr/bin/env bash
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
jfamousket /
Last active Jan 26, 2020
[React Libraries Compilation] Some useful react libraries and components #react
jfamousket / typed_use_reducer.ts
Last active Jan 26, 2020
A strongly typed useReducer hook allowing you to use setState as used in react classed based components
View typed_use_reducer.ts
* Mimic set state function of react
* @param prevState
* @param property
type TypedReducer<T> = (
prevState: T,
property: { [K in keyof T]?: T[K] }
) => T;
You can’t perform that action at this time.