Inline code
Code block:
def hi():
print('hi')| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "fmt" | |
| "io" | |
| "log" | |
| ) |
| #!/usr/bin/env python3 | |
| class Node(object): | |
| def __init__(self, x): | |
| self.val = x | |
| self.left = None | |
| self.right = None | |
| def get_tree(): | |
| """ |
| Title: Creating WebRTCMultiplayer using signaling server\nStage 1: init peer | |
| p1 -> S: connect to signaling server | |
| S -> p1: reply with ID | |
| note over p1: init multiplayer with ID | |
| p2 -> S: connect to signaling server | |
| S -> p2: reply with ID | |
| note over p2: init multiplayer with ID | |
| S -> p2: notify p1 already connected | |
| note over p2: init peer of p1 |
| #%% | |
| import jax | |
| import jax.numpy as jnp | |
| from jax import grad, pmap, lax | |
| import numpy as np | |
| from functools import partial | |
| print(jax.devices()) | |
| # %% |