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
double fileDuration = ifmt_ctx->duration * av_q2d(AV_TIME_BASE_Q); | |
double pktPts = pkt.pts * av_q2d(ifmt_ctx->streams[pkt.stream_index]->time_base); | |
int64_t prog = ceil((pktPts / fileDuration) * 100); |
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
/* | |
Given an integer array nums where the elements are sorted in ascending order, convert it to a height-balanced binary search tree. | |
A height-balanced binary tree is a binary tree in which the depth of the two subtrees of every node never differs by more than one. | |
*/ | |
#include <iostream> | |
#include <vector> | |
#include <queue> | |
#include <functional> |
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
/* | |
Given an integer array nums where the elements are sorted in ascending order, convert it to a height-balanced binary search tree. | |
A height-balanced binary tree is a binary tree in which the depth of the two subtrees of every node never differs by more than one. | |
*/ | |
#include <iostream> | |
#include <vector> | |
#include <queue> | |
#include <functional> |
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
cmake_minimum_required(VERSION 3.12.0) | |
project(HelloQt) | |
# Find includes in corresponding build directories | |
set(CMAKE_INCLUDE_CURRENT_DIR ON) | |
# Instruct CMake to run moc automatically when needed | |
set(CMAKE_AUTOMOC ON) | |
# Create code from a list of Qt designer ui files | |
set(CMAKE_AUTOUIC ON) |
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
GLOBAL_LIST_EMPTY(active_alternate_appearances) | |
/atom | |
var/list/alternate_appearances | |
/atom/proc/remove_alt_appearance(key) | |
if(alternate_appearances) | |
for(var/K in alternate_appearances) | |
var/datum/atom_hud/alternate_appearance/AA = alternate_appearances[K] |
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
{ | |
"version": "1.11.8.8", | |
"date": 1439766292361, | |
"Conf": { | |
"JSON Navigation": true, | |
"Use 4chan X Catalog": true, | |
"Index Refresh Notifications": false, | |
"External Catalog": false, | |
"Catalog Links": false, | |
"Announcement Hiding": true, |