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
    
  
  
    
  | use mav_movie_player::{ | |
| FramesPerSecond, Movie, MovieBuilder, MovieFrame, MoviePlayer, Pixel, PlayMode, PlayerState, | |
| }; | |
| use std::ops::{Deref, DerefMut}; | |
| fn main() -> Result<(), Box<dyn std::error::Error>> { | |
| let movie = create_movie()?; | |
| let mut player = OwningMoviePlayer::new(); | |
| player.load_movie(movie); | |
| player.play(); | 
  
    
      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
    
  
  
    
  | { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "type": "object", | |
| "patternProperties": { | |
| "^(?!archives$|credentials$|built-artifacts$|\\$schema)[a-zA-Z0-9_\\-.]+$": { | |
| "$ref": "#/$defs/collection" | |
| } | |
| }, | |
| "properties": { | |
| "$schema": { | 
  
    
      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
    
  
  
    
  | { | |
| "$id": "https://gist.githubusercontent.com/dgehriger/b47be6a0d497e32fa48e3575cd9f78a0/raw/mctrl_elmo.v1.schema.json", | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "title": "Motion Control Configuration Schema", | |
| "type": "object", | |
| "properties": { | |
| "$schema": { | |
| "type": "string", | |
| "format": "uri", | |
| "const": "https://gist.githubusercontent.com/dgehriger/b47be6a0d497e32fa48e3575cd9f78a0/raw/mctrl_elmo.v1.schema.json" | 
  
    
      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
    
  
  
    
  | { | |
| "layers": [ | |
| { | |
| "name": "world", | |
| "tileset": "MapEditor Tileset_woodland.png", | |
| "data": [ | |
| -1, -1, -1, 3, -1, -1, -1, -1, -1, -1, -1, 3, -1, -1, -1, -1, 3, -1, -1, | |
| -1, -1, -1, -1, -1, -1, -1, -1, 3, -1, 3, -1, -1, -1, -1, -1, -1, 3, -1, | |
| -1, -1, 3, 3, 3, 3, -1, -1, -1, -1, 3, -1, 3, 3, 3, 3, 3, -1, 3, -1, -1, | |
| 3, -1, 3, -1, -1, -1, -1, -1, -1, 3, -1, -1, -1, -1, -1, -1, -1, -1, -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
    
  
  
    
  | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICCLTG71+gHzsrYnAqdRF3i85881US+vV8ByWVW13HmE | 
  
    
      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
    
  
  
    
  | { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "type": "object", | |
| "definitions": { | |
| "duration": { | |
| "type": "string", | |
| "pattern": "^\\d+(nsec|ns|usec|us|msec|ms|seconds?|second|sec|s|minutes?|minute|min|m|hours?|hour|hr|h|days?|day|d|weeks?|week|w|months?|month|M|years?|year|y)((\\s\\d+)?(nsec|ns|usec|us|msec|ms|seconds?|second|sec|s|minutes?|minute|min|m|hours?|hour|hr|h|days?|day|d|weeks?|week|w|months?|month|M|years?|year|y))*$" | |
| }, | |
| "storageSize": { | |
| "type": "string", | 
  
    
      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
    
  
  
    
  | function RunAsAdmin { | |
| if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { | |
| $parentProcessId = (Get-CimInstance Win32_Process -Filter "ProcessId=$PID").ParentProcessId | |
| $parentProcess = Get-CimInstance Win32_Process -Filter "ProcessId=$parentProcessId" | Select-Object -ExpandProperty CommandLine | |
| if ($parentProcess -notmatch 'Invoke-Expression') { | |
| Write-Host "This script must be run as Administrator." -ForegroundColor Red | |
| Read-Host "Press any key to continue..." | |
| exit 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
    
  
  
    
  | Test | 
  
    
      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
    
  
  
    
  | { | |
| "layer001": 1, | |
| "layer002": 2, | |
| "layer003": 3 | |
| } | 
NewerOlder