Skip to content

Instantly share code, notes, and snippets.

View batunpc's full-sized avatar
:octocat:
٩(◔.◔)۶

Batuhan Ipci batunpc

:octocat:
٩(◔.◔)۶
View GitHub Profile
@dantonnoriega
dantonnoriega / cool-bash-code.sh
Last active April 21, 2024 20:00
a collection of cool bash scripts
# cool bash codes
# search a directory for all lines that match a pattern (not perfect but useful) ------
## e.g. grep is searching for all lines matching "::" in `R/` to determine package calls
## -h hides the file names; -i ignores case
## sed -E uses regular expressions to search and match groups;
## we then sort and use -u
grep -hi :: -R R/* | sed -E 's/(.*)([ ]+[a-z]+::)(.*)/\2/g' | sort -u
# COUNT COLUMNS -----------------
@batunpc
batunpc / launch.json
Last active December 20, 2022 20:36
C++ setup for `.vscode` using cmake tools on M1 Macbook.
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "cppdbg",
"request": "launch",
// Resolved by CMake Tools:
"program": "${command:cmake.launchTargetPath}",
"args": [