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 -e | |
# Small script to automatically mount/unmount USB drive in WSL | |
usage() { | |
cat << EOF | |
usage: $(basename $0) [-h] [-l] [-u|-m] | |
Options: | |
-h | |
Show this message |
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
{ | |
"telemetry.enableTelemetry": false, | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.acceptSuggestionOnEnter": "on", | |
"diffEditor.ignoreTrimWhitespace": false, | |
"window.zoomLevel": 0, | |
"remote.SSH.defaultExtensions": [ | |
"C/C++" | |
], | |
"debug.onTaskErrors": "abort", |
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
#!/usr/bin/env python3 | |
def display_graph(graph): | |
""" | |
Display the graph as an adjacency matrix | |
""" | |
for row in graph: | |
print(row) | |
def create_graph(entrances,exits,path): |
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 | |
trap_sigint(){ | |
cat << EOF | |
Conversion interrupted. What do you want to do ? | |
s) stop | |
p) show/hide progress | |
EOF | |
read -n 1 reply | |
case $reply in | |
s) exit;; |
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
@echo off | |
setlocal | |
for /f "usebackq tokens=1,2,*" %%B IN (`reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Desktop`) do set DESKTOP=%%D | |
for /f %%i in ('echo %DESKTOP%') do set DESKTOP=%%i | |
if NOT EXIST "%DESKTOP%/" ( | |
echo error: Desktop not found | |
goto :END | |
) |
OlderNewer