Skip to content

Instantly share code, notes, and snippets.

{
"vim.smartRelativeLine": true,
"editor.cursorSurroundingLines": 8,
"editor.wordSeparators": "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?",
"vim.normalModeKeyBindings": [
{
"before": ["<leader>", "e"],
"commands": ["workbench.view.explorer"]
},
{
@yedehrab
yedehrab / Temel-Git-Komutlari.md
Created October 23, 2018 14:37
Temel Github Komutları

Temel Git Komutları

Git deposunu başlatma

Yeni git için

git init
@wandyme
wandyme / uninstall-ni-drivers
Created May 4, 2024 10:58 — forked from jpgill86/uninstall-ni-drivers
Cleanly uninstall National Instruments data acquisition drivers on Mac
#!/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
#
@tuxity
tuxity / navicat_premium_reset_trial.sh
Last active May 4, 2024 10:57
Reset Navicat Premium 15/16 remaining trial days
#!/bin/bash
set -e
file=$(defaults read /Applications/Navicat\ Premium.app/Contents/Info.plist)
regex="CFBundleShortVersionString = \"([^\.]+)"
[[ $file =~ $regex ]]
version=${BASH_REMATCH[1]}
@sleepdefic1t
sleepdefic1t / MACOS_CLANG_TIDY.md
Last active May 4, 2024 10:54
brew clang-tidy on macOS
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)
@MartinNowak
MartinNowak / convert_saved_model.py
Created November 28, 2019 16:17
Convert TF saved model from protobuf binary to text format
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:
@brabect1
brabect1 / sta_cdc_paths.rst
Last active May 4, 2024 10:52
Timing constraints for clock-domain crossings. #sta #cdc
// 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
@WillSams
WillSams / SMBDIS.ASM
Last active May 4, 2024 10:49 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;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
@jdah
jdah / wfc.hpp
Created August 5, 2022 15:18
Wave Function Collapse
#pragma once
#include "util/types.hpp"
#include "util/std.hpp"
#include "util/ndarray.hpp"
#include "util/collections.hpp"
#include "util/rand.hpp"
#include "util/hash.hpp"
#include "util/assert.hpp"
#include "util/bitset.hpp"