flowchart TD
袱 --> 衣 -->|-1| 示
袱 --> 人
袱 --> 犬
猱 --> 犬
猱 --> 矛 -->|-1| 予
猱 --> 木
猱 <--> 申
犬 --> 犬神
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
{ lib, stdenv, fetchurl, ... }: | |
let | |
version = "2.11.0"; | |
platform = stdenv.hostPlatform; | |
archive = | |
if platform.isLinux then | |
{ | |
url = "https://downloads.slack-edge.com/slack-cli/slack_cli_${version}_linux_64-bit.tar.gz"; | |
sha256 = "1sk6hb1m6j327fp8zlnw8bd8sni1wfwgc95wxqaxmr5gcg1fxqks"; | |
} |
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
let | |
parseLine = line: | |
let | |
parts = builtins.match "([^[:space:]=#]+)[[:space:]]*=[[:space:]]*(.*)" line; | |
in | |
if (!builtins.isNull parts) && (builtins.length parts) == 2 then | |
{ name = builtins.elemAt parts 0; value = builtins.elemAt parts 1; } | |
else | |
null; | |
in |
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
FROM python:3.9-slim AS base | |
RUN apt-get update && apt-get install -y curl git | |
RUN curl --proto '=https' --tlsv1.2 -fsSL https://static.pantsbuild.org/setup/get-pants.sh | bash | |
FROM base as env_a | |
RUN umask 022 \ | |
&& git clone https://github.com/pantsbuild/example-python example_repo \ | |
&& cd example_repo \ | |
&& git checkout 3de75f5 \ | |
&& PATH=$HOME/bin:$PATH pants package :: |
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
FROM nixos/nix:latest AS builder | |
RUN nix-env --install jq | |
COPY . /tmp/build | |
WORKDIR /tmp/build | |
RUN drvpath=$(nix --extra-experimental-features "nix-command flakes" derivation show | jq -r 'to_entries[0] | .key') \ | |
&& echo $drvpath is the path \ | |
&& closure=$(nix-store --query --requisites $drvpath | grep -v -F $drvpath) \ |
Ad hoc research for deciding how to implement file inclusion/exclusion logic in elm-doc.
Notes:
- Listed up lint-like tools I know off the top of my head, and then supplemented by cherry-picking tools from awesome-static-analysis
- "Included" here means explicitly included by being specified in the command line, not just in a config file.
- I either tried out each tool to see how it actually behaves, or looked at existing issues or actual code.
- Numbers
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/python | |
# | |
# Changelog | |
# 1.00 - Initial version, with code from various other scripts. | |
# 1.01 - Moved authorship announcement to usage section. | |
# Written in 2011 by Paul Durrant | |
# | |
# 1.02 - Added recognition of Apple Fairplay encryption. | |
# Modified in 2015 by Alasdair Allan | |
# |
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
/* This greasemonkey script automatically BCCs (or CCs) outgoing email from | |
* a gmail address to a specified email address | |
* | |
* Author: Jaidev K Sridhar mail<AT>jaidev<DOT>info | |
* | |
* Copyright (c) 2005-2008, Jaidev K Sridhar | |
* Released under the GPL license | |
* http://www.gnu.org/copyleft/gpl.html | |
*/ |
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
""" | |
Replace all NEEDEDs of all ELF files in /nix/store with absolute paths. | |
Requires python-magic. | |
""" | |
from __future__ import print_function | |
import os.path | |
import subprocess | |
from collections import namedtuple | |
import functools |
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
function findHourlyPriceColumns(table) { | |
for (const row of table.querySelectorAll("thead tr")) { | |
const headers = Array.from(row.querySelectorAll("th")); | |
const columns = headers.reduce(function(acc, current, index) { | |
if (/hourly/i.test(current.innerText) || /price per hour/i.test(current.innerText)) { | |
acc.push(index) | |
} | |
return acc; | |
}, []); | |
if (columns.length > 0) return {hourlyColumns: columns, totalColumns: headers.length}; |
NewerOlder