sequenceDiagram
participant User
participant Builder
participant Database
participant Host
User->>Builder: Get iframe URL (usePreviewUrl)
Builder->>Database: Get pageId from URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Queue | |
class node( object ): | |
def __init__( self, value, children = None ): | |
self.value = value | |
self.children = children or [] | |
def traverse( root ): | |
# seen = set() | |
q = Queue.Queue() # stack - Breadth-First |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ops = { | |
"+": (lambda a, b: a + b), | |
"-": (lambda a, b: a - b) | |
} | |
def eval(tokens): | |
stack = [] | |
for token in tokens: | |
#print token, stack | |
if token in ops: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class Hl7Handler : SimpleChannelInboundHandler<IByteBuffer> | |
{ | |
private class Markers | |
{ | |
public static readonly byte[] start = { 0x0b }; | |
public static readonly byte[] end = { 0x1c, 0x0d }; | |
} | |
protected override void ChannelRead0(IChannelHandlerContext cx, IByteBuffer data) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static IMessage readMessage(StreamReader reader, Encoding encoding, int bufferSize) | |
{ | |
var messageData = new StringBuilder(); | |
if (!readStartMarker(reader)) | |
return null; //throw ?? | |
var buffer = new char[bufferSize]; | |
while (true) | |
{ | |
var bytesRec = reader.Read(buffer, 0, bufferSize); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-StrictMode -Version Latest | |
$ErrorActionPreference = "Stop" | |
function Main() { | |
# ... | |
} | |
try { | |
Main | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"foreground": "#ffff00", | |
"background": "transparent", | |
"style": "diamond", |
stateDiagram-v2
state "wake up" as wakeUp
state "make ☕" as make
state "drink ☕" as drink
state outOfCoffee <<choice>>
[*] --> wakeUp
wakeUp --> check
check --> outOfCoffee: out of coffee?
stateDiagram-v2
state "wake up" as wakeUp
state "grab a brush" as grabBrush
state "put a little makeup" as makeUp
state "hide the scars" as hideScars
state "fade away the shakeup" as fadeShakeup
state "leave the keys upon the table" as leaveKeys
[*] --> wakeUp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FindProxyForURL(url, host) { | |
if (shExpMatch(host, "*localhost")) { | |
return "PROXY localhost"; | |
} | |
return "DIRECT"; | |
} |