I hereby claim:
- I am Geobert on github.
- I am geobomatic (https://keybase.io/geobomatic) on keybase.
- I have a public key whose fingerprint is A4AC 19A9 6067 4341 BCC6 3265 5EB9 861D C59B FC47
To claim this, I am signing this object:
extern crate assert_cli; | |
#[macro_use] | |
extern crate lazy_static; | |
extern crate tempdir; | |
use std::env; | |
use std::str; | |
use std::path::{Path, PathBuf}; | |
use tempdir::TempDir; |
I:\Dev\b40ea57017008ce3aee52ce1fcdfe776 (master) | |
λ cargo run --verbose | |
Compiling libc v0.2.34 | |
Compiling bitflags v0.7.0 | |
Compiling pkg-config v0.3.9 | |
Compiling lazy_static v0.2.11 | |
Running `rustc --crate-name libc C:\Users\Geob\.cargo\registry\sr |
I:\Dev\cobalt.rs (#241) | |
λ cargo build --features="syntax-highlight" --verbose | |
Fresh typeable v0.1.2 | |
Fresh unicode-segmentation v1.2.0 | |
Fresh linked-hash-map v0.5.0 | |
Fresh cc v1.0.3 | |
Fresh either v1.4.0 | |
Fresh getopts v0.2.15 | |
Fresh glob v0.2.11 | |
Fresh winapi v0.2.8 |
#[test] | |
fn convert_front_ok() { | |
let res = JkDocument::convert_front(Some(CORRECT_JK_FRONT.to_owned())); | |
match res { | |
Err(e) => println!("error convert: {:#?}", e), | |
Ok(mut converted) => { | |
// need to remove the custom part, the fields order is not stable | |
let custom_offset = converted.find("custom").unwrap_or(converted.len()); | |
let all_but_custom: String = converted.drain(..custom_offset).collect(); | |
assert_eq!(all_but_custom, CORRECT_CB_FRONT); |
#![cfg_attr(feature = "cargo-clippy", allow(redundant_closure))] | |
use std::io; | |
use liquid; | |
use ignore; | |
use serde_yaml; | |
use std::convert::From; | |
error_chain! { |
use liquid; | |
use super::super::frontmatter; | |
use super::super::datetime; | |
use std::fs::File; | |
use std::io::Write; | |
use std::path::Path; | |
use super::super::document::{read_file, split_document}; | |
use frontmatter::FrontmatterBuilder; | |
use error::{ErrorKind, Result}; |
use datetime; | |
use serde_yaml; | |
use liquid; | |
use std::fs::File; | |
use std::io::Write; | |
use std::path::Path; | |
use super::super::document::{read_file, split_document}; | |
use frontmatter::FrontmatterBuilder; | |
use error::{ErrorKind, Result}; |
I hereby claim:
To claim this, I am signing this object:
; puth this file somewhere and create a shortuct in C:\Users\<User>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\ | |
; so it starts with Windows | |
#singleinstance | |
#NoTrayIcon | |
#NoEnv | |
SendMode Input | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
Loop { |
#singleinstance | |
#NoTrayIcon | |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
SendMode Input | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
SetTitleMatchMode, 3 | |
WinWait, Discord | |
WinRestore |