$ ffprobe -v quiet -print_format json -i vods/1/low/segment-0.ts -show_frames | \
jq -r '.frames[] | select(.media_type=="video") | .pict_type' | \
tr -d '\n'
IBBBPPBPBPBPBPBPBBPBBBPBBBPBBPBBBPBBBPBPBBBPBBBPIBBPBBBPBBBPBBBPBBBPBBBPBBBPBBBPBBBPBBBPBBBPBBBPIBBBPBBBPBBBPBBBPBBBPBBBPBBBPBBBPBBBPBBBPBBBPBBPIBBBPBBBPBBBPBBBPBBBPBBBPBBBPBBBPBBBPBBBPBBBPBBPIBBBPBBBPBBBPBBBPBBPBBBPBBBPBBBPBBBPBPBBBPBBBPBP
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
// pitch and yaw are in degrees | |
Vector3D getDirectionVector() { | |
return new Vector3D(-Math.cos(pitch * Math.PI / 180.0) * Math.sin(yaw * Math.PI / 180.0), Math.sin(pitch * Math.PI / 180.0), -Math.cos(pitch * Math.PI / 180.0) * Math.cos(yaw * Math.PI / 180.0)); | |
} |
IOTrace: 0 omitted frames
╭ flatMap
│ ╰╮
│ ├ org.simpleapp.example.Example.main (Example.scala:21)
│ ├ org.simpleapp.example.Example.main (Example.scala:-1)
│ ├ sun.reflect.NativeMethodAccessorImpl.invoke0 (NativeMethodAccessorImpl.java:-2)
│ ├ sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
│ ├ sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
│ ├ java.lang.reflect.Method.invoke (Method.java:498)
[info] running org.simpleapp.example.Example
1
2
3
4
5
IOTrace: 13 frames captured, 0 omitted
╭ flatMap
│ ╰╮
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
package tapl; | |
terminals true false if then else value steporvalue Bool Nat subterm succ nv | |
syntax | |
t ::= true | | |
false | | |
if t then t else t | | |
0 | |
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
import cats.effect._ | |
import org.http4s.implicits._ | |
import org.http4s.server.blaze.BlazeServerBuilder | |
import org.http4s.server.middleware.Logger | |
import scala.concurrent.ExecutionContext.global | |
object BlazeServer extends IOApp { | |
def server: IO[Nothing] = { | |
val app = Logger.httpApp(true, true)(routes.orNotFound) |
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
object Lambda extends App { | |
sealed trait Term | |
sealed trait Var[I <: Index] extends Term | |
sealed trait App[T1 <: Term, T2 <: Term] extends Term | |
sealed trait Abs[T1 <: Term] extends Term | |
sealed trait If[T1 <: Term, T2 <: Term, T3 <: Term] extends Term | |
sealed trait Bool[T1 <: Boolean] extends Term | |
sealed trait Index |
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
package tapl; | |
terminals true false if then else value steporvalue Bool | |
syntax | |
t ::= true | | |
false | | |
if t then t else t |
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
use std::sync::mpsc::{sync_channel, Receiver, SyncSender}; | |
use std::thread; | |
enum Message { | |
Chunk(Vec<u8>), | |
Flush, | |
} | |
struct TxWrite { | |
tx: SyncSender<Message>, |