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
| #!/bin/bash | |
| # Batch re-encode DJI Osmo Action 4 D-Log M (10-bit) footage to HEVC | |
| # (libx265, crf 30, slow preset) as HDR .mp4 files that iPhones, QuickTime, | |
| # Photos, Apple TV and HDR TVs recognize and play as HDR (HLG). | |
| # | |
| # Source format (Osmo Action 4, "10-bit D-Log M" color mode): | |
| # 4K 29.97 fps HEVC ~90 Mbps, yuv420p10le, container/VUI tagged plain | |
| # BT.709 limited range, AAC-LC stereo audio, plus DJI extra tracks | |
| # (djmd/dbgi telemetry, tmcd timecode, embedded cover-art/preview JPEGs). | |
| # |
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
| #!/bin/bash | |
| # Batch re-encode DJI action-camera footage to HEVC (libx265, crf 24, medium | |
| # preset). Developed and tested with DJI Osmo Action 5 Pro recordings: | |
| # 4K 29.97 fps HEVC ~56 Mbps, 10-bit HLG HDR (BT.2020 / ARIB STD-B67), | |
| # AAC-LC stereo audio, plus DJI extra tracks (djmd/dbgi telemetry with | |
| # per-frame accelerometer, shutter speed and color temperature; a tmcd | |
| # timecode track; embedded cover-art/preview JPEGs). | |
| # | |
| # What it does per file: | |
| # - keeps only the main video + audio streams; audio is copied untouched |
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
| ///// TODO : Replace <<LAN_INTERFACE>> with internal bridge or lan interface, replace <<<PPPOE_DIGI_INTERFACE>>> with the pppoe-digi interface | |
| /ipv6 nd | |
| set [ find default=yes ] disabled=yes | |
| add advertise-dns=yes interface=<<LAN_INTERFACE>> | |
| /ipv6 dhcp-client | |
| add add-default-route=yes interface=<<<PPPOE_DIGI_INTERFACE>>> pool-name=pool6 request=address,prefix script=":del\ | |
| ay 5s;\ | |
| \n/ipv6 address remove [find advertise=yes]\ |
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:1,name:'Bulbasaur'}, | |
| {id:2,name:'Ivysaur'}, | |
| {id:3,name:'Venusaur'}, | |
| {id:4,name:'Charmander'}, | |
| {id:5,name:'Charmeleon'}, | |
| {id:6,name:'Charizard'}, | |
| {id:7,name:'Squirtle'}, | |
| {id:8,name:'Wartortle'}, | |
| {id:9,name:'Blastoise'}, | |
| {id:10,name:'Caterpie'}, |
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
| #include <stdio.h> | |
| /* The struct of the rectangles */ | |
| typedef struct { | |
| float x; | |
| float y; | |
| float width; | |
| float height; | |
| char* fill; |
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
| #include <iostream> | |
| #include <thread> | |
| #include <ctime> | |
| using namespace std; | |
| void calc(unsigned long iterations) { | |
| unsigned long n = 0; | |
| for (unsigned long i = 0; i < iterations; i++) { | |
| n = n + n * (i % 5); |
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
| //Process started | |
| reg started; | |
| ////////////// | |
| // States | |
| // 0: load | |
| // 1: start bit | |
| // 2..8: data | |
| // 9: parity bit | |
| // 10..11: stop bits |
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 rategen( | |
| input clk, | |
| input rst, | |
| output cy | |
| ); | |
| reg [25:0] cntr; | |
| assign cy = (cntr == 4); | |
| //assign cy = (cntr == 49999999); |
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 shr_4( | |
| input clk, | |
| input ce, | |
| input rst, | |
| output [3:0] out | |
| ); | |
| reg [3:0] shr; | |
| assign out = shr; |
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
| #include "Wifi.h" | |
| #include "Arduino.h" | |
| //Wifi beallitas | |
| void Wifi::init() { | |
| char buf[256]; | |
| Serial1.begin(9600); | |
| Serial1.setTimeout(250); | |
| Serial.println("WIFI: Command mode ON"); |
NewerOlder