Skip to content

Instantly share code, notes, and snippets.

View duurland's full-sized avatar

durland duurland

View GitHub Profile
@duurland
duurland / DaVinciResolve.d.ts
Created January 8, 2023 01:48 — forked from bradcordeiro/DaVinciResolve.d.ts
DaVinci Resolve 18 Javascript API TypeScript Types
/* eslint-disable max-classes-per-file */
declare namespace DaVinciResolve {
type Base64Data = string; /** Property of ThumbnailData type but otherwise undocumented */
type FusionComp = unknown; /** Return or argument type for some TimelineItem methods but otherwise undocumented */
type GalleryStill = unknown; /** Return or argument type for GalleryStillAlbum methods but otherwise undocumented */
type TimelineExportAAFSubType = unknown; /** Probably an enum but undocumented, optional argument for Timeline.Export */
type TimelineExportEDLSubType = unknown; /** Probably an enum but undocumented, optional argument for Timeline.Export */
type TimelineExportSubType = TimelineExportAAFSubType | TimelineExportEDLSubType;
type TimelineExportType = unknown; /** Probably an enum but undocumented, argument for Timeline.Export */
@duurland
duurland / functions.php
Last active September 16, 2017 23:09
Hide default WordPress users profile fields
<?php
// As there seems to be no good php hook to remove default wordpress profile fields,
// I ended up hiding the fields with CSS then remove them with JS.
add_action( 'admin_head', 'remove_default_profile_fields' );
function remove_default_profile_fields() {
global $pagenow;