This file contains hidden or 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
| [ | |
| { | |
| "term": "tophat", | |
| "definition": "Manual integration test. Test the system like the final user would, but locally." | |
| }, | |
| { | |
| "term": "pbcopy", | |
| "pattern": "\\bpbcop(?:y|ied|ying)\\b", | |
| "definition": "Used as a verb: send the relevant part of the work to pbcopy (the macOS CLI tool that copies stdin to the clipboard). The 'relevant part' is the final product, stripped of meta-commentary. Examples: during a proofread, pipe only the rewritten message (no notes about the changes) to pbcopy; when iterating on a prompt, pipe only the latest version of the prompt itself (no commentary about it). If unsure what counts as the final product, ask before copying." | |
| }, |
This file contains hidden or 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 | |
| """logseq-cli — talk to the local Logseq HTTP API.""" | |
| from __future__ import annotations | |
| import argparse | |
| import json | |
| import os | |
| import re | |
| import sys |
This file contains hidden or 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 | |
| # Check if the container image already exists | |
| if docker image inspect xcs236-env >/dev/null 2>&1; then | |
| echo "Container image already exists. Skipping build." | |
| else | |
| # Build the container | |
| echo "Building container..." | |
| docker build -t xcs236-env . | |
| fi |
This file contains hidden or 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 | |
| # Company file for XCS236 Docker image | |
| # https://gist.github.com/ruliana/50e8e751ae0dc6af2a6b08d08bf2a027 | |
| # Check if the container image already exists | |
| if podman image exists xcs236-env; then | |
| echo "Container image already exists. Skipping build." | |
| else | |
| # Build the container |
This file contains hidden or 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
| # Use Miniconda as base image | |
| FROM continuumio/miniconda3 | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| git \ | |
| zsh \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| -- All the scripts that should be loaded. | |
| -- Put then in load order | |
| local URLs = { | |
| "https://gist.githubusercontent.com/ruliana/b48dcbaa1ddd92882e9a3cca36d6777f/raw/819bb7ebbd530a1d94601549fd6ae819ecea1cf4/FIN-item-flow-measurement.lua" | |
| } | |
| local card = computer.getPCIDevices(findClass("FINInternetCard"))[1] | |
| if not card then | |
| error("Internet card not found") | |
| end |
This file contains hidden or 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
| --------------------- | |
| ----- UTILITIES ----- | |
| --------------------- | |
| -- Utilities to get components from the network | |
| function getComponents(className) | |
| local compos = component.proxy(component.findComponent(findClass(className))) | |
| if #compos == 0 then | |
| error(string.format("No component of class \"%s\" found", className)) | |
| end |
This file contains hidden or 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
| (defun apply-templates (node templates) | |
| (let (output) | |
| ;; loop through each template | |
| (dolist (template templates output) | |
| ;; if the current node matches the template | |
| (when (matches node (car template)) | |
| ;; apply the template and stop processing further templates | |
| (setq output (apply-template node template)) | |
| (return output))) | |
| ;; if no template matched, process the node's children |
This file contains hidden or 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
| (define ((builder builder-param other-builder-param) trivial-param) | |
| ; ... do stuff | |
| something) |
NewerOlder