Skip to content

Instantly share code, notes, and snippets.

View ELD's full-sized avatar

Eric Dattore ELD

View GitHub Profile
@ELD
ELD / monokai_pro_machine.vim
Created March 2, 2021 15:42
A vim color scheme based on Monokai Pro Filter Machine
" Vim color file
" Converted from Textmate theme using Coloration v0.4.0 (http://github.com/sickill/coloration)
"
" Based on the machine filter from https://monokai.pro
" Edited a little by aaether
" For best results set termguicolors in your vimrc
set background=dark
highlight clear
use rocket::{error::Error, get, response::content::Html, routes};
use turbopump::nightly::{
fairing::{config::SameSite, config::SessionConfig, SessionFairing},
in_memory::InMemory,
Session,
};
#[derive(Clone, Default)]
struct SessionData {
hit_counter: u32,
@ELD
ELD / playground.rs
Last active March 1, 2018 19:15 — forked from anonymous/playground.rs
Rust code shared from the playground
// NOTE: THIS DOES NOT COMPILE
//
// Just a proof of concept of the code I have written and how I'd like to be
// able to use it.
pub extern crate r2d2;
#[cfg(feature = "diesel_sqlite")]
pub extern crate diesel;
@ELD
ELD / laravel-dusk-on-laradock.md
Created July 9, 2017 22:17
A short guide on how to get Laravel Dusk working on Laradock. This will hopefully make it into the Laradock official docs sometime down the line.

Getting Laravel Dusk working on Laradock

System Setup

Laradock Setup

Keybase proof

I hereby claim:

  • I am eld on github.
  • I am edattore (https://keybase.io/edattore) on keybase.
  • I have a public key whose fingerprint is 587B AB64 E1DA 9102 2A70 4EF6 612B BD5F DD72 163B

To claim this, I am signing this object:

std::vector<std::string> getVmFiles(const boost::filesystem::path& dirToSearch)
{
std::vector<std::string> files;
for (const auto& file : boost::make_iterator_range(boost::filesystem::recursive_directory_iterator{dirToSearch}, {})) {
std::regex vmFile{R"((?:.*).vm)"};
if (boost::filesystem::is_regular_file(file) && std::regex_search(file.path().string().begin(), file.path().string().end(), vmFile)) {
files.emplace_back(file.path().string());
}
}
<?php
/**
* This function recursively searches the JSON API and picks out the
* specified items based on the parameters passed into the function
*
* @param array $data
* @param string $needle
* @param string $catNeedle
* @return array
@ELD
ELD / ksp_mods.md
Last active August 29, 2015 14:00
ELD's Space Program Mod List

KSP Mod List

No links, yet, but they will be added in the future

  • Adjustable Landing Gear
  • Animate Emissive Module
  • Animated Decouplers
  • Atmospheric Sound Enhancement
  • BahamutoD Animation Modules
  • Chatterer
  • Collision FX
  • Community Resource Pack