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
afterProject { p -> | |
p.apply plugin: 'maven-publish' | |
p.apply plugin: 'com.jfrog.artifactory' | |
p.publishing { | |
publications { | |
mavenJava(MavenPublication) { | |
from p.components.java | |
artifact p.sourcesJar |
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
declare namespace browser.bookmarks { | |
export interface BookmarkTreeNode { | |
id: string; | |
parentId: string; | |
title: string; | |
index: string; | |
url?: string; | |
children?: BookmarkTreeNode[]; | |
unmodifiable?: string; | |
} |
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
PWD ~/projects/checkouts/my-projects/code-snippets/datastruc-vis | |
Directory Structure: 'node_modules' excluded, 'dist' is the output/build folder | |
├── dist | |
│ ├── bundles | |
│ │ ├── bundle.js | |
│ │ └── bundle.js.map | |
│ └── index.html | |
├── package.json |
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
// Quick, simple enums -- typechecked! | |
type TraversalOrder = "inorder" | "preorder" | "postorder"; | |
type NodePosition = "root" | "left" | "right"; | |
// Of course TypeScript has proper enums, but this might be a good way of | |
// doing interop without writing wrapper types. | |
// Type Aliases for complex function types | |
type VisitorFn<T, N extends Node<T>> = (node: N, depth: number, position: NodePosition) => void; | |
type TraversalFn<T> = (node: BstNode<T>, depth: number, position: NodePosition) => void; |
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
# For 'overlay sock' capability. | |
moduleload back_sock | |
# Running in overlay mode rather than as a database. | |
overlay sock | |
extensions connid | |
# Path to Unix Domain Socket created by a listening client, to which slapd | |
# will connect. |
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
# Run Control file for https://metacpan.org/pod/Devel::REPL | |
# Place in ~/.re.pl/repl.rc | |
# Picked up by the installed re.pl script. | |
# Install missing packages like: | |
# cpanm Devel::REPL::Plugin::<PluginName> | |
# e.g. cpanm Devel::REPL::Plugin::DataPrinter | |
print("Loading RC file[" . $ENV{HOME} . "/.re.pl/repl.rc]\n"); |
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
#!/bin/bash | |
docker system prune --volumes |
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
--- | |
# Fonts | |
# General Fonts -- URW Palladio L, URW Chancery L, Reminga Pro | |
# To find proper names, use fc-list (Font Config) | |
# E.g. Reminga has the following: | |
# $ fc-list | grep -i reminga | |
# (look at fc-cache if fc-list does not return anything) | |
# /home/xxx/.fonts/FF Reminga Pro/FontFont - RemingaPro.otf: Reminga Pro:style=Regular | |
# /home/xxx/.fonts/FF Reminga Pro/FontFont - RemingaPro-MediumIta.otf: Reminga Pro,RemingaPro\-MediumIta:style=Medium Italic,Regular |
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
#!/usr/bin/env python3 | |
## Simple, regex-based SQL formatter. The core idea is to not muck around | |
## with any indenting, but to simply convert keywords to uppercase. What an | |
## utterly annoying convention today. | |
## Reads stdin, writes to stdout, allowing for use in IDE processes or similar. | |
import sys | |
import re |
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
# cpanm App::watchdo | |
# https://metacpan.org/pod/distribution/App-watchdo/bin/watch-do | |
# watch-do -w <file|dir> -- <cmd> | |
# E.g. https://metacpan.org/pod/Pod::Perldoc::ToMarkdown | |
watch-do -w Foo.pm -- perldoc -o Markdown Foo.pm |
OlderNewer