Skip to content

Instantly share code, notes, and snippets.

View timrisi's full-sized avatar

Timothy Risi timrisi

  • KickBack Reward Systems
  • Anchorage, AK
View GitHub Profile
mothy-Risis-MacBook-Pro:bots Tim$ rrobots NervousDuck.rb NervousDuck.rb
Error loading NervousDuck.rb!
uninitialized constant NervousDuck
Error loading NervousDuck.rb!
uninitialized constant NervousDuck
/Users/Tim/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- gosu (LoadError)
from /Users/Tim/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/Tim/.rvm/gems/ruby-1.9.2-p180/gems/rrobots-0.0.0/lib/rrobots/gui/gosuarena.rb:1:in `<top (required)>'
from /Users/Tim/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/Tim/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
Timothy-Risis-MacBook-Pro:bots Tim$ rrobots InsultDuck.rb InsultDuck.rb
/Users/Tim/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- gosu (LoadError)
from /Users/Tim/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/Tim/.rvm/gems/ruby-1.9.2-p180/gems/rrobots-0.0.0/lib/rrobots/gui/gosuarena.rb:1:in `<top (required)>'
from /Users/Tim/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/Tim/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/Tim/.rvm/gems/ruby-1.9.2-p180/gems/rrobots-0.0.0/lib/rrobots/gui.rb:2:in `<top (required)>'
from /Users/Tim/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/Tim/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/Tim/.
cardRoot.Add (new Section
{
new StringElement ("Play Card", delegate
{
if (game.cardPlaysRemaining > 0)
{
game.currentCard = cardPlayed;
if (cardPlayed.title.Equals("Peace Talks"))
{
@timrisi
timrisi / main.cs
Created October 18, 2011 06:41
main.cs
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using Core;
namespace Hnefatafl
{
public class Application
@timrisi
timrisi / gist:1498188
Created December 19, 2011 18:02
MapKitTest
using MonoTouch.UIKit;
using System.Drawing;
using System;
using MonoTouch.Foundation;
using System.IO;
using MonoTouch.MapKit;
using MonoTouch.CoreLocation;
namespace MapKitTest
{
@timrisi
timrisi / gist:1631819
Created January 18, 2012 07:39
PlayersToInvite
-(void)handleInviteFromGameCenter:(NSArray *)playersToInvite
{
NSLog(@"New invite");
[presentingViewController dismissModalViewControllerAnimated:YES];
GKMatchRequest *request = [[GKMatchRequest alloc] init];
request.playersToInvite = playersToInvite;
request.maxPlayers = 2;
request.minPlayers = 2;
GKTurnBasedMatchmakerViewController *viewController = [[GKTurnBasedMatchmakerViewController alloc] initWithMatchRequest:request];
flyoutController = new FlyOutNavigationController();
tl = new Timeline();
flyoutController.NavigationRoot = new RootElement("")
{
new Section("Navigation")
{
new StringElement("Timeline")
}
};
@timrisi
timrisi / gist:2760763
Created May 21, 2012 06:16
testflight sdk error
Building Solution: ChessGame (Debug|iPhone)
Building: ChessGame (Debug|iPhone)
Detecting signing identity...
Provisioning profile: "Knightmare Chess Game Center Test" (7A4E3779-C1EF-4AD3-A06D-44710BB740E1)
Signing Identity: "iPhone Developer: Timothy Risi (UWZP44RP7F)"
App ID: "GF4DUJBW65.com.RisiApps.KCGCTest"
Performing main compilation...
@timrisi
timrisi / gist:3944082
Created October 24, 2012 05:11
android layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<xamarin.controls.SignatureView
android:id="@+id/signature"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</LinearLayout>
PS C:\Users\trisi> gem install capybara-webkit
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing capybara-webkit:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
cd src/ && c:/Users/trisi/Downloads/Qt-4.7.3-dev-msvc2010-rdh/bin/qmake.exe c:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara
-webkit-0.14.1/src/webkit_server.pro -spec c:/Users/trisi/Downloads/Qt-4.7.3-dev-msvc2010-rdh/mkspecs/win32-g++ -o Makef
ile.webkit_server