Skip to content

Instantly share code, notes, and snippets.

View sgharms's full-sized avatar

Steven G. Harms sgharms

View GitHub Profile
/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
1 #!/usr/bin/ruby
2 require 'pp'
3
4 module Larry
5 def foo_cluster;
6 puts "in foo_cluster"
7 puts "<<#{__method__}>>"
8 end
9 def foo_cluster_alpha; puts "in foo_cluster_alpha" ; end
10 def foo_cluster_beta; puts "in foo_cluster_beta" ; end
@sgharms
sgharms / why can't I upgrade?
Created March 10, 2011 02:45
why can't I upgrade?
sgharms@stharms-mac:~/gitcheckouts/rdoc$ rake test
e(in /Users/sgharms/gitcheckouts/rdoc)
rake aborted!
undefined method `plugin' for Hoe:Class
/Users/sgharms/gitcheckouts/rdoc/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
sgharms@stharms-mac:~/gitcheckouts/rdoc$ gem install hoe-git
ERROR: Error installing hoe-git:
hoe requires RubyGems version >= 1.4. Try 'gem update --system' to update RubyGems itself.
sgharms@stharms-mac:~/gitcheckouts/rdoc$ gem update --system
@sgharms
sgharms / gist:1028581
Created June 16, 2011 02:56
Fun with metaprogramming in Ruby
#!/usr/bin/env ruby
module Magic
def self.active_voice_indicative_mood_present_tense(spec)
puts "hey you called me, with an argument of #{spec}"
end
end
class Zabu
def razzle
@sgharms
sgharms / gist:1148023
Created August 15, 2011 22:20
unclemantis
#!/usr/bin/env ruby
#
foo = []
0.upto 5 do |i|
- foo[i] = {}
end
foo[0]['jackpot'] = 100
foo[1]['jackpot'] = 200
foo[2]['jackpot'] = 500
foo[3]['jackpot'] = 300
Woman = (function() {
__extends(Woman, Primate);
function Woman(name) {
this.name = name != null ? name : 'Eve';
this.likes = [];
}
Woman.prototype.supply_likes = function() {
this.likes.push("someStuff");
return this.likes.push("someOtherStuff");