This file contains hidden or 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
import { Context } from 'next' | |
import Head from 'next/head' | |
import * as React from 'react' | |
import { compose, lifecycle, pure, wrapDisplayName } from 'recompose' | |
function withInitialProps<Props>(provider: (context: Context) => object) { | |
return (BaseComponent: React.ComponentType<Props>) => { | |
return class extends React.Component<Props> { | |
public static displayName = wrapDisplayName(BaseComponent, 'withInitialProps') | |
public static async getInitialProps(context: Context) { |
This file contains hidden or 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
readonly PLAYLIST_IDS=( | |
"37i9dQZF1DWZeKCadgRdKQ" # Pop Hits 2022 | |
"37i9dQZEVXcWw7uVUBjiBh" # Discover Weekly | |
"37i9dQZF1DWZZbpkxU5t9L" # Weekly Buzz Tokyo | |
"37i9dQZF1DX2sKGHAy2dfC" # Disco Summer | |
) | |
PLAYLIST_ID=${PLAYLIST_IDS[$(($RANDOM % ${#PLAYLIST_IDS[*]}))]} | |
URI="spotify:playlist:$PLAYLIST_ID" | |
/opt/homebrew/bin/spotify play uri $URI |
This file contains hidden or 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
const emojis = [ | |
"clapping_fast", | |
"clapping_very_fast", | |
"kami", | |
"saikou", | |
"_waiwai", | |
"tada", | |
"beer-1", | |
"sparkle", | |
"heart", |
OlderNewer