Skip to content

Instantly share code, notes, and snippets.

@rahulbanerjee26
Created September 25, 2022 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulbanerjee26/a653013038084a335a462dc1f0e518c5 to your computer and use it in GitHub Desktop.
Save rahulbanerjee26/a653013038084a335a462dc1f0e518c5 to your computer and use it in GitHub Desktop.
embedGist[blg](gists[counter]),
)
counter += 1
newFileName = f"{blg}_gist+{title}"
with open(newFileName, "w+") as f:
f.write(new_content)
print("Saved file with gists for ", blg)
return new_content
result = {}
if hashnode:
result["hashnode"] = replaceCode("hashnode")
if devto:
result["devto"] = replaceCode("devto")
if medium:
result["medium"] = replaceCode("medium")
if wp:
result["wp"] = replaceCode("wp")
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment