Initial commit
This commit is contained in:
commit
4f3fce48e1
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
node_modules/
|
||||
.DS_Store
|
||||
*.out
|
71
.vscode/settings.json
vendored
Normal file
71
.vscode/settings.json
vendored
Normal 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
28
.vscode/tasks.json
vendored
Normal 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
7
cpp/01-hello.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
cout << "Hello World!";
|
||||
return 0;
|
||||
}
|
9
cpp/02-days.cpp
Normal file
9
cpp/02-days.cpp
Normal 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
9
cpp/03-refs.cpp
Normal 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
28
cpp/04-pointers.cpp
Normal 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;
|
||||
}
|
1
js/libraries/pkg/lib/index.js
Normal file
1
js/libraries/pkg/lib/index.js
Normal file
@ -0,0 +1 @@
|
||||
console.log('hello');
|
2720
js/libraries/pkg/package-lock.json
generated
Normal file
2720
js/libraries/pkg/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
11
js/libraries/pkg/package.json
Normal file
11
js/libraries/pkg/package.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"pkg": "^5.5.1"
|
||||
},
|
||||
"bin": {
|
||||
"hello": "lib/hello.js"
|
||||
},
|
||||
"scripts": {
|
||||
"pkg": "pkg lib/index.js --out-path build/"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user