- Adopted from: https://stubby4j.com/docs/admin_portal.html
- Inspired by Swagger API docs style & structure: https://petstore.swagger.io/#/pet
Discover gists
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
[ | |
{ | |
"key": "h", | |
"command": "editor.action.scrollLeftHover", | |
"when": "editorHoverFocused" | |
}, | |
{ | |
"key": "j", | |
"command": "editor.action.scrollDownHover", | |
"when": "editorHoverFocused" |
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
{ | |
"vim.smartRelativeLine": true, | |
"editor.cursorSurroundingLines": 8, | |
"editor.wordSeparators": "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?", | |
"vim.normalModeKeyBindings": [ | |
{ | |
"before": ["<leader>", "e"], | |
"commands": ["workbench.view.explorer"] | |
}, | |
{ |
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
#!/bin/bash | |
# UNINSTALL NATIONAL INSTRUMENTS DRIVERS 3.5.0f1, 3.6.0, 3.7.0, 14.0.0, 15.0.0 | |
# https://gist.github.com/jpgill86/2342ee23241120de41e505194e7de178 | |
# | |
# This script was created from the lists of files in several Uninstall.txt files | |
# | |
# NI-DAQmx Base 3.5.0f1, 3.6.0, 3.7.0, 14.0.0, 15.0.0 | |
# /Applications/National Instruments/NI-DAQmx Base/Uninstall.txt | |
# |
brew install llvm
ln -s "/usr/local/opt/llvm/bin/clang-format" "/usr/local/bin/clang-format"
ln -s "/usr/local/opt/llvm/bin/clang-tidy" "/usr/local/bin/clang-tidy"
use cmake
file
find_program(CLANG_TIDY_BIN clang-tidy)
find_program(RUN_CLANG_TIDY_BIN /usr/local/Cellar/llvm/10.0.0_3/share/clang/run-clang-tidy.py)
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 os, sys | |
import google.protobuf | |
from tensorflow.core.protobuf import saved_model_pb2 | |
import tensorflow as tf | |
def convert_saved_model_to_pbtxt(path): | |
saved_model = saved_model_pb2.SavedModel() | |
with open(os.path.join(path, 'saved_model.pb'), 'rb') as f: |
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
// worker pool graceful shutdown with waitGroup and context | |
func main() { | |
// create a channel to capture SIGTERM, SIGINT signal | |
quit := make(chan os.Signal, 1) | |
signal.Notify(quit, syscall.SIGTERM, syscall.SIGINT) | |
var wg sync.WaitGroup | |
pool := make(chan int, 10) | |
id := 1 |
NewerOlder