Skip to content

Instantly share code, notes, and snippets.

View gilbertw1's full-sized avatar

Bryan Gilbert gilbertw1

View GitHub Profile
@gilbertw1
gilbertw1 / xmonad.hs
Created February 9, 2017 23:29
resizeable tall
import XMonad
import XMonad.Layout.Spacing
import XMonad.Layout.Gaps
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run
import XMonad.Util.EZConfig
import XMonad.Actions.CycleWS
import XMonad.Layout.Maximize
import XMonad.Layout.MultiToggle
@gilbertw1
gilbertw1 / .Xresources
Last active December 2, 2022 10:51
XMonad Configuration
Xft.dpi: 120
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.hintstyle: hintslight
rofi.color-enabled: true
rofi.color-window: #282828, #282828, #268bd2
rofi.color-normal: #282828, #ffffff, #282828, #268bd2, #ffffff
rofi.color-active: #282828, #268bd2, #282828, #268bd2, #205171
@gilbertw1
gilbertw1 / samplemacro.clj
Created July 29, 2013 21:27
->>> Sample Macro
(defn replace-if-underscore [element val]
(if (= element '_)
val
element))
(defn replace-underscores [form val]
(map #(replace-if-underscore % val) form))
(defn convert-forms [val [next-form & other-forms]]
(if (nil? next-form)
use std::time::{SystemTime, UNIX_EPOCH};
mod cli;
mod conf;
mod sync;
extern crate clap;
extern crate eventual;
fn main() {
use util;
use std;
use config;
use config::Config;
use std::io::Write;
use std::fs::File;
use std::path::PathBuf;
use std::collections::HashSet;
use clap::ArgMatches;
use clap::{Arg, App};
pub fn create_drop_cli_app() -> App<'static,'static> {
App::new("drop")
.version("0.3.3")
.author("Bryan G. <bryan@bryan.sh>")
.about("Screenshot & file upload tool with S3 support - http://github.com/gilbertw1/drop")
.arg(Arg::with_name("audio")
.short("-a")
.long("audio")
use crate::cli;
#[derive(Debug)]
pub struct WordleConfig {
pub dictionary: Option<String>,
pub emoji: bool,
pub guess: Option<String>,
pub hard_mode: bool,
pub operation: WordleOp,
pub solution: Option<String>,
use clap::{App, Arg};
pub fn create_wordlebot_cli_app() -> App<'static> {
App::new("wordlebot")
.version("0.1")
.author("Bryan G. <bryan@bryan.sh>")
.about(
"Simple wordle solving bot. This bot can be used in three different
modes of operation.