Skip to content

Instantly share code, notes, and snippets.

View duurland's full-sized avatar

durland duurland

View GitHub Profile
@noseratio
noseratio / purge-node-modules.cmd
Last active January 24, 2025 00:45
Delete node_modules recursively on Windows
@echo off
set folders=node_modules
echo This will delete all [%folders%] folders recursively and cannot be undone.
choice /t 10 /d n /c yn /m "Press Y to continue, N to stop"
if %errorLevel% neq 1 goto :EOF
for /d /r . %%D in (%folders%) do if exist "%%~fD\" (echo %%D && rd "%%~fD" /s /q)
@RichardMarks
RichardMarks / Controller.js
Created March 11, 2020 23:28
Versatile JS Controller/Plugin System
const Controller = () => {
const controller = {
__VERSION__: '1.0.0',
plugins: {},
installPlugin (plugin, override) {
if (!plugin || !('__pluginName__' in plugin)) {
throw new Error(`Controller was unable to install plugin - Invalid plugin was provided.`)
}
@X-Raym
X-Raym / DaVinci Resolve Scripting Doc.txt
Last active April 6, 2025 18:00
DaVinci Resolve Scripting API Doc v19.1
Last Updated: 28 October 2024
-----------------------------
In this package, you will find a brief introduction to the Scripting API for DaVinci Resolve Studio. Apart from this README.txt file, this package contains folders containing the basic import
modules for scripting access (DaVinciResolve.py) and some representative examples.
From v16.2.0 onwards, the nodeIndex parameters accepted by SetLUT() and SetCDL() are 1-based instead of 0-based, i.e. 1 <= nodeIndex <= total number of nodes.
Overview
--------
As with Blackmagic Fusion scripts, user scripts written in Lua and Python programming languages are supported. By default, scripts can be invoked from the Console window in the Fusion page,
@codenamezjames
codenamezjames / NavItem.vue
Created August 1, 2019 12:23
a simple nav item for quasar (Deps: lodash/debounce, change-case)
<template>
<div class="non-selectable" @mouseleave="hideMenuDebounce()" @mouseenter="showMenu()">
<q-btn v-if="labelField.to" :to="labelField.to" flat :label="labelField.label" class="cursor-inherit"/>
<q-btn v-else flat :label="labelField.label" class="cursor-inherit"/>
<q-menu :ref="labelField.label" @mouseleave="hideMenuDebounce()" @mouseenter="showMenu()" fit>
<q-list>
<q-item clickable v-close-popup :to="{name:item.name}" :class="`text-${$dark ? 'white' : 'black'}`" v-for="item in subFields" :key="item.name">
<q-item-section class="text-capitalize">{{titleCase(item.meta.title)}}</q-item-section>
</q-item>
</q-list>
@imolorhe
imolorhe / readme.md
Last active January 11, 2025 16:55
Plugin system architecture
@Toyz
Toyz / OW1 CMD
Last active April 21, 2025 16:46
All command line options to Overwatch
----------POSSIBLE OPTIONS----------------------------------------------
--account : [optional] account name to login with
--key : [optional] connection key for the server (defaults to 1 in debug)
--automationRoutine : [optional] automation routine to run after login
--startAutomationGraph : [optional] start up and execute automation global graph using provided guid
--gatherEffectStats : [optional] enables effect stat gathering
--noautoconnect : [optional] Do not automatically connect to a server
--fastQuit
--dumpAssetNames : Write to <file> a JSON map of GUID (String "0xabc...") to asset name for all soft assets
--startPosition : [optional] start position when joining a map
@kottenator
kottenator / simple-pagination.js
Created July 13, 2015 20:44
Simple pagination algorithm
// Implementation in ES6
function pagination(c, m) {
var current = c,
last = m,
delta = 2,
left = current - delta,
right = current + delta + 1,
range = [],
rangeWithDots = [],
l;
@idmontie
idmontie / glitch.html
Last active June 15, 2022 12:42
Glitch Text Effect with CSS
<!doctype html>
<html>
<head>
<!-- Based on http://codepen.io/lbebber/pen/ypgql -->
<link href="http://necolas.github.io/normalize.css/3.0.2/normalize.css" rel='stylesheet'/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
<style>
/* Just colors and font sizes */
* {
font-family: sans-serif;
@JamieMason
JamieMason / deep-reduce.js
Last active June 14, 2021 05:20
Perform a deeply recursive reduce on a JSON-encodable JavaScript Object hierarchy.
/**
* Perform a deeply recursive reduce on a set of JSON, or a JSON-encodable Object hierarchy.
*
* @param {Array|Object} collection
* @param {Function} fn
* @param {*} memo
* @return {*}
*/
function deepReduce(collection, fn, memo) {
@HoughIO
HoughIO / power.js
Created March 1, 2014 02:03
Wowhead JS
if (typeof $WH == "undefined") {
$WH = {
wowheadRemote: true
}
}
$WH.isTouch = function () {
if (!$WH.wowheadRemote && typeof Platform != "undefined") {
$WH.isTouch = function () {
return Platform.isTouch()
}