Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

### 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 *
@talklittle
talklittle / gist:4341953
Created December 20, 2012 00:14
the libgdx render code for MD2 model used in Frog Ball
// private KeyframedModel currentModel;
// use ModelLoaderRegistry.loadKeyframedModel() to load MD2 models
// in render():
if (currentModel != desiredModel) {
currentModel = desiredModel;
animationTime = 0;
}
@talklittle
talklittle / MD2Loader.java
Created December 21, 2012 05:58
libgdx MD2Loader modification to fix animation name truncation
// 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;
Verifying myself: My Bitcoin username is +talklittle. https://onename.io/talklittle
@talklittle
talklittle / MultipleFieldNamesModelTest
Created February 18, 2015 18:31
LoganSquare failing tests JDK 8
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:
======
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 / AndroidManifest.xml
Created March 14, 2017 14:03
AndroidManifest.xml intent filter for YouTube videos
<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" />

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: