Skip to content

Instantly share code, notes, and snippets.

View sgharms's full-sized avatar

Steven G. Harms sgharms

View GitHub Profile
==> Downloading http://irssi.org/files/irssi-0.8.15.tar.bz2
File already downloaded and cached to /Users/stharms/Library/Caches/Homebrew
==> Downloading patches
==> Patching
patching file configure
Hunk #1 succeeded at 14050 (offset -13369 lines).
Hunk #2 succeeded at 14068 with fuzz 2 (offset -13369 lines).
==> ./configure --prefix=/usr/local/brew/Cellar/irssi/0.8.15 --with-perl=yes --w
==> make install
./file2header.sh ./irssi.conf default_config > default-config.h
$ brew unlink gettext && brew doctor
0 links removed for /usr/local/brew/Cellar/gettext/0.17
Your OS X is ripe for brewing. Any troubles you may be experiencing are
likely purely psychosomatic.
OK...
==> Downloading http://irssi.org/files/irssi-0.8.15.tar.bz2
==> Downloading http://irssi.org/files/irssi-0.8.15.tar.bz2
File already downloaded and cached to /Users/stharms/Library/Caches/Homebrew
==> Downloading patches
==> Patching
patching file configure
Hunk #1 succeeded at 14050 (offset -13369 lines).
Hunk #2 succeeded at 14068 with fuzz 2 (offset -13369 lines).
==> ./configure --prefix=/usr/local/brew/Cellar/irssi/0.8.15 --with-perl=yes --with
==> make install
./file2header.sh ./irssi.conf default_config > default-config.h
Can anyone explain a bit of Java Collections syntax to me?
1. I created a class of things call JavaCard (a flash card) that extends Card.
1. There is also a JavaCardDeck, subclassed from CardDeck.
1. CardDeck possesses an ArrayList called 'cards' as an iVar. The ArrayList is declared as possessing type <Card>. I think that this is good polymorphism.
1. One loads JavaCardDeck, which effectively wraps the ArrayList, with JavaCard
I want to be able to get a "normal" array out of a JavaCardDeck instance. Thus:
aJavaCardDeck.getCards // should return an array of Cards,
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GnuTLS configure 2.8.5, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/brew/Cellar/gnutls/2.8.5 --disable-guile --with-libgcrypt-prefix=/usr/local
## --------- ##
## Platform. ##
/bin/sh ../../libtool --tag=CC --mode=link /usr/bin/cc -O3 -march=core2 -msse4.1 -w -pipe -Wall -export-dynamic -o irssi gui-entry.o gui-expandos.o gui-printtext.o gui-readline.o gui-windows.o lastlog.o mainwindows.o mainwindow-activity.o mainwindows-layout.o statusbar.o statusbar-config.o statusbar-items.o term.o term-dummy.o term-terminfo.o terminfo-core.o textbuffer.o textbuffer-commands.o textbuffer-view.o irssi.o module-formats.o ../fe-common/irc/libfe_common_irc.a ../fe-common/irc/dcc/libfe_irc_dcc.a ../fe-common/irc/notifylist/libfe_irc_notifylist.a ../fe-common/core/libfe_common_core.a ../irc/libirc.a ../irc/core/libirc_core.a ../irc/dcc/libirc_dcc.a ../irc/flood/libirc_flood.a ../irc/notifylist/libirc_notifylist.a ../core/libcore.a ../lib-config/libirssi_config.a ../perl/libperl_core_static.la ../perl/libfe_perl_static.la -L/usr/local/lib -L/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE -lperl -ldl -lm -lutil -L/usr/local/brew/Cellar/glib/2.24.1/lib -L/usr/local/brew/Cellar/gette

Here is a pom.xml file declaration:

            <dependency>
                    <groupId>net.sf.ehcache</groupId>
                    <artifactId>ehcache</artifactId>
                    <version>1.6.2</version>
                    <scope>system</scope>
                    <systemPath>${basedir}/jars/ehcache-1.6.2.jar</systemPath>
            </dependency>
@sgharms
sgharms / Ruby Metaprogramming Fun
Created December 21, 2010 21:38
Why it's hard to not use Ruby after using it
#!/usr/bin/env ruby
# This is a little something that shows off the beauty of Ruby's object model.
# OK, let's first have a module that contains a class. You might choose to
# instantate this class and then use the makemod method to return a module
# that was created on the fly using the symbol you passed in to the method.
module A
class Gen
#!/usr/bin/env ruby
def amethod
myArray = %w/foo bar bin bat/
m = Module.new do
attr_reader :var1
def initialize
@var1 = "Lauren Monkey"
puts "I just ran initialize"
end def razzle
@sgharms
sgharms / larry.rb
Created January 7, 2011 02:47
an idea about module generation
#!/usr/bin/env ruby
class FirstClass
def initialize
@someArray = %w(foo bar bat)
end
def create_module
a_var = @someArray