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 | |
FILE_NAME=${1?Error: No file name found} | |
echo g++ -o "${FILE_NAME}".exe "${FILE_NAME}".cpp ${@:2} | |
g++ -o "${FILE_NAME}".exe "${FILE_NAME}".cpp ${@:2} |
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
;############################################### | |
;Disable CapsLock | |
;############################################### | |
CapsLock:: | |
SetCapslockState, Alwaysoff | |
return | |
;############################################### | |
;Control + CapsLock -> CapsLock | |
;############################################### |
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
// Visual Studio Code | |
https://code.visualstudio.com/Download | |
// download 'Settings Sync' extension | |
// in settings.json (for MSYS2 & Hyper) | |
"terminal.external.windowsExec": "C:\\Users\\LazyRen\\AppData\\Local\\hyper\\Hyper.exe", | |
"terminal.integrated.shell.windows": "C:\\msys64\\msys2_shell.cmd", | |
"terminal.integrated.shellArgs.windows": ["-mingw64", "-defterm", "-no-start", "-full-path"], | |
"terminal.integrated.env.windows": {"HOME": "C:\\Users\\LazyRen\\dev"}, | |
// Git |
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
#include <atomic> | |
#include <chrono> | |
#include <cinttypes> | |
#include <cstdio> | |
#include <thread> | |
using namespace std; | |
#define NUM_PRODUCER 4 | |
#define NUM_CONSUMER NUM_PRODUCER | |
#define NUM_THREADS (NUM_PRODUCER + NUM_CONSUMER) |
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
Show hidden characters
[ | |
{ | |
"args": | |
{ | |
"to": "eol" | |
}, | |
"command": "move_to" | |
}, | |
{ | |
"args": |
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
[ | |
{ | |
"args": | |
{ | |
"to": "eol" | |
}, | |
"command": "move_to" | |
}, | |
{ | |
"args": |
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
[ | |
{ | |
"keys": ["super+i"], | |
"command": "unexpand_tabs", | |
"args": { "set_translate_tabs": true } | |
}, | |
//open finder | |
{ | |
"keys": ["super+shift+x"], |
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
{ | |
"always_show_minimap_viewport": true, | |
"binary_file_patterns": | |
[ | |
"*.dds", | |
"*.eot", | |
"*.gif", | |
"*.ico", | |
"*.jar", | |
"*.jpeg", |
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
{ | |
"shell_cmd": "sh /Users/lazyren/Documents/Programming/python_cmd.sh \"${file}\"", | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"selector": "source.python", | |
"env": {"PYTHONIOENCODING": "utf-8"} | |
} |
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
{ | |
"shell_cmd": "g++ -std=c++14 ${file_name} -o ${file_base_name}.out && sh /Users/lazyren/Documents/Programming/cpp_cmd.sh \"${file}\"", | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.c++", | |
} |