Skip to content

Instantly share code, notes, and snippets.

View ashleygwilliams's full-sized avatar
>o_o<

ashley williams ashleygwilliams

>o_o<
View GitHub Profile
language: rust
sudo: false
matrix:
include:
- rust: stable
script:
- cargo test --locked
- rustup component add rustfmt-preview --toolchain nightly

Make sure these boxes are checked! 📦✅

  • You have the latest version of rustfmt installed and have your cloned directory set to nightly
$ rustup override set nightly
$ rustup component add rustfmt-preview --toolchain nightly
  • You ran rustfmt on the code base before submitting
  • You reference which issue is being closed in the PR text

Configuring rustfmt

Before submitting code in a PR, make sure that you have formatted the codebase using [rustfmt][rustfmt]. rustfmt is a tool for formatting Rust code, which helps keep style consistent across the project. If you have not used rustfmt before, it is not too difficult.

If you have not already configured rustfmt for the nightly toolchain, it can be done using the following steps:

language: rust
sudo: false
matrix:
include:
# tests pass
- rust: nightly
script:
- cargo test --locked
language: rust
sudo: false
matrix:
include:
- rust: stable
script:
- cargo test --all --locked
- rustup component add rustfmt-preview

smyte <> npm eng meeting

  • status of spam follower
  • restatement of typosquatting needs by ben
  • q&a on typosquatting project (hopefully unblock smyte!)
#[get("/<pkgname>", format = "application/vnd.knork+json")]
fn readme_latest_knork(pkgname: String) -> String {
readme_latest(pkgname)
}
#[get("/<pkgname>")]
fn readme_latest(pkgname: String) -> String {
numbat::emitter().emit_name("readme-latest");
npm_readme_client::fetch_latest(pkgname).unwrap()
}

Keybase proof

I hereby claim:

  • I am ashleygwilliams on github.
  • I am agdubs (https://keybase.io/agdubs) on keybase.
  • I have a public key whose fingerprint is 7E8E 9FD4 423B B49A CECE B606 02E9 8508 74D9 8877

To claim this, I am signing this object:

table {
display: block;
width: 100%;
overflow: auto;
margin-top: 0;
margin-bottom: 16px;
}
table tr {
background-color: #fff;
@ashleygwilliams
ashleygwilliams / benchmark.sh
Created November 14, 2016 18:59 — forked from peterjmit/benchmark.sh
Bash Benchmark Script (using time)
#!/bin/bash
# REQUIRES SUDO
# Benchmark runner
repeats=20
output_file='benchmark_results.csv'
command_to_run='echo 1'
run_tests() {
# --------------------------------------------------------------------------