Posts Tagged ‘ ruby ’
I just wrote a class in ruby for the backend for the ALT+F2 replacement i’m working on. here is the class in ruby #! /usr/bin/ruby require 'pathname' class Doer def initialize path=ENV['PATH'].to_s.split(":") @li="" @cmdlst=[] @command=Hash.new() path.each do |indpath| inpath=Pathname(indpath) files=inpath.children(false) files.each do |fls| testval=FileTest::executable?(File.join(indpath,fls)) if testval cmdpth=File.join(indpath,fls).to_s cmd=fls.to_s @command.store(cmd,cmdpth) @cmdlst.push(cmd+"\n") end end end @cmdlst=@cmdlst.join end [ READ MORE ]
Having fun coding on brainfuck and ruby for sometime, here is the result. Jared Derinsk, had published a white paper on adding features to brainfuck. Having published his white paper for about 3 years[ READ MORE ]
A GNU/Linux enthusiast, Amateur Photographer, Design enthusiast who loves simplicity. An active tweeter @cyriacthomas.
Get every new post delivered to your Inbox.