Skip to content

Instantly share code, notes, and snippets.

View avegancafe's full-sized avatar

Kyle Holzinger avegancafe

View GitHub Profile
@avegancafe
avegancafe / profile.log
Created December 20, 2021 18:34
vim-go issue reproduction
This file has been truncated, but you can view the full file.
SCRIPT /Users/kyle/.local/share/nvim/site/pack/packer/start/dashboard-nvim/autoload/sessions/session.vim
Sourced 1 time
Total time: 0.001254
Self time: 0.001254
count total (s) self (s)
" Plugin: https://github.com/hardcoreplayers/dashboard-nvim
" Description: A fancy start screen for Vim.
" Maintainer: Glepnir <http://github.com/glepnir>
Oxygen is a very toxic gas and an extreme fire hazard. It is fatal in
concentrations of as little as 0.000001 p.p.m. Humans exposed to the
oxygen concentrations die within a few minutes. Symptoms resemble very
much those of cyanide poisoning (blue face, etc.). In higher
concentrations, e.g. 20%, the toxic effect is somewhat delayed and it
takes about 2.5 billion inhalations before death takes place. The reason
for the delay is the difference in the mechanism of the toxic effect of
oxygen in 20% concentration. It apparently contributes to a complex
process called aging, of which very little is known, except that it is
always fatal.
/*
*
* In order to run this:
* Get token to use with Slack API:
* 1. Go to the customize emojis admin page in slack (usually the URL is <instance-name>.slack.com/customize/emoji)
* 2. Open your networks tab and find the request to /api/emoji.adminList
* 3. Check the form data that's submitted and grab the value called "token"
*
* Use token in Slack API to get all emojis:
* 1. Go here: https://api.slack.com/methods/emoji.list/test
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<sys/socket.h>
#include<arpa/inet.h>
#include<netdb.h>
#include<signal.h>
╔║
┌─╫╫─┐
│ ├┐
│♠ ♣ └│
│ └ └┘
│⌐-¬ │
│ │
│ │
└──┘ │
did:3:bafyreihkrxaxtxcan3upovrglthgzyouv27ffnrqgmc7xcv33zph5lom7a
@avegancafe
avegancafe / space_authority_avoid_order_flakes_spec.rb
Created May 17, 2020 19:29
Examples for RSpec Formatting Blog Post - space_authority_avoid_order_flakes_spec.rb
describe SpaceAuthority do
let!(:user) { create(:user) }
let!(:middle_space) { create(:space, unit: 'first space', sort_order: 2) }
let!(:last_space) { create(:space, unit: 'middle space', sort_order: 3) }
let!(:first_space) { create(:space, unit: 'last space', sort_order: 1) }
subject { described_class.new(user).spaces(order: :sort_order) }
it 'sorts spaces' do
expect(subject.map(&:unit)).to eq([
first_space,
@avegancafe
avegancafe / space_authority_mutually_ordered_creation_spec.rb
Created May 17, 2020 18:48
Examples for RSpec Formatting Blog Post - space_authority_mutually_ordered_creation_spec.rb
describe SpaceAuthority do
let!(:user) { create(:user) }
let!(:first_space) { create(:space, unit: 'first space', sort_order: 0) }
let!(:middle_space) { create(:space, unit: 'middle space', sort_order: 0) }
let!(:last_space) { create(:space, unit: 'last space', sort_order: 0) }
subject { described_class.new(user).spaces(order: :sort_order) }
it 'sorts spaces' do
expect(subject.map(&:unit)).to eq([
first_space,
@avegancafe
avegancafe / space_authority_a_few_eager_objects_spec.rb
Last active May 17, 2020 18:44
Examples for RSpec Formatting Blog Post - space_authority_a_few_eager_objects_spec.rb
describe SpaceAuthority do
let!(:property) do
# this property is needed in all tests
end
context 'property tests' do
# no extra objects needed here
end
# floor and space tests utilize top-level property, but instantiate
@avegancafe
avegancafe / space_authority_so_many_objects_spec.rb
Last active May 17, 2020 18:39
Examples for RSpec Formatting Blog Post - space_authority_so_many_objects_spec.rb
describe SpaceAuthority do
let(:property) do
# generic property that might be needed in a couple of places
end
let(:floor) do
# generic floor that might be needed in a couple of places
end
let(:space) do
# generic space that might be needed in a couple of places
end