Skip to content

Instantly share code, notes, and snippets.

View markhalliwell's full-sized avatar
🦄
unicorns!

Mark Halliwell markhalliwell

🦄
unicorns!
  • Fort Worth, Texas, USA
View GitHub Profile
@markhalliwell
markhalliwell / index.html
Last active November 7, 2016 16:25
Stand alone Dreditor UI patch reviewer
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Patch Review</title>
<link type="text/css" rel="stylesheet" href="/sites/all/libraries/prism/prism.css" media="all">
<link type="text/css" rel="stylesheet" href="/sites/all/libraries/dreditor/dist/css/dreditor.css" media="all">
<link type="text/css" rel="stylesheet" href="/sites/all/libraries/dreditor-ui/dist/css/dreditor-ui.css" media="all">
</head>
<body>
#!/usr/bin/env bash
[ ! -d .git ] && "This is not a git directory." && exit 1
# Setup the gource info for the repo.
~/gource/setup
# Create the video.
gource --load-config ./.git/gource/config.ini | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 8 -bf 0 ./gource.mp4
// Colors.
$color-map-variations: (
alpha: .95,
dark: 10%,
darker: 15%,
darkest: 20%,
light: 5%,
lighter: 10%,
lightest: 15%,
@markhalliwell
markhalliwell / shim-jspanel4.d.ts
Last active June 21, 2023 17:26
jspanel4 TypeScript declarations
declare module 'jspanel4' {
// Types.
export type IJSPanelAutoPosition = 'down' | 'left' | 'up' | 'right';
export type JSPanelContent<T = string | HTMLElement> = T;
export type IJSPanelContentArray<
TContent = string | HTMLElement,
> = IJSPanelDynamicContent<TContent>[] | JSPanelContent<TContent>;
export type JSPanelControlStatus = 'disable' | 'enable' | 'hide' | 'remove' | 'show';
export type IJSPanelDimension = number | string | IJSPanelCallback<number | string>;
export type IJSPanelDynamicContent<