Skip to content

Instantly share code, notes, and snippets.

@wjx0912
wjx0912 / test1.json
Last active February 17, 2025 07:22
test json
{
"links": { "self": "/adapter-calypso/v3/query/node/64fddf8c-8c60-11ed-a0d0-ffc06583cfef" },
"id": "64fddf8c-8c60-11ed-a0d0-ffc06583cfef",
"type": "CATALOGUE/SERIES",
"childTypes": {
"images": { "nodeTypes": ["CMS/IMAGE/MASTER"], "count": 13 },
"first_ep": { "nodeTypes": ["ASSET/EPISODE"], "count": 1 },
"shortforms": { "nodeTypes": ["ASSET/SHORTFORM/CLIP", "ASSET/SHORTFORM/THEATRICAL"], "count": 8 },
"free_episodes": { "nodeTypes": ["ASSET/EPISODE"], "count": 1 },
"clips": { "nodeTypes": ["ASSET/SHORTFORM/CLIP"], "count": 7 },
@wjx0912
wjx0912 / vscode list extensions
Last active December 12, 2024 06:04
my vscode extensions
// code --list-extensions
aaron-bond.better-comments
chaselen.v2ex-playground
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
codezombiech.gitignore
dbaeumer.vscode-eslint
donjayamanne.githistory
eamodio.gitlens
esbenp.prettier-vscode
@wjx0912
wjx0912 / test.xml
Last active October 15, 2024 00:58
test
<?xml version="1.0" encoding="UTF-8"?>
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:cenc="urn:mpeg:cenc:2013" xmlns:scte214="urn:scte:dash:scte214-extensions" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011" type="static" mediaPresentationDuration="PT2H37M1.662249995S" minBufferTime="PT2S">
<Period id="0" duration="PT19M12.818333333S" start="PT0S">
<BaseURL>https://akm.prd.media.h264.io/67349f7f-275e-4bfe-b183-16c40b59c005/</BaseURL>
<AdaptationSet subsegmentAlignment="true" subsegmentStartsWithSAP="1" id="18" lang="ca-ES" contentType="audio">
<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" cenc:default_KID="01003f7c-32b8-c8b0-3f83-daf841265ef2" value="cenc"></ContentProtection>
<ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95">
<cenc:pssh>AAACJnBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAAgYGAgAAAQABAPwBPABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4AcwA9ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBN
@wjx0912
wjx0912 / dump_eme.js
Created October 12, 2024 07:55
dump_eme.js
//dump eme代码:放到preload或者cp.js等最前面都行:
//dump_eme.js 代码参考:https://greasyfork.org/en/scripts/373903-eme-logger/code
//shaka也有个eme logger,作为chrome extension,vd里面loadExtension成功了,但是界面不知道怎么操作(https://github.com/shaka-project/eme_logger) 也可以考虑移植这个代码
// ================================================================================================
// from: https://greasyfork.org/en/scripts/373903-eme-logger/code
@wjx0912
wjx0912 / 1.json
Created September 26, 2024 03:36
test json
{
"data": {
"attributes": {
"airDate": "2001-11-16T00:01:00Z",
"alternateId": "5fa21f83-5609-461c-a7d6-91c4345a98ce",
"description": "On his 11th birthday, Harry Potter finds out that he is a wizard and is invited to attend Hogwarts School of Witchcraft and Wizardry.",
"isFamilyContent": true,
"isKidsContent": true,
"kidsContent": true,
"longDescription": "On his 11th birthday, Harry Potter finds out that he is a wizard and is invited to attend Hogwarts School of Witchcraft and Wizardry.",
@wjx0912
wjx0912 / ublacklist-subscription.txt
Created August 15, 2024 01:27
ublacklist-subscription.txt
! Description: filter csdn and some website
! Expires: 1 day (update frequency)
! Homepage: https://gist.github.com/wjx0912/dbcd36e673481b261eccc26dd90c3f29
! License: GPL3
! Title: uBlacklist Stack Overflow Translation
*://*.csdn.net/*
@*://www.cnblogs.com/*
@*://*.jb51.net/*
@wjx0912
wjx0912 / windows_install.bat
Last active April 11, 2025 08:30
windows软件安装(winget,scoop,choco)
@echo off
::脚本也同步到这里:
::https://gist.github.com/wjx0912/460502939d1cde52813b53dcaa5dfc0f
::https://gist.githubusercontent.com/wjx0912/460502939d1cde52813b53dcaa5dfc0f/raw/windows_install.bat
::首先确保以下指令可用:(大多数时候winget,少数时候scoop,不要用choco)
::winget --version
::scoop --version
::订阅地址:也在gist里面,安装系统前先下载它
@wjx0912
wjx0912 / q1.js
Created July 26, 2022 14:41
js_question
var name = 'window'
var person1 = {
name: 'person1',
foo1: function () {
console.log(this.name)
},
foo2: () => console.log(this.name),
foo3: function () {
return function () {
@wjx0912
wjx0912 / node-fetch_test.js
Created January 26, 2022 06:29
node-fetch test
const HttpProxyAgent = require('https-proxy-agent')
const fetch = require('node-fetch')
const options = {
// agent: function (_parsedURL) {
// if (_parsedURL.protocol === 'http:') {
// return httpAgent
// } else {
// return httpsAgent
// }
@wjx0912
wjx0912 / js_generator_question.js
Last active December 28, 2021 12:48
js_generator_question
function ajax(url, callback) {
console.log('ajax enter: ', url)
// 1、创建XMLHttpRequest对象
var xmlhttp
if (window.XMLHttpRequest) {
xmlhttp = new XMLHttpRequest()
} else { // 兼容早期浏览器
xmlhttp = new ActiveXObject('Microsoft.XMLHTTP')
}
// 2、发送请求