Skip to content

Instantly share code, notes, and snippets.

View seanabraham's full-sized avatar

Sean Abraham seanabraham

View GitHub Profile
@seanabraham
seanabraham / Error from Nodejitsu
Created September 18, 2012 23:35
Nodejitsu Initial Deploy Error
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy the app
error:
error: package.json error: can't find starting script: node app
error: Package.json start script declared but not found
error:
error: This type of error is usually a user error.
error: Error output from Haibu:
error:
@seanabraham
seanabraham / gist:3893311
Created October 15, 2012 16:07
C strings
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main (void)
{
char *s = (char *) malloc(sizeof(char) * 10);
strcpy(s, "Hey man..");
int i = 0;
while (s[i++] != '\0')
@seanabraham
seanabraham / gist:3897194
Created October 16, 2012 04:11
UDJ won't open
Process: UDJ [91996]
Path: /Users/USER/*/UDJ.app/Contents/MacOS/UDJ
Identifier: UDJ
Version: 0.6.2 (UDJ 0.6.2)
Code Type: X86-64 (Native)
Parent Process: launchd [122]
User ID: 501
Date/Time: 2012-10-15 23:10:24.949 -0500
OS Version: Mac OS X 10.8.2 (12C54)
@seanabraham
seanabraham / LoggingLinearLayoutManager.java
Created October 30, 2015 20:19
LoggingRecyclerView and LoggingLinearLayoutManager which helps debugging RV issues.
public class LoggingLinearLayoutManager extends LinearLayoutManager {
public LoggingLinearLayoutManager(Context context) {
super(context);
}
public LoggingLinearLayoutManager(Context context, int orientation, boolean reverseLayout) {
super(context, orientation, reverseLayout);
}
public LoggingLinearLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {

Keybase proof

I hereby claim:

  • I am seanabraham on github.
  • I am seanabraham (https://keybase.io/seanabraham) on keybase.
  • I have a public key ASDTjYn1b91Bd0zFe7i_-NJEY8SZQZ-NpGkBHZ9yNBdf8Ao

To claim this, I am signing this object:

@seanabraham
seanabraham / ParallelQueries.kt
Created June 22, 2020 22:48
Some kotlin coroutine exception handling
@file:OptIn(ExperimentalTime::class, ExperimentalCoroutinesApi::class)
package me.seanabraham.coroutine.playground
import kotlinx.coroutines.*
import mu.KotlinLogging
import kotlin.random.Random
import kotlin.random.nextInt
import kotlin.time.Duration
import kotlin.time.ExperimentalTime