git init
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 |
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
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
;by doppelganger (doppelheathen@gmail.com) | |
;This file is provided for your own use as-is. It will require the character rom data | |
;and an iNES file header to get it to work. | |
;There are so many people I have to thank for this, that taking all the credit for | |
;myself would be an unforgivable act of arrogance. Without their help this would | |
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
NewerOlder