- Time of benchmark: 23 May 2021 - 10:4
- Package commit: dirty
- Julia commit: 6aaede
- Julia command flags: None
- Environment variables: None
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
### | |
# Write example | |
### | |
data = Vector{Cuchar}([ | |
0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10, 0x4a, 0x46, 0x49, 0x46, 0x00, 0x01, | |
0x01, 0x01, 0x00, 0x48, 0x00, 0x48, 0x00, 0x00, 0xff, 0xdb, 0x00, 0x43, | |
0x00, 0x14, 0x0e, 0x0f, 0x12, 0x0f, 0x0d, 0x14, 0x12, 0x10, 0x12, 0x17, | |
0x15, 0x14, 0x18, 0x1e, 0x32, 0x21, 0x1e, 0x1c, 0x1c, 0x1e, 0x3d, 0x2c, | |
0x2e, 0x24, 0x32, 0x49, 0x40, 0x4c, 0x4b, 0x47, 0x40, 0x46, 0x45, 0x50, | |
0x5a, 0x73, 0x62, 0x50, 0x55, 0x6d, 0x56, 0x45, 0x46, 0x64, 0x88, 0x65, |
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
module LibExif | |
using libexif_jll | |
mutable struct _ExifContentPrivate end | |
const ExifContentPrivate = _ExifContentPrivate | |
mutable struct _ExifContent | |
entries::Ptr{Ptr{Cvoid}} # entries::Ptr{Ptr{ExifEntry}} |
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
### A Pluto.jl notebook ### | |
# v0.17.3 | |
using Markdown | |
using InteractiveUtils | |
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error). | |
macro bind(def, element) | |
quote | |
local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end |
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
using Gtk | |
win = GtkWindow("Skyring", 300, 350) | |
set_gtk_property!(win,:resizable,false) | |
grid = GtkGrid() | |
set_gtk_property!(grid,:margin,20) | |
text = "" |
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
using Gtk | |
win = GtkWindow("Doritos Calculator", 300, 350) | |
set_gtk_property!(win,:resizable,false) | |
grid = GtkGrid() | |
set_gtk_property!(grid,:margin,20) | |
text = "" | |
b1 = GtkButton("1") |
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
# Instructions to get something running of Malmo | |
# In terminal 1 and a particular environment | |
# 1) Do `pip3 install gym lxml numpy pillow` | |
# 2) Do `git clone https://github.com/Microsoft/malmo.git` | |
# 3) Go to `cd malmo/MalmoEnv` | |
# 4) Do `(echo -n "malmomod.version=" && cat ../VERSION) > ./src/main/resources/version.properties` | |
# 5) Then run this file `julia run.jl` | |
# In terminal 2 |
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
vert=CartesianIndex{2}[] | |
push!(vert, CartesianIndex(2,2)) | |
push!(vert, CartesianIndex(3,2)) | |
push!(vert, CartesianIndex(4,2)) | |
push!(vert, CartesianIndex(5,2)) | |
push!(vert, CartesianIndex(6,3)) | |
push!(vert, CartesianIndex(7,4)) | |
push!(vert, CartesianIndex(8,4)) | |
push!(vert, CartesianIndex(9,3)) | |
push!(vert, CartesianIndex(10,2)) |
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 cProfile | |
from skimage import data | |
from skimage.util import img_as_ubyte | |
from skimage import io | |
from skimage.morphology import disk | |
from skimage.morphology import erosion | |
def test(): | |
orig_phantom = img_as_ubyte(data.shepp_logan_phantom()) | |
selem = disk(6) |