Initial commit

This commit is contained in:
Romein van Buren 2022-07-17 20:42:42 +02:00
commit 4f3fce48e1
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49
10 changed files with 2887 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
node_modules/
.DS_Store
*.out

71
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,71 @@
{
"files.associations": {
"*.njk": "html",
"*.php": "php",
"string": "cpp",
"iosfwd": "cpp",
"__bit_reference": "cpp",
"__bits": "cpp",
"__config": "cpp",
"__debug": "cpp",
"__errc": "cpp",
"__hash_table": "cpp",
"__locale": "cpp",
"__mutex_base": "cpp",
"__node_handle": "cpp",
"__nullptr": "cpp",
"__split_buffer": "cpp",
"__string": "cpp",
"__threading_support": "cpp",
"__tuple": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"bitset": "cpp",
"cctype": "cpp",
"chrono": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"compare": "cpp",
"complex": "cpp",
"concepts": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"exception": "cpp",
"initializer_list": "cpp",
"ios": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"locale": "cpp",
"memory": "cpp",
"mutex": "cpp",
"new": "cpp",
"optional": "cpp",
"ostream": "cpp",
"ratio": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"typeinfo": "cpp",
"unordered_map": "cpp",
"variant": "cpp",
"vector": "cpp",
"__functional_base": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"utility": "cpp"
}
}

28
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,28 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: clang++ build active file",
"command": "/usr/bin/clang++",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}

7
cpp/01-hello.cpp Normal file
View File

@ -0,0 +1,7 @@
#include <iostream>
using namespace std;
int main() {
cout << "Hello World!";
return 0;
}

9
cpp/02-days.cpp Normal file
View File

@ -0,0 +1,9 @@
#include <iostream>
#include <string>
int main() {
const std::string days[7] = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"};
std::cout << days[4];
std::cout << '\n';
return 0;
}

9
cpp/03-refs.cpp Normal file
View File

@ -0,0 +1,9 @@
#include <iostream>
#include <string>
int main() {
std::string str = "Post box:";
std::cout << str << '\n';
std::cout << &str << '\n';
}

28
cpp/04-pointers.cpp Normal file
View File

@ -0,0 +1,28 @@
#include <iostream>
#include <string>
int main() {
std::string tapa = "calamares";
std::string* pointer = &tapa;
std::cout << "tapa " << tapa << "\n";
std::cout << "&tapa " << &tapa << "\n";
std::cout << "pointer " << pointer << "\n";
std::cout << "*pointer " << *pointer << "\n\n";
tapa = "albondigas";
std::cout << "tapa " << tapa << "\n";
std::cout << "&tapa " << &tapa << "\n";
std::cout << "pointer " << pointer << "\n";
std::cout << "*pointer " << *pointer << "\n\n";
*pointer = "croquetas de jamón";
std::cout << "tapa " << tapa << "\n";
std::cout << "&tapa " << &tapa << "\n";
std::cout << "pointer " << pointer << "\n";
std::cout << "*pointer " << *pointer << "\n";
return 0;
}

View File

@ -0,0 +1 @@
console.log('hello');

2720
js/libraries/pkg/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
{
"dependencies": {
"pkg": "^5.5.1"
},
"bin": {
"hello": "lib/hello.js"
},
"scripts": {
"pkg": "pkg lib/index.js --out-path build/"
}
}