Skip to content

Instantly share code, notes, and snippets.

Luna Graysen non-binary

Block or report user

Report or block non-binary

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
non-binary /
Created Jul 19, 2019
Guessing Game example from The Rust Programming Language book.
extern crate rand;
use std::io;
use std::cmp::Ordering;
use rand::Rng;
fn main() {
println!("Guess the number!");
let secret_number = rand::thread_rng().gen_range(1, 101);
View Checkin.swift
// Checkin.swift
// Created by Luna Graysen on 2019-05-01.
// Copyright © 2019 Luna Graysen. All rights reserved.
import Foundation
struct Checkin {
View checkbox.js
insertCheckboxFormField(pageRect, pageNo, type) {
let instance = this.PSPDF;
async function createNewFormField(instance) {
try {
const formFieldName = type + "_formfield";
const newFormFieldName = `${formFieldName}_${Math.random()
.replace(/[^a-z]+/g, "")}`;
View custom-button-toolbar-example.js
const toolbarItems = PSPDFKit.defaultToolbarItems;
let pagerIndex = toolbarItems.findIndex(item => item.type == "pager");
toolbarItems.splice(pagerIndex - 1, 0, {
type: "custom",
title: "click me",
onPress: function() {
You can’t perform that action at this time.