Skip to content

Commit 2b8017d

Browse files
version 1.0
1 parent a2221eb commit 2b8017d

122 files changed

Lines changed: 12278 additions & 6227 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.nojekyll

Whitespace-only changes.

404.html

Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
<!DOCTYPE HTML>
2+
<html lang="en" class="sidebar-visible no-js light">
3+
<head>
4+
<!-- Book generated using mdBook -->
5+
<meta charset="UTF-8">
6+
<title></title>
7+
8+
9+
<base href="/learn_ruby_oneliners/">
10+
11+
12+
13+
<!-- Custom HTML head -->
14+
15+
16+
17+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
18+
<meta name="description" content="Example based guide for text processing with ruby from the command line">
19+
<meta name="viewport" content="width=device-width, initial-scale=1">
20+
<meta name="theme-color" content="#ffffff" />
21+
22+
23+
<link rel="icon" href="favicon.svg">
24+
25+
26+
<link rel="shortcut icon" href="favicon.png">
27+
28+
<link rel="stylesheet" href="css/variables.css">
29+
<link rel="stylesheet" href="css/general.css">
30+
<link rel="stylesheet" href="css/chrome.css">
31+
<link rel="stylesheet" href="css/print.css" media="print">
32+
33+
<!-- Fonts -->
34+
<link rel="stylesheet" href="FontAwesome/css/font-awesome.css">
35+
36+
<link rel="stylesheet" href="fonts/fonts.css">
37+
38+
39+
<!-- Highlight.js Stylesheets -->
40+
<link rel="stylesheet" href="highlight.css">
41+
<link rel="stylesheet" href="tomorrow-night.css">
42+
<link rel="stylesheet" href="ayu-highlight.css">
43+
44+
<!-- Custom theme stylesheets -->
45+
46+
<link rel="stylesheet" href="custom.css">
47+
48+
49+
50+
</head>
51+
<body>
52+
<!-- Provide site root to javascript -->
53+
<script type="text/javascript">
54+
var path_to_root = "";
55+
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "navy" : "light";
56+
</script>
57+
58+
<!-- Work around some values being stored in localStorage wrapped in quotes -->
59+
<script type="text/javascript">
60+
try {
61+
var theme = localStorage.getItem('mdbook-theme');
62+
var sidebar = localStorage.getItem('mdbook-sidebar');
63+
64+
if (theme.startsWith('"') && theme.endsWith('"')) {
65+
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1));
66+
}
67+
68+
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
69+
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1));
70+
}
71+
} catch (e) { }
72+
</script>
73+
74+
<!-- Set the theme before any content is loaded, prevents flash -->
75+
<script type="text/javascript">
76+
var theme;
77+
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
78+
if (theme === null || theme === undefined) { theme = default_theme; }
79+
var html = document.querySelector('html');
80+
html.classList.remove('no-js')
81+
html.classList.remove('light')
82+
html.classList.add(theme);
83+
html.classList.add('js');
84+
</script>
85+
86+
<!-- Hide / unhide sidebar before it is displayed -->
87+
<script type="text/javascript">
88+
var html = document.querySelector('html');
89+
var sidebar = 'hidden';
90+
if (document.body.clientWidth >= 1080) {
91+
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
92+
sidebar = sidebar || 'visible';
93+
}
94+
html.classList.remove('sidebar-visible');
95+
html.classList.add("sidebar-" + sidebar);
96+
</script>
97+
98+
<nav id="sidebar" class="sidebar" aria-label="Table of contents">
99+
<div class="sidebar-scrollbox">
100+
<ol class="chapter"><li class="chapter-item expanded affix "><a href="cover.html">Cover</a></li><li class="chapter-item expanded affix "><a href="buy.html">Buy PDF/EPUB versions</a></li><li class="chapter-item expanded "><a href="preface.html"><strong aria-hidden="true">1.</strong> Preface</a></li><li class="chapter-item expanded "><a href="one-liner-introduction.html"><strong aria-hidden="true">2.</strong> One-liner introduction</a></li><li class="chapter-item expanded "><a href="line-processing.html"><strong aria-hidden="true">3.</strong> Line processing</a></li><li class="chapter-item expanded "><a href="field-separators.html"><strong aria-hidden="true">4.</strong> Field separators</a></li><li class="chapter-item expanded "><a href="record-separators.html"><strong aria-hidden="true">5.</strong> Record separators</a></li><li class="chapter-item expanded "><a href="multiple-file-input.html"><strong aria-hidden="true">6.</strong> Multiple file input</a></li><li class="chapter-item expanded "><a href="processing-multiple-records.html"><strong aria-hidden="true">7.</strong> Processing multiple records</a></li><li class="chapter-item expanded "><a href="two-file-processing.html"><strong aria-hidden="true">8.</strong> Two file processing</a></li><li class="chapter-item expanded "><a href="dealing-with-duplicates.html"><strong aria-hidden="true">9.</strong> Dealing with duplicates</a></li><li class="chapter-item expanded "><a href="processing-structured-data.html"><strong aria-hidden="true">10.</strong> Processing structured data</a></li><li class="chapter-item expanded "><a href="Exercise_solutions.html"><strong aria-hidden="true">11.</strong> Exercise Solutions</a></li></ol>
101+
</div>
102+
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
103+
</nav>
104+
105+
<div id="page-wrapper" class="page-wrapper">
106+
107+
<div class="page">
108+
109+
<div id="menu-bar-hover-placeholder"></div>
110+
<div id="menu-bar" class="menu-bar sticky bordered">
111+
<div class="left-buttons">
112+
<button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
113+
<i class="fa fa-bars"></i>
114+
</button>
115+
<button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list">
116+
<i class="fa fa-paint-brush"></i>
117+
</button>
118+
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
119+
<li role="none"><button role="menuitem" class="theme" id="light">Light (default)</button></li>
120+
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li>
121+
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
122+
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li>
123+
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li>
124+
</ul>
125+
126+
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar">
127+
<i class="fa fa-search"></i>
128+
</button>
129+
130+
</div>
131+
132+
<h1 class="menu-title">Ruby one-liners cookbook</h1>
133+
134+
<div class="right-buttons">
135+
136+
<a href="https://github.com/learnbyexample/learn_ruby_oneliners" title="Git repository" aria-label="Git repository">
137+
<i id="git-repository-button" class="fa fa-github"></i>
138+
</a>
139+
140+
</div>
141+
</div>
142+
143+
144+
<div id="search-wrapper" class="hidden">
145+
<form id="searchbar-outer" class="searchbar-outer">
146+
<input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
147+
</form>
148+
<div id="searchresults-outer" class="searchresults-outer hidden">
149+
<div id="searchresults-header" class="searchresults-header"></div>
150+
<ul id="searchresults">
151+
</ul>
152+
</div>
153+
</div>
154+
155+
156+
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM -->
157+
<script type="text/javascript">
158+
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible');
159+
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible');
160+
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) {
161+
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1);
162+
});
163+
</script>
164+
165+
<div id="content" class="content">
166+
<main>
167+
<h1><a class="header" href="#document-not-found-404" id="document-not-found-404">Document not found (404)</a></h1>
168+
<p>This URL is invalid, sorry. Please use the navigation bar or search to continue.</p>
169+
170+
</main>
171+
172+
<nav class="nav-wrapper" aria-label="Page navigation">
173+
<!-- Mobile navigation buttons -->
174+
175+
176+
177+
178+
<div style="clear: both"></div>
179+
</nav>
180+
</div>
181+
</div>
182+
183+
<nav class="nav-wide-wrapper" aria-label="Page navigation">
184+
185+
186+
187+
</nav>
188+
189+
</div>
190+
191+
192+
193+
194+
195+
196+
197+
198+
<script type="text/javascript">
199+
window.playground_copyable = true;
200+
</script>
201+
202+
203+
204+
205+
206+
<script src="elasticlunr.min.js" type="text/javascript" charset="utf-8"></script>
207+
<script src="mark.min.js" type="text/javascript" charset="utf-8"></script>
208+
<script src="searcher.js" type="text/javascript" charset="utf-8"></script>
209+
210+
211+
<script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
212+
<script src="highlight.js" type="text/javascript" charset="utf-8"></script>
213+
<script src="book.js" type="text/javascript" charset="utf-8"></script>
214+
215+
<!-- Custom JS scripts -->
216+
217+
218+
219+
220+
</body>
221+
</html>

0 commit comments

Comments
 (0)