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
" 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 |
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
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, |
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
// 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; |
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:
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
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()); | |
} | |
} |
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
<?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 |