Skip to content

Instantly share code, notes, and snippets.

View MarioZZJ's full-sized avatar
🎨
Lets Agentic

Zhejun Zheng MarioZZJ

🎨
Lets Agentic
View GitHub Profile
@MarioZZJ
MarioZZJ / rnn_model_1.ipynb
Last active November 25, 2020 09:09
rnn_model_g.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MarioZZJ
MarioZZJ / ros_analysis.ipynb
Created November 11, 2021 00:57
ros_analysis.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MarioZZJ
MarioZZJ / dedicated_server_mods_setup.lua
Created January 15, 2022 03:55
DoNotStarveServer_Configuration
ServerModSetup("1207269058")
ServerModSetup("2323630362")
ServerModSetup("347079953")
ServerModSetup("362175979")
ServerModSetup("375850593")
ServerModSetup("375859599")
ServerModSetup("378160973")
ServerModSetup("501385076")
ServerModSetup("661253977")
ServerModSetup("666155465")
@MarioZZJ
MarioZZJ / cociting_network_clustering.ipynb
Created March 30, 2022 10:05
python3.6, leidenalg, igraph, datatable
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from glob import glob
from lxml import etree
import gc
import gzip
from dbutils.pooled_db import PooledDB
import pymysql
import threading
import logging
import time
import pandas as pd
@MarioZZJ
MarioZZJ / MarioZZJ's GitHub Stats
Last active September 26, 2022 01:10
github-stats
⭐ Total Stars: 13
➕ Yearly Commits: 108
🔀 Total PRs: 8
🚩 Total Issues: 52
📦 Contributed to: 6
@MarioZZJ
MarioZZJ / flatten-openalex-jsonl.py
Last active November 12, 2022 07:30 — forked from richard-orr/flatten-openalex-jsonl.py
flatten openalex JSON Lines files to TSV readable by Spark
# python 3.8+ required
import csv
import glob
import gzip
import json
import os
SNAPSHOT_DIR = 'openalex-snapshot'
CSV_DIR = 'tsv-files'
@MarioZZJ
MarioZZJ / comesh-cocite.sql
Last active April 25, 2024 01:12
计算种子文献前后1年内含同mesh的耦合强度
DECLARE @PMID INT;
DECLARE @PYEAR INT;
DECLARE @THRESHOLD INT = 2;
DECLARE cur CURSOR FOR
SELECT py.pmid AS PMID, py.publish_year AS PYEAR FROM
userdb_mariozzj_SAO4D.dbo.sample_xyc AS s
INNER JOIN
pubmed_2024.dbo.pmid_py AS py
ON s.pmid = py.pmid;
@MarioZZJ
MarioZZJ / citing-edge-gen3.sql
Last active May 6, 2024 14:02
获取三代引文边、发表年、mesh词
WITH g1 As (
SELECT citing, referenced, 1 As gen
FROM userdb_mariozzj_SAO4D.dbo.sample_xyc AS s INNER JOIN pubmed_2024.dbo.open_citation_collection As occ
ON s.pmid = occ.citing
), g2 AS (
SELECT citing, referenced, 2 AS gen
FROM
(SELECT referenced AS r1 FROM g1 GROUP BY referenced) AS rg1 INNER JOIN pubmed_2024.dbo.open_citation_collection As occ
ON rg1.r1 = occ.citing
), g3 AS (