Skip to content

Instantly share code, notes, and snippets.

View Sushisource's full-sized avatar
🍣

Spencer Judge Sushisource

🍣
View GitHub Profile
@Sushisource
Sushisource / Cargo.toml
Created May 11, 2021 22:53
Opentelemetry hang demonstration
[package]
name = "opentelem_hang"
version = "0.1.0"
authors = ["Spencer Judge <sjudge@hey.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
futures = "0.3"
@Sushisource
Sushisource / keybase.md
Created August 26, 2019 18:18
Keybase Proof

Keybase proof

I hereby claim:

  • I am sushisource on github.
  • I am sushisource (https://keybase.io/sushisource) on keybase.
  • I have a public key ASACia_HSUumUgU5xkdcX88bUficV7q69DhfLkjJWIAU1go

To claim this, I am signing this object:

@Sushisource
Sushisource / Error.txt
Created April 12, 2018 02:27
Rust from/into generic impl
error[E0119]: conflicting implementations of trait `std::convert::Into<ggez::graphics::Rect>` for type `&_`:
--> src\dungeongen\rooms.rs:143:1
|
143 | impl<'a, T: CenterOriginRect> Into<Rect> for &'a T {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: conflicting implementation in crate `core`:
- impl<T, U> std::convert::Into<U> for T
where U: std::convert::From<T>;
= note: downstream crates may implement trait `std::convert::From<&_>` for type `ggez::graphics::Rect`
2015-08-10 18:59:38.9419 | 1 | I | express, Version=4.1.5.0, Culture=neutral, PublicKeyToken=null
2015-08-10 18:59:38.9549 | 1 | I | Version: 4.1.5.0
2015-08-10 18:59:38.9549 | 1 | I | Current Garmin Locale: en_US
2015-08-10 18:59:47.2487 | 1 | I | Launching tray: C:\Program Files (x86)\Garmin\Express Tray\ExpressTray.exe
2015-08-10 18:59:47.5720 | 11 | I | Successfully opened channel to IEventService.
2015-08-10 18:59:47.5876 | 9 | I | Successfully opened channel to IUpdateService.
2015-08-10 18:59:47.5876 | 9 | I | Successfully opened channel to IDownloadService.
2015-08-10 18:59:47.6081 | 9 | I | Successfully opened channel to IDeviceService.
2015-08-10 18:59:47.6081 | 9 | I | Successfully opened channel to ISyncService.
2015-08-10 18:59:47.6081 | 9 | I | Successfully opened channel to IOperationService.
@Sushisource
Sushisource / foosball_ingame_websocket.erl
Created August 11, 2013 03:02
Simple websocket controller causing crash
-module(foosball_ingame_websocket).
-behaviour(boss_service_handler).
-export([init/0,
handle_incoming/5,
handle_join/4,
handle_close/4,
handle_broadcast/2,
handle_info/2,
terminate/2]).
@Sushisource
Sushisource / command.erl
Last active December 18, 2015 01:19
Nonzero status codes take are never received
-module(command).
-compile(export_all).
command(Cmd) ->
Opt = [stream, exit_status, use_stdio,
stderr_to_stdout, in, eof],
P = open_port({spawn, Cmd}, Opt),
get_data(P, []).
get_data(P, D) ->
@Sushisource
Sushisource / vizwidget.cpp
Created May 24, 2013 06:15
Shaders don't render
#include "vizwidget.h"
VizWidget::VizWidget(QWidget *parent) :
QGLWidget(parent),
shaderProgram(this),
vertexBuffer(QOpenGLBuffer::VertexBuffer),
fftBuffer()
{
playbackWidget = NULL;
vertShader = "./shaders/basic.vert";
@Sushisource
Sushisource / Stacktrace
Created May 17, 2013 04:58
makeCurrent crash
0 QScopedPointer<QObjectData,QScopedPointerDeleter<QObjectData> >::data qscopedpointer.h 132 0x60a20bda
1 qGetPtrHelper<QScopedPointer<QObjectData,QScopedPointerDeleter<QObjectData> > > qglobal.h 886 0x60a519ab
2 QOpenGLContext::d_func qopenglcontext.h 145 0x60a57503
3 QOpenGLContext::makeCurrent qopenglcontext.cpp 746 0x60a9ded2
4 QGLContext::makeCurrent qgl_qpa.cpp 218 0x64031446
5 QGLWidget::makeCurrent qgl.cpp 3713 0x63fe806d
6 VizWidget::paintEvent vizwidget.cpp 83 0x2861b0
7 QWidget::event qwidget.cpp 8029 0x612062cf
8 QGLWidget::event qgl_qpa.cpp 366 0x64031c04
9 QApplicationPrivate::notify_helper qapplication.cpp 3442 0x611c120e