Git Product home page Git Product logo

gbowne1 / programmernotes Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 355 KB

This is a collection of Markdown notes written in Obsidian for programming and it includes notes on C, C++, using and configuring VSCode and many other things programming related. Anyone is welcome to contribute to this Markdown repository and make corrections.

License: GNU General Public License v3.0

c coding config cpp node-js nodejs notebook notebook-publish notes obsidian-md

programmernotes's Issues

Make a Web Development note/tutorial.

This set of notes really needs a web development section on:

  • HTML5
  • CSS3
  • General web development notes
  • design notes

I already started on a separate JavaScript note. Any notes on JavaScript will be only referred/referenced here.

Add note on GCC compiler flags

Add a note on GCC compiler flags

-A needs an assertion
-B needs a argument
-D needs a macro name (Defines a macro with the specified name)
-F needs a path (Specifies a directory to search for header files)
-I needs a path ( Adds a directory to the list of directories to be searched for header files during preprocessing )
-J needs an argument
-L needs an argument (specifies the linking directory) (specify a directory to search for libraries during the linking phase)
-R needs an argument
-T needs an argument
-U needs a macro name (This flag is used to undefine a macro)
-d needs an argument
-e needs an argument
-g includes debug symbols
-h needs an argument
-l (lower case I) needs an argument
-o needs a file name (specifies the output files)
-l (lower case L) needs and argument (This flag is used to link against a specific library)
-u needs an argument (used in symbol linking)
-v is verbose?
-x needs an argument (used to specify the language of the input files)
-z needs an argument

Needs moar research.

Ammend documents for Python VSCode configuration and launch.json

Here is the launch.json as provided by IntelliSense. Also the document for launch json needs improving based on testing.

{
	// Use IntelliSense to learn about possible attributes.
	// Hover to view descriptions of existing attributes.
	// For more information, visit: https://go.microsoft.com/fwlink/linkid=830387
	"version": "0.2.0",
	"configurations": [
		{
			"name": "",
			"type": "",
			"request": "",
			"program": "",
			"args": "",
			"cwd": "",
			"env": "",
			"sourceMaps": "",
			"MIMode": "",
			"setupCommands": "",
			"externalConsole": "",
			"environment": "",
			"miDebuggerPath": "",
			"stopAtEntry": "",
			"processId": "",
			"remotePath": "",
			"showLog": "",
			"port": "",
			"host": "",
			"preLaunchTask": "",
			"envFile": "",
			"mode": "",
			"apiVersion": "",
			"logOutput": "",
			"trace": "",
			"logging": "",
			"skipFiles": "",
			"console": "",
			"autoReload": "",
			"autoStartBrowser": "",
			"consoleTitle": "",
			"debugAdapterPath": "",
			"debugServer": "",
			"windows": "",
			"django": "",
			"gevent": "",
			"guiEventLoop": "",
			"internalConsoleOptions": "",
			"suppressMultipleSessionWarning": "",
			"sudo": "",
			"subProcess": "",
			"stopOnEntry": "",
			"showReturnValue": "",
			"serverReadyAction": {
				"action": "debugWithEdge",
				"pattern": "listening on port ([0-9]+)",
				"uriFormat": "http://localhost:%s",
				"webRoot": "${workspaceFolder}",
				"killOnServerStop": false,
			},
			"redirectOutput": "",
			"pythonArgs": "",
			"python": "",
			"presentation": {
				"hidden": false,
				"group": "",
				"order": 1,
			},
			"module": "",
			"purpose": "",
			"postDebugTask": {
				"task": "",
				"type": "",
				"args": [],
				"file": "",
			},
			"pathMappings": "",
			"osx": "",
			"pyramid": "",
			"logToFile": "",
			"linux": "",
			"jinja": "",
			"justMyCode": "",
		},
	]
}

Incomplete Python note

Need to add

  • Importing python modules and libraries
  • Python keywords
  • how to run python
  • Using the python repl
  • Python program / app structure

Add notes on aria for web dev

add note on using ld

I'm assuming that the linker ld is just getting confused here but I tried both capitalized flags and lowercase flags.

