To learn Zig I implemented some crypto functions in Zig. It uses unique Zig comptime features to reduce code duplication
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
// initialize the tape with 30,000 zeroes | |
unsigned char tape[30000] = {0}; | |
// set the pointer to point at the left-most cell of the tape | |
unsigned char* ptr = tape; |
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
{ config, pkgs, lib, ... }: | |
let | |
helios-src = builtins.fetchTarball "https://github.com/pingiun/helios-server/archive/147da23bd9097c16c94a24cf4cc98bd709a35393.tar.gz"; | |
helios = import helios-src; | |
user = "helios"; | |
db-name = user; |
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
// ==UserScript== | |
// @name Long Tweet Remover | |
// @version 0.1 | |
// @description remove tweets with more than 280 characters | |
// @author Jelle Besseling | |
// @match https://twitter.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com | |
// @grant none | |
// ==/UserScript== |
Neem dit voorbeeld van een paytium shortcode:
[paytium name="Formulier naam" description="Donatie" button_label="Doneer aan RSP"]
[paytium_field type="dropdown" label="Kies waarvoor je wil doneren" options="Donatie anti-NAVO campagne/Donatie Palestina-strijdfonds/Donatie RSP landelijk/Donatie afdeling Amsterdam/Donatie afdeling Arnhem/Donatie afdeling Den Haag/Donatie afdeling Eindhoven/Donatie afdeling Nijmegen/Donatie afdeling Noord/Donatie afdeling Overijssel/Donatie afdeling Rotterdam/Donatie afdeling Utrecht/Donatie afdeling Wageningen/Donatie afdeling Zuid-Limburg" options_are_amounts="false" required="true" first_option="Donatie anti-NAVO campagne" /]
[paytium_field type="open" label="Bedrag donatie:" default="15" quantity_min="3" /]
[/paytium]
OlderNewer