We can export a mermaid diagram to PNG very simply using the official Mermaid CLI Tool.
Installation via npm
npm i -g mermaid.cli
Usage:
name: Security audit | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
paths: | |
- '**/Cargo.toml' | |
- '**/Cargo.lock' | |
jobs: | |
security_audit: |
We can export a mermaid diagram to PNG very simply using the official Mermaid CLI Tool.
Installation via npm
npm i -g mermaid.cli
Usage:
package ec | |
import ( | |
"crypto/ecdsa" | |
"crypto/elliptic" | |
"crypto/md5" | |
"crypto/rand" | |
"crypto/x509" | |
"encoding/pem" | |
"errors" |
const http = require('http'); | |
const server = http.createServer(); | |
server.on('request', (request, response) => { | |
let body = []; | |
request.on('data', (chunk) => { | |
body.push(chunk); | |
}).on('end', () => { | |
body = Buffer.concat(body).toString(); |
import falcon | |
import mimetypes | |
import os.path | |
from falcon.request import Request | |
from falcon.response import Response | |
# simple static file handler for falcon | |
# it is recommended to use a program like nginx to handle static files | |
# however this is useful for development and when performance is not a priority |
import time | |
import threading | |
class BaseThread(threading.Thread): | |
def __init__(self, callback=None, callback_args=None, *args, **kwargs): | |
target = kwargs.pop('target') | |
super(BaseThread, self).__init__(target=self.target_with_callback, *args, **kwargs) | |
self.callback = callback | |
self.method = target |
(ns api-project.cors) | |
(def cors-headers | |
"Generic CORS headers" | |
{"Access-Control-Allow-Origin" "*" | |
"Access-Control-Allow-Headers" "*" | |
"Access-Control-Allow-Methods" "GET"}) | |
(defn preflight? | |
"Returns true if the request is a preflight request" |
git shortlog -s -n --all --no-merges |