Skip to content

Instantly share code, notes, and snippets.

View shelbyspees's full-sized avatar
:shipit:

shelby spees shelbyspees

:shipit:
View GitHub Profile
@shelbyspees
shelbyspees / printName.js
Last active May 30, 2021 22:53
this is how callbacks work, Shelby
function printName(name, callback) {
console.log(`Player name: ${name}`);
function callback(
// normally you'd define parameters here right?
// does this ever get used?
) {
// what's the point of these curly braces?
} (
console.log("inside callback")
);

ExSampling

This is the version of ExSampling before it was made into a repo. (Source code.)

The root span of the trace is considered the head. All children of the root span in the trace can be considered a tail. We use the terms "head" and "tail" because of head-based sampling and tail-based sampling.

Configuration

For these examples, we've set up the sample_hook to drop any event (span) that contains the app.drop field.

@shelbyspees
shelbyspees / custom_sampler.md
Last active July 17, 2020 17:23
making sense of the ruby beeline sampling code

making sense of the ruby beeline sampling code

The next HoneyByte is looking at sampling. Specifically, dev.to's custom sampler.

My goal in HoneyBytes is to explain just enough that people feel empowered to go try things out for themselves. I don't like to just paste blocks of code without context. If code is worth including then it's worth explaining why I'm including it, and why it's written the way it is.

In order for me to explain these things well, I need to understand them. I'm writing notes here both for my own review and to share with others who can answer questions and confirm my understanding. ❤️

CustomSampler

@shelbyspees
shelbyspees / feminism101.md
Last active April 18, 2019 21:00
Feminism 101: Articles to read

Feminism 101: Articles to read

An incomplete list of articles I compiled to share with someone close to me who truly wanted to learn.

You might need to open the Medium posts in an incognito tab if they limit you after three.

Start here

Think It’s #NotAllMen? These 4 Facts Prove You’re Just Plain Wrong

Keybase proof

I hereby claim:

  • I am shelbyspees on github.
  • I am shelbyspees (https://keybase.io/shelbyspees) on keybase.
  • I have a public key ASA-IYRYloxh8x22Sb71QHlh_0iDUv6aOJW0KmgyL-ZTIAo

To claim this, I am signing this object:

@shelbyspees
shelbyspees / software-reads.md
Last active November 10, 2022 06:03
Software Reads
@shelbyspees
shelbyspees / yaml_reading.liquid
Last active August 29, 2015 14:18
Showing how I looped through my YAML data to populate my reading.md page.
{% for book in site.data.tech %}
<table class="minimum">
<tr>
<td><img src="{{ site.url }}{{ book.image }}" alt="{{ book.title }}"/></td>
<td>
<a href="{{ book.link }}"><b>{{ book.title }}</b></a>
{% if book.author %}<br>by {{ book.author }}{% endif %}
<br>{{ book.status }}
{% if book.description %}<br><br>{{ book.description }}{% endif %}
</td>
@shelbyspees
shelbyspees / yo.c
Created April 8, 2015 07:34
command-line clone of popular Yo app
#include <stdio.h>
int main() {
printf("yo\n");
return 0;
}