tags:
- date/2023/04/22 date: 2023-04-22 created: 2023-04-22T03:41:05 author: [https://github.com/jeetsukumaran] license: "CC BY 4.0" title: | the truth they will never tell you
// Sample custom iterator. | |
// By perfectly.insane (http://www.dreamincode.net/forums/index.php?showuser=76558) | |
// From: http://www.dreamincode.net/forums/index.php?showtopic=58468 | |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <iterator> | |
#include <cassert> |
############################################################################# | |
# Original code ported from the Java reference code by Bram Cohen, April 2001, | |
# with the following statement: | |
# | |
# this code is public domain, unless someone makes | |
# an intellectual property claim against the reference | |
# code, in which case it can be made public domain by | |
# deleting all the comments and renaming all the variables | |
# | |
class Rijndael(object): |
#! /bin/bash | |
GCC_VERSION="5.2.0" | |
WORKDIR="$HOME/src/" | |
INSTALLDIR="/platform" | |
## NOTE: XCode must be installed (through App Store) and the following run to install command-line tools. | |
## THIS IS IMPORTANT! Among other things, it creates '/usr/include' and installs the system header files. | |
# xcode-select --install |
var utility = require(app.vault.adapter.basePath + "/__annex__/resources/obsidian/scripts/javascript/utility.js") | |
function formatContributorList(dv, plan) { | |
let contributors = dv.pages() | |
.where((p) => p.file.etags.includes(plan.workplanTag)) | |
.where((p) => p.file.path !== plan.file.path) | |
.sort((p) => p["content-brief"] + p.title + p.file.name) | |
.map((p) => { | |
let contributor = []; | |
let display = p["production-brief"] ?? p["content-brief"] ?? p.title ?? p.file.name; |
function runQuery(options) { | |
options = options || {} | |
// const excludePatterns = options.excludePatterns ?? [] | |
// const includePatterns = options.includePatterns ?? [] | |
const excludePaths = options.excludePaths ?? [] | |
const includePaths = options.includePaths ?? [] | |
const limit = options.limit ?? 50 | |
const allPages = dv.pages() | |
let sourcePages = null | |
if (includePaths.length) { |
tags:
#!/usr/bin/env bash | |
# | |
# bu: Backup data to repository. | |
# | |
# Type 'bu --help' for help on actions and options. | |
# | |
# Configuration of 'bu' is done via environmental variables which can be set by user | |
# in a particular session or saved to a file and read by 'bu'. | |
# | |
# Examples of backup configuration files: |
#! /usr/bin/env python | |
############################################################################### | |
## | |
## Copyright 2012 Jeet Sukumaran. | |
## | |
## This program is free software; you can redistribute it and/or modify | |
## it under the terms of the GNU General Public License as published by | |
## the Free Software Fountion; either version 3 of the License, or | |
## (at your option) any ler version. |
# "heavy" approach (can be useful if you want to derive | |
# and add simple behavior, e.g. validation etc.) | |
class Attributes: | |
def __init__(self, **kwargs): | |
# Alternatively: | |
# self.__dict__.update(kwargs) | |
for k, v in kwargs.items(): | |
setattr(self, k, v) | |
# or otherwise: |