Skip to content

Instantly share code, notes, and snippets.

View duurland's full-sized avatar

durland duurland

View GitHub Profile
@joyrexus
joyrexus / README.md
Last active March 22, 2025 12:57 — forked from liamcurry/gist:2597326
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@pbojinov
pbojinov / README.md
Last active January 31, 2025 05:04
Two way iframe communication- Check out working example here: http://pbojinov.github.io/iframe-communication/

Two way iframe communication

The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.

Parent

Send messages to iframe using iframeEl.contentWindow.postMessage Recieve messages using window.addEventListener('message')

iframe

@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()
}
@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) {
@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;
@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;
@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
@imolorhe
imolorhe / readme.md
Last active January 11, 2025 16:55
Plugin system architecture
@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>
@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,