Skip to content

Instantly share code, notes, and snippets.

View carols10cents's full-sized avatar

Carol (Nichols || Goulding) carols10cents

View GitHub Profile
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.6beta2
-- Dumped by pg_dump version 9.6beta2
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;

Keybase proof

I hereby claim:

  • I am carols10cents on github.
  • I am carols10cents (https://keybase.io/carols10cents) on keybase.
  • I have a public key ASDoNE668NWiidObvrdX_tbt9DCBpnpBb7M-nQPWxjSDhAo

To claim this, I am signing this object:

Hi! You are receiving this email because you expressed interest in attending a Rust conference in [cities] and entered your email to be contacted by a member of the community team. I am sending this one-time email on behalf of the community team to let you know that there [is/are] indeed [a conference/conferences] happening in [cities]!

Tickets are on sale now[ for all of these events]!

Sept 9-10: RustConf

RustConf is a two-day event held in Portland, OR, USA on September 9-10. The first day offers tutorials on Rust given directly by members of the Rust core team, ranging from absolute basics to advanced ownership techniques. The second day is the main event, with talks at every level of expertise, covering both core Rust concepts and design patterns, production use of Rust, reflections on the RFC process, and systems programming in general. We offer scholarship for those who would otherwise find it difficult to attend. Joi

coins
- sorting
- quarters have states, the others don't have states.
@carols10cents
carols10cents / lib.rs
Created June 16, 2016 15:17
How to use assert_ne
#[macro_use]
extern crate assert_ne;
#[cfg(test)]
mod tests {
#[test]
fn you_can_assert_ne() {
let before = 5;
let after = before + 12;
assert_ne!(before, after);
@carols10cents
carols10cents / playground.rs
Last active May 29, 2016 21:15 — forked from anonymous/playground.rs
would clippy catch this copypasta?
fn main() {
let list = vec![0, 1, 2, 3, 4, 5];
let index = 3;
if true {
println!("the magic number is {}", list[index]);
} else {
let other_index = 5;
println!("the index is {}", other_index); // so you wouldn't get "unused variable other_index"
println!("the magic number is {}", list[index]);
@carols10cents
carols10cents / playground.rs
Created May 23, 2016 20:21 — forked from anonymous/playground.rs
Shared via Rust Playground
fn main() {
let mut a_vec = vec![1, 2, 3];
let mut a_slice = &mut a_vec[..];
let ref mut an_item = a_slice[0];
let mut foo = &mut an_item;
}
@carols10cents
carols10cents / instructions.md
Created May 14, 2016 15:37
Cargo guide feedback request!

Cargo Guide Feedback from People New To Rust

Thank you for your time trying out the cargo guide and providing feedback!

Here are your instructions:

  1. If you haven't yet, download and install Rust. It comes with cargo, so when you're done, you should be able to run cargo in your command line and see "Rust's package manager" and some usage text.
  2. Go to https://carols10cents.github.io/cargo/guide.html - it's a draft of some changes I'm proposing to the cargo guide that lives on crates.io.
  3. Read through the whole thing and follow along.
  4. Either leave feedback as a comment here, create a gist and link me to it here or on twitter (@Carols10cents), email feedback to me ([email protected]), or comment on the pull request where I'm proposing changes!
@carols10cents
carols10cents / new-committers-since-1.0.0.sh
Created May 3, 2016 22:15
Scripts to figure out interesting stats for a year since 1.0
#!/bin/bash
set -eu
git log --format="%aN" c01efc669f09508b55eced32d3c88702578a7c3e..1.0.0 | sort | uniq > beginning-to-1.0.txt
git log --format="%aN" 1.0.0.. | sort | uniq > 1.0-to-HEAD.txt
grep -v -f beginning-to-1.0.txt 1.0-to-HEAD.txt
@carols10cents
carols10cents / crate-breakage-saga.md
Last active December 19, 2018 12:59
Descriptions of the breakages I'm experiencing today
  • I'm using rustc 1.9.0-dev (28c9fdafc 2016-04-11), cargo 0.10.0. Yes, I run nightly but don't update it every night. dealwithit.gif

  • I wanted to get back to working on eeyore. Master compiles fine.

  • I want to use this branch of hubcaps I've been working on, and that I rebased on hubcaps master today.

  • I changed eeyore's Cargo.toml to use my collabs branch of hubcaps (hubcaps = { git = "https://github.com/carols10cents/hubcaps", branch = "collabs" }) and ran cargo update. Perhaps I should have run cargo update -p hubcaps here...

  • Now compiling eeyore, I get:

/Users/carolnichols/.cargo/registry/src/github.com-88ac128001ac3a9a/bodyparser-0.1.0/src/lib.rs:78:18: 78:21 error: the trait bound `persistent::Read<MaxBodyLength>: plugin::Plugin<iron::Request<'_, '_>>` is not satisfied [E0277]
/Users/carolnichols/.cargo/registry/src/github.com-88ac128001ac3a9a/bodyparser-0.1.0/src/lib.rs:78