- install tart: https://tart.run/
- download: https://channels.nixos.org/nixos-23.05/latest-nixos-minimal-aarch64-linux.iso
tart create --linux --disk-size <disk-size-in-gb> <vm-name>
tart run --rosetta="rosetta" --disk <path-to-iso> <vm-name>
- install: https://nixos.org/manual/nixos/stable/index.html#sec-installation-manual
- set up Rosetta: https://xyno.space/post/nixos-utm-rosetta
- have fun
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <ctype.h> | |
typedef enum e_priority { | |
PRIMARY = 0, | |
UNARY, | |
MULTIPLICATIVE, | |
ADDITIVE, | |
SHIFT, |
Build VAAPI with support for VP8/9 decode and encode hardware acceleration on a Skylake validation testbed:
Build platform: Ubuntu 16.04LTS.
First things first:
Install baseline dependencies first
sudo apt-get -y install autoconf automake build-essential libass-dev libtool pkg-config texinfo zlib1g-dev libva-dev cmake mercurial libdrm-dev libvorbis-dev libogg-dev git libx11-dev libperl-dev libpciaccess-dev libpciaccess0 xorg-dev intel-gpu-tools
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
const scrollToItemId = (containerId, srollToId) => { | |
const scrollContainer = document.getElementById(containerId); | |
const item = document.getElementById(scrollToId); | |
//with animation | |
const from = scrollContainer.scrollTop; | |
const by = item.offsetTop - scrollContainer.scrollTop; | |
if (from < item.offsetTop) { | |
if (item.offsetTop > scrollContainer.scrollHeight - scrollContainer.clientHeight) { | |
by = (scrollContainer.scrollHeight - scrollContainer.clientHeight) - scrollContainer.scrollTop; |
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 src="http://cdnjs.cloudflare.com/ajax/libs/processing.js/1.4.1/processing-api.min.js"></script><html> | |
<!-- | |
Created using jsbin.com | |
Source can be edited via http://jsbin.com/pdfjs-helloworld-v2/8598/edit | |
--> | |
<body> | |
<canvas id="the-canvas" style="border:1px solid black"></canvas> | |
<input id='pdf' type='file'/> | |
<!-- Use latest PDF.js build from Github --> |