Skip to content

Instantly share code, notes, and snippets.

@mmcdole
mmcdole / xmonad.errors
Created July 4, 2013 03:24
XMonad Issue
xmonad.hs:26:19:
Couldn't match expected type `(k0, a0)'
with actual type `[((KeyMask, KeySym), X ())]'
In the expression:
[((modMask .|. mask, key), f sc) |
(key, sc) <- zip [xK_q, xK_w, xK_e] [0 .. ],
(f, mask) <- [(viewScreen, 0), (sendToScreen, shiftMask)]]
In the second argument of `($)', namely
`[[((modMask .|. mask, key), f sc) |
(key, sc) <- zip [xK_q, xK_w, ....] [0 .. ],
@mmcdole
mmcdole / gist:8154cd0b52150d4acb95
Created February 4, 2015 18:52
FreeStreamer 2.10.3 Crash
This file has been truncated, but you can view the full file.
[audio_stream.cpp:666 thread 807] kAudioFileMP3Type detected
[audio_stream.cpp:893 thread 807] virtual void astreamer::Audio_Stream::streamIsReadyRead(): audio file stream opened.
[audio_stream.cpp:213 thread 807] void astreamer::Audio_Stream::open(astreamer::Input_Stream_Position *): HTTP stream opened, buffering...
[audio_stream.cpp:234 thread 807] Starting the startup watchdog, period 30 seconds
[audio_stream.cpp:902 thread 807] streamHasBytesAvailable: 1024 bytes
[audio_stream.cpp:902 thread 807] streamHasBytesAvailable: 1024 bytes
[audio_stream.cpp:902 thread 807] streamHasBytesAvailable: 1024 bytes
[audio_stream.cpp:902 thread 807] streamHasBytesAvailable: 1024 bytes
[audio_stream.cpp:902 thread 807] streamHasBytesAvailable: 1024 bytes
[audio_stream.cpp:902 thread 807] streamHasBytesAvailable: 1024 bytes
@mmcdole
mmcdole / gist:2115b48d6ad22e929eff
Created February 4, 2015 19:21
FreeStreamer 826d Seek Issue
This file has been truncated, but you can view the full file.
[audio_stream.cpp:686 thread 807] kAudioFileMP3Type detected
[audio_stream.cpp:913 thread 807] virtual void astreamer::Audio_Stream::streamIsReadyRead(): audio file stream opened.
[audio_stream.cpp:213 thread 807] void astreamer::Audio_Stream::open(astreamer::Input_Stream_Position *): HTTP stream opened, buffering...
[audio_stream.cpp:234 thread 807] Starting the startup watchdog, period 30 seconds
[audio_stream.cpp:922 thread 807] streamHasBytesAvailable: 1024 bytes
[audio_stream.cpp:922 thread 807] streamHasBytesAvailable: 1024 bytes
[audio_stream.cpp:922 thread 807] streamHasBytesAvailable: 1024 bytes
[audio_stream.cpp:922 thread 807] streamHasBytesAvailable: 1024 bytes
[audio_stream.cpp:922 thread 807] streamHasBytesAvailable: 1024 bytes
[audio_stream.cpp:922 thread 807] streamHasBytesAvailable: 1024 bytes
@mmcdole
mmcdole / .clang-format
Created October 30, 2015 16:15
Objective-C Clang Format
BasedOnStyle: Chromium
AlignTrailingComments: true
BreakBeforeBraces: Attach
ColumnLimit: 0
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
ObjCBlockIndentWidth: 4
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true
PointerBindsToType: false
@mmcdole
mmcdole / 7.go
Created December 19, 2015 05:33
package main
import (
"bufio"
"fmt"
"os"
"regexp"
"strconv"
)
@mmcdole
mmcdole / 8.go
Created December 19, 2015 06:29
package main
import (
"bufio"
"fmt"
"os"
"regexp"
)
var (
@mmcdole
mmcdole / keybase.md
Created September 30, 2018 22:06
Keybase Proof

Keybase proof

I hereby claim:

  • I am mmcdole on github.
  • I am mattmcdole (https://keybase.io/mattmcdole) on keybase.
  • I have a public key ASBBSFkA2QaqJDIqMeWNeBVInbq1gRk6sXva6LNtLWvGIAo

To claim this, I am signing this object: