Update: use PowerShell script PythonEmbed4Win.ps1.
The instructions in this gist have some subtle problems and this gist will not be updated.
The instructions in this gist have some subtle problems and this gist will not be updated.
import http.client | |
import http.cookies | |
import json | |
import base64 | |
import hashlib | |
from cryptography.hazmat.primitives import serialization | |
from cryptography.hazmat.primitives.asymmetric import x25519 | |
from cryptography.hazmat.primitives.asymmetric import ec | |
from cryptography.hazmat.primitives import hashes |
from __future__ import print_function | |
import sys | |
import argparse | |
import os.path | |
import textwrap | |
import re | |
from pprint import pprint | |
import xml.etree.ElementTree as ET |
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
const { AndroidConfig, withAndroidManifest } = require('@expo/config-plugins'); | |
function addSupportedDevices(androidManifest, attributes) { | |
const { manifest } = androidManifest; | |
if (!manifest) { | |
throw new Error( | |
'Cannot set custom supported devices because AndroidManifest.xml is malformed.', | |
); | |
} |
sizeFormatter = new Intl.NumberFormat([], { | |
style: "unit", | |
unit: "byte", | |
notation: "compact", | |
unitDisplay: "narrow", | |
}); | |
(_bytes) => { | |
const units = { B: " bytes", KB: " kb", MB: " mb", GB: " gb", TB: " tb" }; | |
const parts = sizeFormatter.formatToParts(_bytes); |
# mode: rule | |
# mixed-port: 7890 | |
# allow-lan: false | |
# log-level: info | |
# ipv6: false | |
# secret: "在此修改访问令牌" | |
# external-controller: 0.0.0.0:9090 | |
# external-ui: /usr/share/yacd-meta/ | |
dns: |
This help only covers the parts of GLSL ES that are relevant for Shadertoy. For the complete specification please have a look at GLSL ES specification
Version: WebGL 2.0
Arithmetic: ( ) + - ! * / %
Logical/Relatonal: ~ < > <= >= == != && ||
Bit Operators: & ^ | << >>
Comments: // /* */
Types: void
bool
int
uint
float
vec2
vec3
vec4
bvec2
bvec3
bvec4
ivec2
ivec3
ivec4
uvec2
uvec3
uvec4
mat2
mat3
mat4
mat?x?
sampler2D,
sampler3D
samplerCube
Format: float a = 1.0; int b = 1; uint i = 1U; int i = 0x1;