Skip to content

Instantly share code, notes, and snippets.

View flukejones's full-sized avatar

Luke Jones flukejones

View GitHub Profile

Keybase proof

I hereby claim:

  • I am Luke-Nukem on github.
  • I am luke_jones (https://keybase.io/luke_jones) on keybase.
  • I have a public key whose fingerprint is 869A B608 13C4 24E5 06EB 0D3A 42E6 88B9 27B9 B1BD

To claim this, I am signing this object:

@flukejones
flukejones / lightdark
Created April 27, 2017 02:04
A shell script to change various themes in Gnome from light/dark
#!/usr/bin/env bash
changetheme() {
local theme_file="$HOME/.config/themelight"
local light_gtk="Adwaita"
local light_gedit="builder"
local light_vim="zellner"
local dark_gtk="Adwaita-dark"
@flukejones
flukejones / playground.rs
Created December 4, 2016 20:57 — forked from anonymous/playground.rs
Shared via Rust Playground
#![feature(core_intrinsics)]
pub trait Deserialize: Sized {
fn deserialize(String) -> Self;
}
struct Position(i32, i32);
struct Velocity(i32, i32);
impl Deserialize for Position {
@flukejones
flukejones / callback.rs
Created December 3, 2016 06:07
A basic kind of callback macro
///
/// A generic version of `callback macro`
///
/// # Example
/// ```rust
/// #[macro_use(callback)]
/// # extern crate framework;
/// trait Command {
/// fn run(&self) {}
/// }
@flukejones
flukejones / callbacks.rs
Created December 3, 2016 06:02 — forked from aisamanra/callbacks.rs
Creating a HashMap of closures in Rust
#![feature(unboxed_closures)]
#![feature(core)]
#![feature(io)]
use std::old_io::stdio::{stdin};
use std::collections::HashMap;
// This is our toy state example.
#[derive(Debug)]
struct State {