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
! Copyright (C) 2020 . | |
! See http://factorcode.org/license.txt for BSD license. | |
USING: endian sequences kernel classes.struct io io.binary io.files io.encodings io.encodings.string io.encodings.utf8 io.encodings.binary alien.c-types alien.endian math locals accessors prettyprint combinators pack math.parser strings arrays io.streams.byte-array sequences.generalizations assocs splitting ; | |
QUALIFIED: bitstreams | |
IN: flac | |
ALIAS: read-bit bitstreams:read | |
CONSTANT: FLAC-MAGIC "fLaC" |
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
gboolean handle_element (GstBus *bus, GstMessage *msg, UserInterface *ui) | |
{ | |
const GstStructure *s= gst_message_get_structure (msg); | |
guint band; | |
const GValue *magnitudes; | |
if (gst_structure_has_name (s, "spectrum")) | |
{ | |
magnitudes = gst_structure_get_value (s, "magnitude"); | |
gfloat *m; |
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
(define-module (bbbsd packages firmware) | |
#:use-module (guix download) | |
#:use-module (guix build-system trivial) | |
#:use-module (guix build-system gnu) | |
#:use-module (guix build utils) | |
#:use-module (guix utils) | |
#:use-module (guix packages) | |
#:use-module (gnu packages) | |
#:use-module (gnu packages python)) |
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
~/S/g/src/flac/.libs λ readelf -a audiofiles-flac.so | |
ELF Header: | |
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 | |
Class: ELF64 | |
Data: 2's complement, little endian | |
Version: 1 (current) | |
OS/ABI: UNIX - System V | |
ABI Version: 0 | |
Type: DYN (Shared object file) | |
Machine: Advanced Micro Devices X86-64 |
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 | |
alias lstrmr=livestreamer-wrapper | |
alias twitch=twitch-wrapper | |
alias sc2=twitch-wrapper | |
twitch_sc2_endpoint='https://api.twitch.tv/kraken/streams?game=StarCraft+II&limit=10' | |
twitch_head='Accept: application/vnd.twitchtv.v3+json' | |
livestreamer-wrapper () { |
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 | |
alias lstrmr=livestreamer-wrapper | |
alias twitch=twitch-wrapper | |
livestreamer-wrapper () { | |
livestreamer $1 best 1>/dev/null & | |
} | |
twitch-wrapper () { |
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
alias lstrmr=livestreamer-wrapper | |
alias twitch=twitch-wrapper | |
livestreamer-wrapper () { | |
livestreamer $1 best 1>/dev/null & | |
} | |
twitch-wrapper () { | |
livestreamer-wrapper twitch.tv/$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
(require 'cl) | |
(request | |
"https://api.twitch.tv/kraken/streams" | |
:params '(("game" . "StarCraft II") ("limit" . "10")) | |
:parser 'json-read | |
:success (function* | |
(lambda (&key data &allow-other-keys) | |
(when data | |
(with-current-buffer (get-buffer-create "*Sc2 Streamers*") | |
(erase-buffer) |
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
alias lstrmr=livestreamer-wrapper | |
alias twitch=twitch-wrapper | |
livestreamer-wrapper () { | |
livestreamer $1 best 1>/dev/null & | |
} | |
twitch-wrapper () { | |
livestreamer-wrapper twitch.tv/$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
sc2 () { | |
ruby -e 'require "json";JSON.parse(ARGV[0])["streams"][0..9].each{|s|printf("%s ", s["channel"]["name"])};puts' "$(curl -sH 'Accept: application/vnd.twitchtv.v3+json' -X GET https://api.twitch.tv/kraken/streams?game=StarCraft+II)" | |
} |
NewerOlder