CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Tue, 02 Sep 2025 04:45:57 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090101065817
location: https://web.archive.org/web/20090101065817/https://github.com/joshsusser/range_set/tree
server-timing: captures_list;dur=1.379892, exclusion.robots;dur=0.041377, exclusion.robots.policy;dur=0.018988, esindex;dur=0.023883, cdx.remote;dur=26.339717, LoadShardBlock;dur=214.811582, PetaboxLoader3.datanode;dur=76.712083, PetaboxLoader3.resolve;dur=78.922581
x-app-server: wwwb-app218
x-ts: 302
x-tr: 366
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app218; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 301
server: nginx
date: Tue, 02 Sep 2025 04:45:59 GMT
content-type: text/html; charset=utf-8
content-length: 116
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Thu, 01 Jan 2009 06:58:15 GMT
x-archive-orig-connection: close
x-archive-orig-status: 301 Moved Permanently
location: https://web.archive.org/web/20090101065817/https://github.com/joshsusser/range_set/tree/master
x-archive-orig-x-runtime: 282ms
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 116
cache-control: max-age=1800
memento-datetime: Thu, 01 Jan 2009 06:58:17 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 14 Mar 2008 13:04:40 GMT", ; rel="prev memento"; datetime="Fri, 14 Mar 2008 13:04:40 GMT", ; rel="memento"; datetime="Thu, 01 Jan 2009 06:58:17 GMT", ; rel="last memento"; datetime="Thu, 01 Jan 2009 06:58:17 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_7_20090101025314_crawl103-c/52_7_20090101065727_crawl103.arc.gz
server-timing: captures_list;dur=0.694964, exclusion.robots;dur=0.028633, exclusion.robots.policy;dur=0.013303, esindex;dur=0.013564, cdx.remote;dur=64.545564, LoadShardBlock;dur=1218.834821, PetaboxLoader3.datanode;dur=212.579887, PetaboxLoader3.resolve;dur=206.151359, load_resource;dur=197.024014
x-app-server: wwwb-app218
x-ts: 301
x-tr: 1511
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Tue, 02 Sep 2025 04:46:00 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Thu, 01 Jan 2009 06:58:17 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 1992ms
x-archive-orig-etag: "96b4a14d17450310277e2c151d3da9ef"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 13900
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 01 Jan 2009 06:58:17 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 14 Mar 2008 00:44:23 GMT", ; rel="prev memento"; datetime="Wed, 23 Apr 2008 04:02:21 GMT", ; rel="memento"; datetime="Thu, 01 Jan 2009 06:58:17 GMT", ; rel="next memento"; datetime="Sat, 03 Jan 2009 05:58:10 GMT", ; rel="last memento"; datetime="Thu, 24 Mar 2016 10:59:37 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_7_20090101025314_crawl103-c/52_7_20090101065727_crawl103.arc.gz
server-timing: captures_list;dur=0.629660, exclusion.robots;dur=0.023492, exclusion.robots.policy;dur=0.010669, esindex;dur=0.012685, cdx.remote;dur=37.631992, LoadShardBlock;dur=200.535405, PetaboxLoader3.resolve;dur=153.674316, PetaboxLoader3.datanode;dur=160.558045, load_resource;dur=129.601888
x-app-server: wwwb-app218
x-ts: 200
x-tr: 424
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
joshsusser's range_set at master — GitHub
We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | class that supports set operations on ranges. some of my first ruby code, so be warned. |
Clone URL: |
git://github.com/joshsusser/range_set.git
Give this clone URL to anyone.
git clone git://github.com/joshsusser/range_set.git
|
name | age | message | |
---|---|---|---|
![]() |
README.markdown | Sun Mar 09 22:06:53 -0700 2008 | it helps to commit the changes [joshsusser] |
![]() |
Rakefile | Sun Mar 09 21:27:56 -0700 2008 | added Rakefile and default test task, fixed req... [joshsusser] |
![]() |
lib/ | Fri Mar 07 16:57:52 -0800 2008 | maxs and mins [Tim Connor] |
![]() |
test/ | Sun Mar 09 22:06:53 -0700 2008 | it helps to commit the changes [joshsusser] |
README.markdown
RangeSet
The RangeSet library provides the ability to do set operations on ranges. It comprises an extension to the Range class and a new RangeSet class. Supported set operations are union, intersection and subtraction. Does not work well with ranges with excluded endpoints.
# union:
(1..4) | (3..6) # => 1..6
(1..2) | (3..4) # => [1..2, 3..4]
# intersection:
(1..2) & (3..4) # => nil
(1..4) & (3..6) # => 3..4
RangeSet.new(2..4, 7..9) & (3..8) # => [3..4, 7..8]
# subtraction:
(2..3) - (1..4) # => nil
(1..4) - (3..5) # => 1..3
(1..6) - (3..4) # => [1..3, 4..6]
Source Code
Main repository is at https://github.com/joshsusser/rangeset](https://github.com/joshsusser/rangeset)
Contributors
This feature is coming soon. Sit tight!