Skip to content

Instantly share code, notes, and snippets.

View bardic's full-sized avatar

TJ Gillis bardic

View GitHub Profile
@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);
}
@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 / 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: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();
}
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
2015-06-30 22:54:35 POSTPROCESSER :: Failed Unrar archive orange.is.the.new.black.s03e09.webrip.x264-qcf.part01.rar: No suitable RAR unpacker installed
2015-06-30 22:54:34 POSTPROCESSER :: Failed Unrar archive mozart.in.the.jungle.s01e04.720p.webrip.x264-failed.rar: No suitable RAR unpacker installed
2015-06-30 22:54:34 POSTPROCESSER :: Failed Unrar archive mozart.in.the.jungle.s01e05.proper.720p.webrip.x264-batv.rar: No suitable RAR unpacker installed
2015-06-30 22:54:34 POSTPROCESSER :: Failed Unrar archive mozart.in.the.jungle.s01e06.proper.720p.webrip.x264-batv.rar: No suitable RAR unpacker installed
2015-06-30 22:54:34 POSTPROCESSER :: Failed Unrar archive mozart.in.the.jungle.s01e07.proper.720p.webrip.x264-batv.rar: No suitable RAR unpacker installed
2015-06-30 22:54:34 POSTPROCESSER :: Failed Unrar archive mozart.in.the.jungle.s01e10.proper.720p.webrip.x264-batv.rar: No suitable RAR unpacker installed
2015-06-30 22:54:34 POSTPROCESSER :: Failed Unrar archive once.upon.a.time.42223.hdtv-lol.rar: No suit
2015-08-12 17:55:34 INFO SEARCHQUEUE-MANUAL-214831 :: [IPTorrents] :: Ignoring result Face.Off.S09E01.Intergalactic.Zoo.XviD-AFG because we don't want an episode that is Unknown
2015-08-12 17:55:33 INFO SEARCHQUEUE-MANUAL-214831 :: [IPTorrents] :: Ignoring result Face.Off.S09E01.Intergalactic.Zoo.480p.x264-mSD because we don't want an episode that is Unknown
2015-08-12 17:55:33 INFO SEARCHQUEUE-MANUAL-214831 :: [IPTorrents] :: Ignoring result Face.Off.S09E01.Intergalactic.Zoo.HDTV.x264-W4F because we don't want an episode that is SDTV
2015-08-12 17:55:33 INFO SEARCHQUEUE-MANUAL-214831 :: [IPTorrents] :: Ignoring result Face.Off.S09E01.Intergalactic.Zoo.HDTV.x264-FUM because we don't want an episode that is SDTV
2015-08-12 17:55:33 INFO SEARCHQUEUE-MANUAL-214831 :: [IPTorrents] :: Ignoring result Face.Off.S09E01.Intergalactic.Zoo.720p.HDTV.x264-DHD because we don't want an episode that is HDTV
2015-08-12 17:55:32 INFO SEARCHQUEUE-MANUAL-214831 :: [IPTorrents] :: Performing episode searc
2015-09-09 19:07:39 INFO SEARCHQUEUE-MANUAL-214831 :: [IPTorrents] :: Unable to find a download for: [Face Off - 9x07 - All That Glitters]
2015-09-09 19:07:39 WARNING SEARCHQUEUE-MANUAL-214831 :: [IPTorrents] :: No NZB/Torrent providers found or enabled in the sickrage config for backlog searches. Please check your settings.
AA
AAAttributeError: 'NoneType' object has no attribute 'text'
AA if re.search('tries left', response.text) \
AA File "/Users/*********/Sickrage/sickbeard/providers/iptorrents.py", line 99, in _doLogin
AA if not self._doLogin():
AA File "/Users/*********/Sickrage/sickbeard/providers/iptorrents.py", line 337, in _doSearch
AA itemList += self._doSearch(curString, 'eponly', len(episodes))
AA File "/Users/*********/Sickrage/sickbeard/providers/iptorrents.py", line 167, in findSearchResults
npm_new() {
if [ "$1" != "" ]
then
mkdir "$1"
cd "$1"
if ! type nvm > /dev/null; then
echo "Insatll NVM. I'm not doing it for you since you need shell integration"
echo "https://github.com/creationix/nvm"
return 1
npm_new_phaser() {
if [ "$1" != "" ]
then
mkdir "$1"
cd "$1"
if ! type nvm > /dev/null; then
echo "Insatll NVM. I'm not doing it for you since you need shell integration"
echo "https://github.com/creationix/nvm"
return 1