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
# dependencies | |
from typing import Union, List, Generator | |
# permute method | |
def permute(options:Union[str,List], places:int=None) -> Generator[List,None,None]: | |
"""Generate all permutations recursively. | |
Args: |
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
function combinations(options,places) { | |
// options is array | |
// places is positive int | |
if (places <= 1) { | |
let c = [] | |
for (let o of options) { | |
c.push([o]) | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/** | |
* Test natural language APIs. | |
* - cloudmersive | |
* - detect language | |
* - tag parts of speech (POS) | |
*/ | |
import dotenv from 'dotenv' | |
import cm from 'cloudmersive-validate-api-client' | |
import cm_nlp from 'cloudmersive-nlp-api-client' |
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
/** | |
* Modify Spotify webplayer interface to show only the lyrics/transcript | |
* and footer bar with playback and miscellaneous controls. | |
* | |
* Compatibility tests: | |
* - Chrome 2024-10-12 | |
*/ | |
// remove minimum width,height from | |
// https://open.spotifycdn.com/cdn/build/web-player/web-player.f352977c.css |