Skip to content

Instantly share code, notes, and snippets.

View ablwr's full-sized avatar
✌️
always

Ashley Blewer ablwr

✌️
always
View GitHub Profile
@ablwr
ablwr / gist:77432ecdbe1235aa1e916915818c666d
Created April 4, 2017 16:47
brew install qctools --HEAD
Last 15 lines from /Users/ashleyblewer/Library/Logs/Homebrew/qctools/02.make:
../../../Source/Core/FileInformation.cpp:721:12: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
if (Pos>=ReferenceStat()->x_Current_Max)
~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../Source/Core/FileInformation.cpp:745:21: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
if (Frames_Pos+1>=ReferenceStat()->x_Current_Max)
~~~~~~~~~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.9 -DWITH_SYSTEM_FFMPEG=1 -O2 -fPIC -std=gnu++11 -Wall -W -DUSE_BREW -DQWT_DLL -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/l
@ablwr
ablwr / qctools_octohat
Created April 21, 2017 22:40
Octohat for QCTools
GitHub Contributors:
ablwr (Ashley)
dericed (Dave Rice)
dlandes
ElderOrb (elderorb)
epiil (Erik Piil)
g-maxime (Maxime Gervais)
gitter-badger (The Gitter Badger)
JeromeMartinez (Jérôme Martinez)
kellyhaydon (metacynic)
### Keybase proof
I hereby claim:
* I am ablwr on github.
* I am ablwr (https://keybase.io/ablwr) on keybase.
* I have a public key ASDD8l6LzXrvm669N0Y_uQFYcffpAaSNoUR7vCxxuGzBFAo
To claim this, I am signing this object:
@ablwr
ablwr / cat-game.c
Last active January 31, 2018 00:55
writing something in C from scratch for the first time
// make cat-game and ./cat-game to play, macOS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
// adds ability to pause
void nsleep(long us)
{
@ablwr
ablwr / invading-space
Created February 9, 2018 19:20
javascript/html5 canvas
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>👾 invade! 👾</title>
<style type="text/css">
canvas {
background-color: black;
background-image:
radial-gradient(white, rgba(240,240,240,.2) 2px, transparent 4px),

General notes:

Transfer are set to go to ingest by default, so took me a little while to realize I had to go to the Admin panel and turn off that feature in order to put some things through the backlog. But that is just me, hahaaa.

When arranging in the Ingest tab, originals are counted with all types of objects (metadata, logs) but arranged are estimated with only object-objects. This makes sense but it looks weird.

Would be nice to have a button to reset ingest/backlog search.

How do I use a new custom MCP processing file made in-browser? Answer: Can't really do that. Can't test that feature, am testing below by editing the default file.

use std::fs::File;
use std::io::Write;
use std::io::Read;
const luma_width: usize=128;
const luma_height: usize=96;
const chroma_width: usize=luma_width / 2;
const chroma_height: usize=luma_height / 2;
// H.264 bitstreams
extern crate cpal;
use cpal::{EventLoop, StreamData, UnknownTypeOutputBuffer};
fn main() {
let event_loop = EventLoop::new();
let device = cpal::default_output_device().expect("no output device available");
let format = device.default_output_format().unwrap();
extern crate image;
extern crate glob;
use image::GenericImage;
use image::RgbaImage;
use glob::glob;
struct ImageSequence {
images: Vec<RgbaImage>,
}
Process: QCTools [46581]
Path: /Volumes/VOLUME/QCTools.app/Contents/MacOS/QCTools
Identifier: net.mediaarea.qctools.mac
Version: 0.9 (1.0.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: QCTools [46581]
User ID: 501
Date/Time: 2018-06-14 11:43:40.060 -0400