Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplekit-ruby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sanchez, Paul
simplekit-ruby
Commits
4fb2da6c
Commit
4fb2da6c
authored
13 years ago
by
pjs
Browse files
Options
Downloads
Patches
Plain Diff
Took out LOAD_PATH expansion from demos now that we're gemified
Signed-off-by:
pjs
<
pjs@alum.mit.edu
>
parent
80c3112f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
demos/MMk.rb
+1
-5
1 addition, 5 deletions
demos/MMk.rb
demos/MyModel.rb
+1
-5
1 addition, 5 deletions
demos/MyModel.rb
demos/MyModelArgs.rb
+1
-5
1 addition, 5 deletions
demos/MyModelArgs.rb
with
3 additions
and
15 deletions
demos/MMk.rb
+
1
−
5
View file @
4fb2da6c
#!/usr/bin/env ruby
#!/usr/bin/env ruby
# expand the $LOAD_PATH to find local library modules until such
require
'rubygems'
# time as SimpleKit gets turned into a Ruby Gem.
[
File
.
expand_path
(
File
.
dirname
(
__FILE__
),
'../lib'
)].
each
do
|
new_location
|
$LOAD_PATH
.
unshift
(
new_location
)
unless
$LOAD_PATH
.
include?
(
new_location
)
end
require
'simplekit'
require
'simplekit'
# Demonstration model of an M/M/k queueing system. There are k servers
# Demonstration model of an M/M/k queueing system. There are k servers
...
...
This diff is collapsed.
Click to expand it.
demos/MyModel.rb
+
1
−
5
View file @
4fb2da6c
#!/usr/bin/env ruby
#!/usr/bin/env ruby
# expand the $LOAD_PATH to find local library modules until such
require
'rubygems'
# time as this gets turned into a Ruby Gem.
[
File
.
expand_path
(
File
.
dirname
(
__FILE__
),
'../lib'
)].
each
do
|
new_location
|
$LOAD_PATH
.
unshift
(
new_location
)
unless
$LOAD_PATH
.
include?
(
new_location
)
end
require
'simplekit'
require
'simplekit'
class
MyModel
class
MyModel
...
...
This diff is collapsed.
Click to expand it.
demos/MyModelArgs.rb
+
1
−
5
View file @
4fb2da6c
#!/usr/bin/env ruby
#!/usr/bin/env ruby
# expand the $LOAD_PATH to find local library modules until such
require
'rubygems'
# time as this gets turned into a Ruby Gem.
[
File
.
expand_path
(
File
.
dirname
(
__FILE__
),
'../lib'
)].
each
do
|
new_location
|
$LOAD_PATH
.
unshift
(
new_location
)
unless
$LOAD_PATH
.
include?
(
new_location
)
end
require
'simplekit'
require
'simplekit'
class
MyModel
class
MyModel
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment