CTRL+ALT+t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Vector3.hpp" | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
Vector3 test; | |
cout << "X=" << test.x << " Y=" << test.y << " Z=" << test.z << endl; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "Array.hpp" | |
Array::Array() | |
{ | |
std::cout << "CONSTRUCTOR CALLED" << std::endl; | |
for (auto i = 0; i < 100000; i++) | |
{ | |
data.push_back(i*i); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
class Vector3 | |
{ | |
public: | |
float x,y,z; | |
}; | |
class Array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tasks": [ | |
{ | |
"type": "cppbuild", | |
"label": "C/C++: g++ build active file", | |
"command": "/usr/bin/g++", | |
"args": [ | |
"-fdiagnostics-color=always", | |
"-g", | |
"${file}", |
nmcli device wifi
nmcli device show
nmcli device wifi connect {% Replace SSID Name %}
GitHub CLI, this is very useful command line tool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Don't try to be vi compatible | |
set nocompatible | |
" Helps force plugins to load correctly when it is turned back on below | |
filetype off | |
" TODO: Load plugins here (pathogen or vundle) | |
" Turn on syntax highlighting | |
syntax on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If not installed, install az cli from https://aka.ms/installazurecliwindows | |
# Login to azure and then run the following script. | |
# az login | |
# python3 script.py | grep -i "YourKey" | |
import os | |
import pandas as pd | |
from azure.keyvault.secrets import SecretClient | |
from azure.identity import DefaultAzureCredential, _credentials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import deque | |
def search(lines, pattern, history=5): | |
previous_lines = deque(maxlen=history) | |
for line in lines: | |
if pattern in line: | |
yield line, previous_lines | |
previous_lines.append(line) | |
NewerOlder