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
using Revise | |
using ModelingToolkit | |
using ModelingToolkitStandardLibrary.Blocks: RealInput, Step, Sine, Cosine | |
using ModelingToolkitStandardLibrary.Electrical | |
using OrdinaryDiffEq | |
using Plots | |
@parameters t | |
@component function ControlledSwitch(; name) |
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
Script started on 2023-08-15 11:12:51+05:30 [TERM="xterm-256color" TTY="/dev/pts/4" COLUMNS="142" LINES="19"] | |
[?2004h]0;ash@Ash: ~[01;32mash@Ash[00m:[01;34m~[00m$ exit./test.shmake clean[1P./test.sh | |
[?2004l | |
[sudo] password for ash: | |
Reading package lists... 0% | |
Reading package lists... 100% | |
Reading package lists... Done |
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
### A Pluto.jl notebook ### | |
# v0.19.27 | |
using Markdown | |
using InteractiveUtils | |
# ╔═╡ 2c54a4d5-cd92-4f43-b972-48e57da5c444 | |
using ImageCore, TestImages | |
# ╔═╡ 3409b322-346b-11ee-2d6d-036b6fe74224 |
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
### A Pluto.jl notebook ### | |
# v0.19.27 | |
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 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
[deps] | |
Cairo = "159f3aea-2a34-519c-b102-8c37f9878175" | |
CoordinateTransformations = "150eb455-5306-5404-9cee-2592286d6298" | |
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549" | |
ImageDraw = "4381153b-2b60-58ae-a1ba-fd683676385f" | |
Images = "916415d5-f1e6-5110-898d-aaa5f9f070e0" | |
LazySets = "b4f0291d-fe17-52bc-9479-3d1a343d9043" | |
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | |
Luxor = "ae8d54c2-7ccd-5906-9d76-62fc9837b5bc" | |
Pluto = "c3e4b0f8-55cb-11ea-2926-15256bba5781" |
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
### A Pluto.jl notebook ### | |
# v0.19.27 | |
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 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
struct OctreeQuantization <: AbstractColorQuantizer | |
numcolors::Int | |
function OctreeQuantization( | |
numcolors::Int=256; | |
kwargs... | |
) | |
@info "Struct Create" | |
return new(numcolors) | |
end |
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
using GLMakie | |
scene = Scene() | |
cam3d!(scene) | |
c = cameracontrols(scene) | |
c.eyeposition[] = (0,5,0) | |
c.lookat[] = Vec3f(0,0,0) | |
c.upvector[] = (1, 1, 1) | |
update_cam!(scene) |
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
### on 1.8.5 | |
# without precompilation | |
# read uint8 data | |
# julia> @benchmark read_tags(file; read_all = true) | |
# BenchmarkTools.Trial: 10000 samples with 1 evaluation. | |
# Range (min … max): 57.300 μs … 2.119 ms ┊ GC (min … max): 0.00% … 96.37% | |
# Time (median): 59.400 μs ┊ GC (median): 0.00% |
NewerOlder