Skip to content

Instantly share code, notes, and snippets.

Andrew Shu talklittle

Block or report user

Report or block talklittle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am talklittle on github.
  • I am talklittle (https://keybase.io/talklittle) on keybase.
  • I have a public key whose fingerprint is FC70 3708 DF44 DE0E 4551 F1FB 4997 F141 559D 8D86

To claim this, I am signing this object:

@talklittle
talklittle / AndroidManifest.xml
Created Mar 14, 2017
AndroidManifest.xml intent filter for YouTube videos
View AndroidManifest.xml
<manifest>
<application>
<activity android:name="com.example.MainActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" android:host="www.youtube.com" android:pathPrefix="/watch" />
<data android:scheme="https" android:host="www.youtube.com" android:pathPrefix="/watch" />
<data android:scheme="http" android:host="youtube.com" android:pathPrefix="/watch" />
View MainActivity.java
package com.talklittle.recyclerfastscrollgithubissue8;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
@talklittle
talklittle / MultipleFieldNamesModelTest
Created Feb 18, 2015
LoganSquare failing tests JDK 8
View MultipleFieldNamesModelTest
java.lang.AssertionError:
Source declared the same top-level types of an expected source, but
didn't match exactly.
Expected file: </Users/andrew/Documents/LoganSquare/processor/build/resources/test/generated/MultipleFieldNamesModel$$JsonObjectMapper.java>
Actual file: </SOURCE_OUTPUT/com/bluelinelabs/logansquare/processor/MultipleFieldNamesModel$$JsonObjectMapper.java>
Diffs:
======
View gist:92257cf30f949668b24b
Verifying myself: My Bitcoin username is +talklittle. https://onename.io/talklittle
@talklittle
talklittle / MD2Loader.java
Created Dec 21, 2012
libgdx MD2Loader modification to fix animation name truncation
View MD2Loader.java
// in loadFrame()
int len = 0;
for (int i = 0; i < charBuffer.length; i++) {
// The following line changes to do proper truncation of frame index
// appended to the Marker name by the junaio export script from
// http://www.junaio.com/develop/docs/documenation/general/3dmodels/
if (charBuffer[i] == 0 || Character.isDigit(charBuffer[i])) {
len = i; // was len = i - 1 (off by 1 error)
break;
@talklittle
talklittle / gist:4341953
Created Dec 20, 2012
the libgdx render code for MD2 model used in Frog Ball
View gist:4341953
// private KeyframedModel currentModel;
// use ModelLoaderRegistry.loadKeyframedModel() to load MD2 models
// in render():
if (currentModel != desiredModel) {
currentModel = desiredModel;
animationTime = 0;
}
View gridcells.py
### This module holds grid classes and engine for Python Reversi.
### Classes for text display are also here so they can make use
### of necessary globals.
### Last revised 2008-12-07
### ACP
import pygame
from pygame.locals import *
You can’t perform that action at this time.