Skip to content

Instantly share code, notes, and snippets.

View bardic's full-sized avatar

TJ Gillis bardic

View GitHub Profile
Starting: Intent { act=android.intent.action.MAIN cmp=com.example.myapp/.MainActivity }
*:E lime:D Main:D GameActivity:D GLThread:D trace:D
--------- beginning of /dev/log/system
F/ProcessStats( 929): Starting service ServiceState{424070e0 com.netcosports.andfifa.data.DataService pkg=com.fwc2014.cbc.and proc=424070e0} without owner
F/ActivityManager( 929): Service ServiceRecord{4200f5e8 u0 com.twitter.android/com.twitter.internal.android.service.AsyncService} in process ProcessRecord{42421a60 32356:com.twitter.android/u0a71} not same as in map: null
E/ConnectivityService( 929): net.tcp.usercfg.default not found in system default properties
E/ConnectivityService( 929): Can't set delayed ACK size:java.io.FileNotFoundException: /sys/kernel/ipv4/tcp_use_userconfig: open failed: ENOENT (No such file or directory)
E/ConnectivityService( 929): net.tcp.delack.default not found in system default properties
E/ConnectivityService( 929): Can't set delayed ACK size:java.io.FileNotFoundException: /sys/kernel/ipv4/tcp
@bardic
bardic / gist:c4f8e3df0b9f1c443911
Last active August 29, 2015 14:01
HaxeFlixel scaled sprite
import flixel.FlxSprite;
class ObScaledSprite extends FlxSprite{
override public function new(X:Int, Y:Int, SCALE:Float, ?SimpleGraphic:Dynamic) {
X = Std.int(X * SCALE);
Y = Std.int(Y * SCALE);
super(X,Y,SimpleGraphic);
this.setGraphicSize(Std.int(this.width*SCALE), Std.int(this.height*SCALE));
this.updateHitbox();
}
@bardic
bardic / direcory_to_xml
Created February 22, 2012 22:43
bash to put files in directory in xml
#!/bin/sh
echo "<xml>" >> sound.xml
for f in *.mp3
do
echo "<sound>$f</sound>" >> sound.xml
done
echo "</xml>" >> sound.xml
@bardic
bardic / gist:1688453
Created January 27, 2012 11:56
Trying to copy files from within Gem to new project.
#src/ is at the root of my Gem project.
def copy_signals_context
puts ">> copy the signals context"
files = FileList['src/org/*']
files.each do |f|
puts ">> Copying #{f} to #{File.join('bin', f)}"
FileUtils.makedirs File.dirname(File.join('bin', f))
@bardic
bardic / as3signals error with robotlegs
Created November 4, 2011 23:56
0 arguments Error?
//Error : [Fault] exception, information=ArgumentError: Listener has 0 arguments but it needs at least 1 to match the given value classes.
/************* CONTEXT:
signalCommandMap.mapSignalClass(KeyPressedSignal, KeyPressedCommand);
/*****************
public class KeyPressedSignal extends Signal{
public function KeyPressedSignal() {
super(int);
}