Skip to content

Instantly share code, notes, and snippets.

@wc2184
wc2184 / tutorial.md
Last active November 21, 2025 00:07
Striver Method of C++ input output file

VSCode C/C++ File Input + Output (Code Runner) Three Way View from this video

0. Download Code Runner extension for VSCode

0.5 Open Settings in VSCode (Cmd + , ), go to Code-runner: Executor Map, then open settings.json

1. Add these two lines in settings.json of the .vscode/ folder in the directory of your .cpp file.

"c":   "cd $dir && gcc $fileName -o $fileNameWithoutExt && ./$fileNameWithoutExt < input.txt > output.txt",
"cpp": "cd $dir &amp;&amp; g++ $fileName -o $fileNameWithoutExt &amp;&amp; ./$fileNameWithoutExt &lt; input.txt &gt; output.txt"
@wc2184
wc2184 / slope_vs_starting.md
Created May 30, 2024 18:45 — forked from gtallen1187/slope_vs_starting.md
A little bit of slope makes up for a lot of y-intercept

"A little bit of slope makes up for a lot of y-intercept"

01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140

Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.

[Laughter]

@wc2184
wc2184 / slope_vs_starting.md
Created May 30, 2024 18:45 — forked from gtallen1187/slope_vs_starting.md
A little bit of slope makes up for a lot of y-intercept

"A little bit of slope makes up for a lot of y-intercept"

01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140

Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.

[Laughter]

@wc2184
wc2184 / .bash_profile
Last active April 16, 2024 02:24 — forked from mocon/.bash_profile
Example `.bash_profile` file
# FOR NYU SERVERS use .bashrc
# Edit this file
alias aliases="nano ~/.bash_profile" # usage: type `aliases` in Terminal
# Navigate to location
alias home="cd ~"
alias desktop="cd ~/Desktop/"
alias repos="cd ~/Documents/Repos/"