View playbook.yml
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
--- | |
# Welcome to the playbook for Valora CI using BuildKite and Mac Stadium. | |
# This defines the tools and dependencies needed to test Valora and Ansible installs them. | |
# It is a work in progress! | |
# Install Homebrew and then casks and packages. | |
- name: Install Homebrew, casks and packages. | |
hosts: localhost | |
become: false |
View playbook.yml
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
--- | |
- name: Install Brew packages | |
hosts: localhost | |
become: false | |
vars: | |
brew_cask_packages: | |
- homebrew/cask-versions/adoptopenjdk8 | |
- android-sdk | |
- android-platform-tools | |
- genymotion |
View command.txt
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
find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' |
View slash-command.rs
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
#![feature(proc_macro_hygiene, decl_macro)] | |
#[macro_use] extern crate rocket; | |
use rocket::request::Form; | |
#[derive(FromForm)] | |
pub struct Parameters { | |
// Payload fields from "Preparing your app to receive Commands" section in documentation: | |
// https://api.slack.com/interactivity/slash-commands#app_command_handling. | |
pub token: String, |
View file.swift
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
try! FileManager.default.removeItem(at:Realm.Configuration.defaultConfiguration.fileURL!) |
View guessing_game.rs
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
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
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
// | |
// Checkin.swift | |
// Created by Luna Graysen on 2019-05-01. | |
// Copyright © 2019 Luna Graysen. All rights reserved. | |
// | |
import Foundation | |
struct Checkin { | |
View checkbox.js
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
insertCheckboxFormField(pageRect, pageNo, type) { | |
let instance = this.PSPDF; | |
async function createNewFormField(instance) { | |
try { | |
const formFieldName = type + "_formfield"; | |
const newFormFieldName = `${formFieldName}_${Math.random() | |
.toString(36) | |
.replace(/[^a-z]+/g, "")}`; |