Skip to content

Instantly share code, notes, and snippets.

Josh Holmer shssoichiro

Block or report user

Report or block shssoichiro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View main.rs
extern crate rand;
use std::cmp;
use std::env;
use std::fmt;
use rand::{thread_rng, Rng};
#[derive(PartialEq,Clone)]
enum Colors {
Black,
@shssoichiro
shssoichiro / main.rs
Last active Dec 4, 2015
Daily Challenge 243 Hard (Part 1)
View main.rs
extern crate petgraph;
use std::env;
use std::fs::File;
use std::io::prelude::*;
use std::io::BufReader;
use std::collections::HashMap;
use petgraph::graph;
fn main() {
View lib.rs
#![feature(test)]
extern crate test;
#[cfg(test)]
mod tests {
use test::Bencher;
#[bench]
fn bench_split_short_str(b: &mut Bencher) {
View lib.rs
#![feature(test)]
extern crate test;
#[cfg(test)]
mod tests {
use test::Bencher;
#[bench]
fn bench_split_short_str(b: &mut Bencher) {
View VERVER.md

Version Versioning v2016.03

Summary

The version format of your project changes arbitrarily.

Introduction

As you manage a software product, you will have many choices on how to manage the versions of it. Most versioning systems have the following problems:

View lib.rs
impl<C: Connection> Connection for LoggingConnection<C>
where
C: Connection<TransactionManager = AnsiTransactionManager> + Send + 'static,
C::Backend: UsesAnsiSavepointSyntax,
{
type Backend = C::Backend;
fn query_by_index<T, U>(&self, source: T) -> QueryResult<Vec<U>>
where
T: AsQuery,
View lib.rs
use bitstream_io::{BigEndian, BitWriter};
use std::io;
use std::mem::size_of;
use uuid::Uuid;
use std::io::Write;
/// Boxes start with a header which gives both size and type.
/// The header permits compact or extended size (32 or 64 bits)
/// and compact or extended types (32 bits or full UUIDs).
/// The standard boxes all use compact types (32-bit)
@shssoichiro
shssoichiro / .zshrc
Created May 8, 2019
Powerlevel9k Docker Env Component
View .zshrc
# Make sure to place these near the top of your .zshrc. I have them after my `export PATH` and `export ZSH`.
# They must come BEFORE your POWERLEVEL9K variables.
# This will start docker-machine when your terminal opens, if it is not already started, and then default to sourcing the docker-machine environment
[[ `docker-machine status` = "Stopped" ]] && echo "\nThe Docker virtual machine is not running.\nAttemping to start the VM. This should take about a minute.\n" && docker-machine start
eval $(docker-machine env)
# This will start minikube if it is not already started
[[ `minikube status` = *"Stopped"* ]] && echo "\nThe Minikube virtual machine is not running.\nAttemping to start the VM. This should take about a minute.\n" && minikube start
You can’t perform that action at this time.