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 argparse import Namespace | |
import shutil | |
from typing import Any, Dict, Optional, Union, MutableMapping | |
from dvclive.lightning import DVCLiveLogger | |
from lightning_fabric.utilities.logger import _convert_params | |
from omegaconf.listconfig import ListConfig | |
from lightning.pytorch.loggers.mlflow import rank_zero_only | |
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
git clone -b 3.3.0 git@github.com:opencv/opencv.git | |
git clone -b 3.3.0 git@github.com:opencv/opencv_contrib.git | |
dnf -y install gtk2-devel libdc1394-devel libv4l-devel ffmpeg-devel gstreamer-plugins-base-devel tbb-devel eigen3-devel \ | |
libpng-devel libjpeg-turbo-devel jasper-devel openexr-devel libtiff-devel libwebp-devel | |
mkdir build && cd build | |
cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/opt/opencv -D \ | |
PYTHON_EXECUTABLE=/home/<user>/anaconda3/bin/python3.6 -DPYTHON_INCLUDE=/home/<user>/anaconda3/include/python3.6m/ \ |
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
path_len = 0.0 | |
for i in range(1, len(astar_path)): | |
path_len += sqrt((astar_path[i][0] - astar_path[i - 1][0]) ** 2 + | |
(astar_path[i][1] - astar_path[i - 1][1]) ** 2) | |
print("path_len", path_len) |
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
package benchmark; | |
import com.google.caliper.Param; | |
import com.google.caliper.Runner; | |
import com.google.caliper.SimpleBenchmark; | |
import sort_algs.Sorter; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; |
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
package becnhmark; | |
import com.google.caliper.BeforeExperiment; | |
import com.google.caliper.Param; | |
import sort_algs.Sorter; | |
import java.io.*; | |
import java.util.ArrayList; | |
public class Benchmark { |
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
<?xml version="1.0" standalone="yes"?> | |
<Vegetables> | |
<Potato> | |
<Name>Row 0</Name> | |
<Number>0</Number> | |
</Potato> | |
<Potato> | |
<Name>Row 1</Name> | |
<Number>1</Number> | |
</Potato> |
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
DataTable dt; | |
DataSet readDs; | |
public MainWindow() | |
{ | |
InitializeComponent(); | |
dt = new DataTable(); | |
DataColumn dc; |