Skip to content

Instantly share code, notes, and snippets.

@cryocaustik
cryocaustik / providers.py
Created September 10, 2021 00:56
Custom mimesis provider example
from mimesis.providers import BaseProvider
from random import choice, sample
import json
import requests
import os
class ProcCodeCMS(BaseProvider):
class Meta:
@cryocaustik
cryocaustik / README.md
Last active September 23, 2021 01:21
Python script to find Synth collections, generate them, and output the results to individual named files.

Synth Generate to dedicted files

Use the Python script generate.py to automatically walk a directory of collections, generate them, and export the results into relative individual files.

Execute Pythons script

[21-09-22 20:03:39] ➜  python generate.py
path to collections dir: c:/dev/collections/elig
export directory (default C:\dev\synth-data-generator\exports): 
ampSetup() {
try {
let myPlayer = amp(
"vid1",
{
nativeControlsForTouch: false,
autoplay: false,
controls: true,
width: "800",
height: "600",
version: "3.8"
services:
app:
build:
context: .
dockerfile: docker/server.dockerfile
command: "gunicorn --workers=2 --bind=0.0.0.0:8000 server:app"
volumes:
- ./server/server.py:/app/server.py