My Recent Pastes (20 and counting)
Pastes by Ana Nelson (20 and counting)
Pages: 1 2
Below are the 15 most recent pasties by Ana Nelson.
January 25, 2008
4:21AM EDT
by Ana Nelson
View more (19 lines)
# ruby 1.9.0 (2007-12-25 revision 14709) [i386-mswin32] # This is okay... # h = { # "x"=>[[4.0]]
December 13, 2007
4:33PM EDT
by Ana Nelson
View more (12 lines)
# multiple_state_machine.rl %%{ machine hello_and_welcome; main := ( 'h' @ { puts "hello world!" } | 'w' @ { puts "welcome" }
December 13, 2007
4:33PM EDT
by Ana Nelson
View more (21 lines)
# never_ending_simple_state_machine.rl %%{ machine never_ending_hello; expr = "h"; main := expr+ @ { puts "hello world!" } ;
December 13, 2007
4:32PM EDT
by Ana Nelson
View more (22 lines)
# simple_state_machine.rl %%{ machine hello; expr = "h"; main := expr @ { puts "hello world!" } ;
December 04, 2007
3:21PM EDT
by Ana Nelson
View more (22 lines)
%%{
machine hello;
expr = "h";
main := expr @ { puts "hello world!" } ;
}%%
November 03, 2007
12:03PM EDT
by Ana Nelson
View more (18 lines)
# This file is copied to ~/spec when you run 'ruby script/generate rspec' # from the project root directory. ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require 'spec/rails'
August 15, 2007
3:59PM EDT
by Ana Nelson
View more (121 lines)
puts "\nWays of creating a basic block:" def pass_me_a_block_please yield end
August 06, 2007
9:11AM EDT
by Ana Nelson
View more (32 lines)
class SecurityController < ApplicationController
def login
if request.post?
login_if_valid { Account.authenticate_with_password(params[:email], params[:password]) }
elsif !params[:key].nil?
August 03, 2007
12:48PM EDT
by Ana Nelson
View more (17 lines)
## in spec
generate_and_import_fake_data(
Security.find(:all),
"Id\tBlp Performance Month\tBlp Performance Quarter\tDo Not Change This Date",
"\#{obj.id}\t\#{rand*0.1}\t\#{rand*0.01}\t30/06/2007"
August 02, 2007
5:41AM EDT
by Ana Nelson
View more (62 lines)
! Requires 4.0.13 size 12 8 set font ss include "barstyles.gle"
August 02, 2007
5:40AM EDT
by Ana Nelson
View more (63 lines)
! Requires 4.0.13 size 12 8 set font ss include "barstyles.gle"
July 31, 2007
8:35AM EDT
by Ana Nelson
View more (123 lines)
module Gle
def bar(filename, array_of_series_names, array_of_series_value_arrays)
File.open("gle/#{filename}.gle", "w") do |file|
file.write bar_src(filename, *generate_bar_src_params(array_of_series_names, array_of_series_value_arrays))
end
July 31, 2007
8:30AM EDT
by Ana Nelson
View more (99 lines)
## colorbar.gle ! Requires 4.0.13 size 12 8
July 30, 2007
10:33AM EDT
by Ana Nelson
View more (78 lines)
## colorbar.gle ! Requires 4.0.13 size 12 8
July 30, 2007
7:21AM EDT
by Ana Nelson
View more (48 lines)
## colorbar.gle size 12 8 set font ss include "barstyles.gle"
