Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
import onnx | |
from onnx import helper | |
from onnx import TensorProto | |
# create example graph with just an Identity node and float16 input/output | |
graph_def = helper.make_graph( | |
nodes = [ | |
helper.make_node(op_type = "Identity", inputs = ['In'], outputs = ['Out'], name = 'first_node'), | |
], | |
name = 'test-model', |
// Types for the result object with discriminated union | |
type Success<T> = { | |
data: T; | |
error: null; | |
}; | |
type Failure<E> = { | |
data: null; | |
error: E; | |
}; |
import numpy as NP | |
import casadi as C | |
def qpsolve(H,g,lbx,ubx,A=NP.zeros((0,0)),lba=NP.zeros(0),uba=NP.zeros(0)): | |
# Convert to CasADi types | |
H = C.DMatrix(H) | |
g = C.DMatrix(g) | |
lbx = C.DMatrix(lbx) | |
ubx = C.DMatrix(ubx) | |
A = C.DMatrix(A) | |
A = A.reshape((A.size1(),H.size1())) # Make sure matching dimensions |
import os | |
import sys | |
from xml.sax import parse | |
from xml.sax.saxutils import XMLGenerator | |
class CycleFile(object): | |
def __init__(self, filename): | |
self.basename, self.ext = os.path.splitext(filename) | |
self.index = 0 |
// priority 100 | |
let $ResourcePackLoader | |
let $PlatformImpl | |
let $ModNioResourcePack | |
if (Platform.isForge()){ | |
$ResourcePackLoader = Java.loadClass("net.minecraftforge.resource.ResourcePackLoader") | |
} else { | |
$PlatformImpl = Java.loadClass("dev.architectury.platform.fabric.PlatformImpl") | |
$ModNioResourcePack = Java.loadClass("net.fabricmc.fabric.impl.resource.loader.ModNioResourcePack") |