This is what it reports on my system.

ld -d says "no input files"
ld -g says "no input files"
ld -i says "no input files"
ld -m says "missing argument to m"
ld -n says "no input files"
ld -q says "no input files"
ld -r says "no input files"
ld -s says "no input files"
ld -t says "no input files"
ld -v reports the version
ld -x says "no input files"

ld -E says "no input files"
ld -G says "no input files"
ld -E says "no input files"
ld -M says "no input files"
ld -N says "no input files"
ld -Q says "no input files"
ld -S says "no input files"
ld -U says "no input files"
ld -V is the same as -v but reports the emulations
ld -X says "no input files"

Need to add a linux note

things to document:

What uname -aimnoprsv will do in bash, and what doing those letters individually will do.

what ls -abcdfghiklmnopqrstuvx

ls -f prints only dotfiles
ls -p prints a / on directories

ls -ABCDFGHIJKLMNOPQRSTUVWXYZ works too.. somehow.

how to use find and whereis and which

how to use apt

tasks.json format incorrect.

There is a error in the description for the tasks.json file. It should look something like:

{
  // See https://go.microsoft.com/fwlink/?LinkId=733558
  // for the documentation about the tasks.json format
  "version": "2.0.0",
     "tasks": [
     {
      "type": "process",
      "label": "",
      "command": "",
      "args": [],
      "options": {},
      "problemMatcher": {
        "owner": ""
      },
      "group": "build",
      "presentation": {
        "reveal": "always",
        "panel": "shared"
      },
      "dependsOn": "",
      "isBackground": true,
      }
   ],
 }

doc on launch.json in VSCode needs work

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/build/",
"args": [],
"cwd": ".",
"MIMode": "gdb",
"setupCommands": [{

		}],
		"externalConsole": false,
		"environment": [],
		"miDebuggerPath": "/usr/bin/gdb",
		"stopAtEntry": false,
		"additionalSOLibSearchPath": "",
		"avoidWindowsConsoleRedirection": true,
		"coreDumpPath": "",
		"customLaunchSetupCommands": [],
		"debugServer": 1234 ,
		"debugServerArgs": "",
		"debugServerPath": "",
		"deploySteps": [],
		"envFile": "${workspaceFolder}/.env",
		"filterStderr": false,
		"filterStdout": "",
		"hardwareBreakpoints": {},
		"internalConsoleOptions": {""},
		"launchCompleteCommand": {""},
		"linux": {},
		"logging": {"engineLogging"},
	"exceptions": true,
	"moduleLoad": true, "natvisDiagnostics": "none", "programOutput": true, "trace": false, "traceResponse": false,
		"miDebuggerArgs": "",
		"miDebuggerServerAddress": "serveraddress:port",
		"osx": {},
		"pipeTransport": {
			"pipeCwd": "/usr/bin",
			"pipeProgram": "enter the fully qualified path for the pipe program name, for example '/usr/bin/ssh'.",
			"pipeArgs": [],
			"debuggerPath": "The full path to the debugger on the target machine, for example /usr/bin/gdb."
		},
		"postDebugTask": {
			"task": "",
			"type": "dotnet"
		},
		"postRemoteConnectCommands": [],
		"preLaunchTask": {"args": [],
	"env": {},
"filter": {},

"type": "codelldb.cargo"},
"presentation": {
"hidden": false,
"group": "",
"order": 1
},
"serverLaunchTimeout": "10000",
"serverReadyAction":{
"action": "startDebugging",
"name": "",
"killOnServerStop": false
},
"serverStarted": "",
"showDisplayString": true,
"sourceFileMap": {
"": ""
},
"stopAtConnect": false,
"suppressMultipleSessionWarning": true,
"svdPath": "",
"symbolLoadInfo": {
"loadAll": true,
"exceptionList": ""
},
"targetArchitecture": "x64",
"unknownBreakpointHandling": "throw",
"useExtendedRemote": false,
"variables": {
"": ""
},
"visualizerFile":[],
"windows": {},

	}
]

}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.