Skip to content

Instantly share code, notes, and snippets.

Casey Brooks cjbrooks12

Block or report user

Report or block cjbrooks12

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
cjbrooks12 / MyModule.kt
Last active Mar 22, 2019
Dynamically Load Orchid Wiki Pages
View MyModule.kt
package com.example
import com.eden.orchid.api.compilers.TemplateFunction
import com.eden.orchid.api.registration.OrchidModule
import com.example.ResourcesFunction
// in Orchid sourceroot: src/orchid/kotlin
class MyModule : OrchidModule() {
override fun configure() {
View orchidKotlindoc.css
* Bootstrap v3.3.7 (
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (
* Generated using the Bootstrap Customizer (
* Config saved to config.json and
View Quiver Darkula Theme
"_comments": {
"_backgroundColor": "#3C3F41",
"_backgroundColorLight": "#515658",
"_backgroundColorDark": "#3C3F41",
"_selectedBackgroundColor": "#0D293E",
"_emphasizedBackgroundColor": "#2F65CA",
"_dividerColor": "#282828",
"_secondaryDividerColor": "#4d535d",
"_controlColor": "#8C8C8C",
cjbrooks12 /
Last active Feb 1, 2018 — forked from jaden/
Generates 5000 posts to test performance of Orchid. Originally from the Hugo file, but changed generated filenames and a few properties to work better with Orchid
# Create specified number of articles for Hugo benchmarks
from datetime import datetime
import random
import string
from sys import argv
import os
def generateWord(min_length = 1, max_length = 10):
length = random.randint(min_length, max_length)
cjbrooks12 /
Last active Aug 29, 2015
based on answer t o SO question: modified to correctly set the initial value in the local timezone given millis UTC
//based on answer t o SO question:
//modified to correctly set the initial value in the local timezone given millis UTC
public class TimePreference extends DialogPreference {
private Calendar calendar;
private TimePicker picker = null;
private Context context;
public TimePreference(Context context) {
this(context, null);
cjbrooks12 /
Last active Aug 29, 2015
Based on the code at and modified to be populated by an adapter
public class FlowLayout extends ViewGroup {
public static final int DEFAULT_HORIZONTAL_SPACING = 5;
public static final int DEFAULT_VERTICAL_SPACING = 5;
private final int horizontalSpacing;
private final int verticalSpacing;
private final AdapterObserver observer = new AdapterObserver();
private List<RowMeasurement> currentRows = Collections.emptyList();
You can’t perform that action at this time.