Skip to content

Instantly share code, notes, and snippets.

Avatar
🍣

Spencer Judge Sushisource

🍣
View GitHub Profile
View keybase.md

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 Apr 12, 2018
Rust from/into generic impl
View Error.txt
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`
View Express.log
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 Aug 11, 2013
Simple websocket controller causing crash
View foosball_ingame_websocket.erl
-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 Dec 18, 2015
Nonzero status codes take are never received
View command.erl
-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
Shaders don't render
View vizwidget.cpp
#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
makeCurrent crash
View Stacktrace
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
You can’t perform that action at this time.