Skip to content

Instantly share code, notes, and snippets.

@deppp
deppp / label_studio_rectangle.html
Last active July 11, 2021 15:21
Label Studio frontend embed for object detection. Try to save the code below as an HTML page and open it up in your browser.
<!-- Include Label Studio stylesheet -->
<link href="https://unpkg.com/label-studio@0.4.0/build/static/css/main.14acfaa5.css" rel="stylesheet">
<!-- Create the Label Studio container -->
<div id="label-studio"></div>
<!-- Include the Label Studio library -->
<script src="https://unpkg.com/label-studio@0.4.0/build/static/js/main.0249ea16.js"></script>
<!-- Initialize Label Studio -->
\documentclass[12pt]{article}
\begin{document}
i(x) = -1/|X| \sum_{j=1}^N (\|x - x_j\|)
\end{document}
$$i(x) = -1/|X| \sum_{j=1}^N (\|x - x_j\|)$$

Keybase proof

I hereby claim:

  • I am deppp on github.
  • I am maluyk (https://keybase.io/maluyk) on keybase.
  • I have a public key whose fingerprint is 7C18 1CA0 4663 3566 4EEF 082C 7DD1 FA90 E8AC 0FEA

To claim this, I am signing this object:

use Data::Dump 'dump';
my $person = Person->new({
firstname => 'Mikhail',
lastname => 'Maluyk'
});
my $employee = Employee->new({
firstname => 'Mikhail',
lastname => 'Maluyk',
package Employee;
use Class::MOP;
use Class::MOP::Class;
use Class::MOP::Attribute;
Class::MOP::Class->create(
'Employee' => (
version => '0.01',
superclasses => ['Person'],
package Person;
use Class::MOP;
use Class::MOP::Class;
use Class::MOP::Attribute;
Class::MOP::Class->create(
'Person' => (
version => '0.01',
attributes => [
use MooseX::Declare;
class BankAccount {
has 'balance' => ( isa => 'Num', is => 'rw', default => 0 );
method deposit (Num $amount) {
$self->balance( $self->balance + $amount );
}
method withdraw (Num $amount) {
package main;
use Data::Dump 'dump';
my $circle = App::Circle->new( diameter => 10, center => '10x10', color => 'blue' );
my $triangle = App::Triangle->new( vertices => ['10x20', '20x50', '30x50'] );
dump $circle;
dump $triangle;
print $triangle->as_svg, "\n";
package App::Triangle;
use Moose;
use Moose::Util::TypeConstraints;
extends 'App::Shape';
subtype 'Vertices'
=> as 'ArrayRef[App::Point]'
=> where { $#{$_} eq 2 }
=> message { "triangle has exactly three vertices" };