The script creates issues in all repositories of GitHub executives with an ask to close GitHub for Russia and its developers.
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
[package] | |
name = "wry_render_html_to_stdout" | |
authors = [ "Illia <[email protected]>" ] | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
wry = "0.22.5" |
Using @tryghost/admin-api
.
Set up
- Replace
http://localhost:2368
with your blog URL - Obtain API key by creating a new integration at http://localhost:2368/ghost/#/settings/integrations
Usage
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
from bs4 import BeautifulSoup | |
import requests, urllib.parse | |
def paginate(url, previous_url=None): | |
# Break from infinite recursion | |
if url == previous_url: return | |
headers = { | |
"User-Agent": |
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
-- https://ellie-app.com/3P9hcDhdsc5a1 | |
module Main exposing (Model, Msg(..), init, main, update, view, viewConverter) | |
import Browser | |
import Html exposing (Attribute, Html, div, input, span, text) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (onInput) | |
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
.App { | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
align-content: center; | |
} |
This gist is based on @ibrahima's version that doesn't support Next.js.
import Markdown from '@/components/markdown'
function PostBody({ content }) {
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
[tool.poetry.dependencies] | |
python = "^3.8" | |
google-search-results = "^2.0.0" | |
[build-system] | |
requires = ["poetry>=0.12"] | |
build-backend = "poetry.masonry.api" |
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
# https://pypi.org/project/google-search-results | |
from serpapi import GoogleSearch | |
import os | |
params = { | |
"engine": "google", | |
"q": "Coffee", | |
"tbm": "shop", | |
"api_key": os.getenv("API_KEY") | |
} |
NewerOlder