| Shortcut | Action |
|---|---|
| Ctrl+Shift+P, F1 | Show Command Palette |
| Ctrl+K Ctrl+S | Show Keyboard Shortcuts |
| Ctrl+, | Open Settings |
| Ctrl+K V | Open Preview in Side |
This file contains hidden or 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
| GitHub Activity |
This file contains hidden or 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
| name: Build | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| # Build App |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <!-- https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API --> | |
| <html> | |
| <!-- The body has height of 300px of effective area to drop the elements --> | |
| <body id="body" ondrop="drop_handler(event)" ondragover="dragover_handler(event)" style="height: 300px;"> | |
| <div id="div1" draggable="true" ondragstart="dragstart_handler(event)" ondrop="drop_handler(event)" ondragover="dragover_handler(event)" style="background-color: gold; padding: 10px;">Draggable item A</div> | |
| <div id="div2" draggable="true" ondragstart="dragstart_handler(event)" ondrop="drop_handler(event)" ondragover="dragover_handler(event)" style="background-color: deepskyblue; padding: 10px;">Draggable item B</div> | |
| </body> |
This file contains hidden or 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
| import os | |
| import random | |
| import cv2 | |
| #from detectron2.config import get_cfg | |
| from centermask.config import get_cfg | |
| from detectron2 import model_zoo | |
| from detectron2.engine import DefaultPredictor | |
| from detectron2.utils.visualizer import Visualizer, ColorMode | |
| from detectron2.data import MetadataCatalog |
This file contains hidden or 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
| appuser@0350938812fa:/tmp/src$ python3 test.py | |
| Failed to load OpenCL runtime | |
| ## PROPOSALS ## | |
| Instances(num_instances=2000, image_height=573, image_width=687, fields=[proposal_boxes, objectness_logits]) | |
| ## FIELDS ## | |
| {'proposal_boxes': Boxes(tensor([[286.9893, 37.3016, 687.0000, 536.0049], | |
| [161.1793, 62.7907, 687.0000, 573.0000], | |
| [256.4062, 144.6316, 687.0000, 573.0000], | |
| ..., | |
| [464.0695, 306.8295, 477.6617, 346.7988], |
This file contains hidden or 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 "IBase.h" | |
| #include "Derived.h" | |
| void Derived::IBase::Run(){ | |
| std::cout << "Hello from derived" << std::endl; | |
| } |
This file contains hidden or 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
| On Windows 10 is not possible to install .NET Framework 3.5 using the "Turn Windows features on or off" option because the error 0x800F081F. | |
| In my case I installed it following the steps below: | |
| 1. Go to https://my.visualstudio.com and download "Windows 10 Features on Demand" iso (x86 or x64). | |
| 2. Mount the iso | |
| 3. Open a PowerShell command line as Administrator and run the next command | |
| 3.1 Dism /online /enable-feature /featurename:NetFX3 /All /Source:D:\ /LimitAccess | |
| The output should something like this: | |
| ---------------------------------------- |
<Button Content="Hello" Command="{Binding HelloCommand}"/> <!-- Works OK -->
<Button Content="Hello" Command="{Binding HelloCompositeCommand}"/> <!-- Nope :( -->
public class MainWindowViewModel : BindableBase
{
public DelegateCommand HelloCommand { get; set; }
public CompositeCommand HelloCompositeCommand { get; set; }
NewerOlder