Skip to content

Instantly share code, notes, and snippets.

https://www.gem.wiki/Test_ObservableOwnershipTree
https://www.gem.wiki/Test_ObservableOwnershipTree_large
import zipfile
from base64 import b64encode, b64decode
def convert_mmd_to_wiki_markup(mmd_content):
binary = mmd_content.encode("utf-8")
md5 = b64encode(binary).decode()
return "{{#widget:OwnershipTree|data=" + md5 + "}}"
def process_mmd_files(zip_path):
flowchart TB
100000000746["Shell - 40.0"] --> 100002004138
100000000245["PetroChina - 15.0"] --> 100002004138
100000000962["Government of South<br>Korea - 34.09"] --> 100001011066
100002004569["Korea Development<br>Bank - 32.9"] --> 100000000947
100000000947["Korea Electric Power<br>- 20.47"] --> 100001011066
100001000730["National Pension<br>Service (South<br>Korea) - 8.7"] --> 100001011066
100001011066["Korea Gas - 100.0"] --> 100002004141
100002004141["KOGAS Canada - 5.0"] --> 100002004138
100002004138["LNG Canada<br>Development - 100.0"] --> 100000130358
sequenceDiagram
participant web as Web Browser
participant blog as Blog Service
participant account as Account Service
participant mail as Mail Service
participant db as Storage
Note over web,db: The user must be logged in to submit blog posts
web->>+account: Logs in using credentials
account->>db: Query stored accounts
pie title NETFLIX
"Time spent looking for movie" : 90
"Time spent watching it" : 10
Date Last Researched,Research Status,Researcher,Country,Project Name,Capacity (MW),Capacity [ref],Capacity Rating,Capacity Rating [ref],Technology Type,Technology Type [ref],Status,Status [ref],Start year,Start year [ref],Operator IDs,Operator [ref],Latitude,Longitude,Location accuracy,Coordinates [ref],"Local area (taluk, county)","Major area (prefecture, district)",State/Province,GEM location ID,GEM phase ID,Other IDs (unit/phase)
2024-01-19,updated,Diren Kocakusak,United Kingdom,Abbey Fields solar farm,5.3,UKGovOct2023,unknown,,PV,https://www.gov.uk/government/publications/renewable-energy-planning-database-monthly-extract,operating,UKGovOct2023,2016,UKGovOct2023,,,51.3187,0.9029,exact,UKGovOct2023,Kent,South East,England,L100000825018,G100000828297,REPD: 5394
2024-01-19,no changes,Diren Kocakusak,United Kingdom,Abbey solar farm,9,UKGovOct2023,unknown,,PV,https://www.gov.uk/government/publications/renewable-energy-planning-database-monthly-extract,operating,UKGovOct2023,2014,UKGovOct2023,,,52.4193,-0.2366,
[
{
"id": 1,
"developer": [
{"name":"deva"}
],
"platforms": [
{"name":"PC"}
],
"rating": {
id title
1 game1_add_resource
2 game2_add_resource
{
"@generated-datetime": "2014-09-10T07:15:37Z",
"@version": "2.02",
"@linked-data-default": "http://data.example.org/",
"iati-activity": [
{
"@{http://www.w3.org/XML/1998/namespace}lang": "en",
"@default-currency": "USD",
"@last-updated-datetime": "2014-09-10T07:15:37Z",
"@humanitarian": true,
{
"responseHeader": {
"status": 0,
"QTime": 3
},
"response": {
"numFound": 1205,
"start": 0,
"numFoundExact": true,
"docs": [