- 100g buckwheat flour
- 50g white sugar
- 50g salted butter
- Pinch of salt, to taste
- Big pinch of cinnamon, to taste (note: Cassia type cinnamon, or what you’d find in a Swedish grocery store)
- Big pinch of cardamom powder, to taste
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
// SPDX-License-Identifier: MIT | |
pragma solidity >=0.6.12 <0.9.0; | |
contract PointCheck { | |
struct G1Point { | |
uint256 x; | |
uint256 y; | |
} | |
event BroadcastSecKey(address indexed sender, uint256 secKey); |
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
import { | |
IrohNode, | |
PublicKey, | |
NodeAddr, | |
Query, | |
SortBy, | |
SortDirection, | |
pathToKey, | |
AuthorId, | |
keyToPath, |
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
import canvasSketch from "canvas-sketch"; | |
import { degToRad, linspace, radToDeg } from "canvas-sketch-util/math"; | |
import { Lch, contrastRatio } from "../util/color"; | |
import polyBool from "poly-bool"; | |
import * as random from "canvas-sketch-util/random"; | |
import { angleLerp } from "../util/angle"; | |
export const settings = { | |
suffix: random.getSeed(), | |
animate: true, |
Some notes on archiving and accessing the media and metadata around digital editions of hachure. These tokens were released through verse but can be retrieved through decentralized storage systems.
See Token Data for a listing of media & data associated with each edition.
In the browser, with the artwork in focus, you can hit the keystroke Cmd + S or Ctrl + S. This will auto-download two files: a 2048x2048px PNG, and an SVG of the paths that could be used for pen plotting. It's recommended to use Chrome for downloading; some browsers might only let one download through.
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
/** | |
* Conserve aspect ratio of the original region. Useful when shrinking/enlarging | |
* images to fit into a certain area. | |
* | |
* @param {Number} srcWidth width of source image | |
* @param {Number} srcHeight height of source image | |
* @param {Number} maxWidth maximum available width | |
* @param {Number} maxHeight maximum available height | |
* @return {Object} { width, height } | |
*/ |
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
import os | |
import torch | |
import time | |
from diffusers import DiffusionPipeline, AutoencoderTiny | |
from collections import namedtuple | |
PredictionResult = namedtuple('PredictionResult', [ | |
'latents', | |
'step', | |
'steps', |
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
pragma circom 2.1.5; | |
include "circomlib/circuits/comparators.circom"; | |
/* | |
Verifies a permutation is valid and includes all indices once and only once. | |
Examples: | |
[ 0 1 2 3 ] == OK | |
[ 1 2 0 3 ] == OK | |
[ 0 2 0 3 ] == NOT OK |
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 fractalNoise(x, y, frequency, octaves, persistence = 0.5, lacunarity = 2) { | |
let total = 0; | |
let amplitude = 1; | |
let maxValue = 0; // Used for normalizing result to 0.0 - 1.0 | |
for (let i = 0; i < octaves; i++) { | |
total += noise2D(x * frequency, y * frequency) * amplitude; | |
maxValue += amplitude; | |
amplitude *= persistence; | |
frequency *= lacunarity; |
NewerOlder