-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtesting.html
343 lines (316 loc) · 13.9 KB
/
testing.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="http://tdt.rocks/testing.html" />
<title> TDT — TEST POST
</title>
<link type="application/atom+xml" rel="alternate" href="/feed/atom.xml" title="TDT Atom Feed">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat" type="text/css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="http://tdt.rocks/theme/css/pygments.css">
<link rel="stylesheet" href="http://tdt.rocks/theme/css/style.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-71190709-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-71190709-1');
</script>
<meta name="author" content="James Nzomo">
<meta name="description" content="A simple test post...complete with a PAL test pattern and an annoying complementary 1KHz tone - just for your ears.">
<meta name="tags" contents="testing, ">
</head>
<body>
<header class="header">
<div class="container">
<div class="header-inner">
<!-- <h3 class="header-text">Thoughts & Deeds on Tech</h3> -->
<ul class="header-menu list-inline text-right">
<li><a class="nodec" href="http://tdt.rocks/categories.html">Categories</a></li>
<li class="muted">|</li>
<li><a class="nodec social-link icon-github" href="https://github.com/mrmoje" target="_blank"></a></li>
<li><a class="nodec social-link icon-twitter" href="https://twitter.com/mrmoje" target="_blank"></a></li>
<li><a class="nodec social-link icon-rss" href="http://tdt.rocks/feed/atom.xml" target="_blank"></a></li>
<li><a class="nodec social-link icon-stackoverflow" href="https://stackoverflow.com/users/1002644/moje" target="_blank"></a></li>
</ul>
<h1 class="header-name">
<a id="sitename" class="nodec" href="http://tdt.rocks">TDT</a>
</h1>
</div>
</div>
</header> <!-- /.header --> <div class="container">
<div class="post full-post">
<h1 class="post-title">
<a href="/testing.html" title="Permalink to TEST POST">TEST POST</a>
</h1>
<hr>
<ul class="list-inline">
<li class="post-date">
<a class="text-muted" href="/testing.html" title="1969-12-31T23:59:59+03:00">December 31, 1969</a>
</li>
<li class="muted">·</li>
<li class="post-category">
<a href="http://tdt.rocks/category/testing.html">Testing</a>
</li>
<li class="muted">·</li>
<li>
<a href="/tag/testing.html">testing</a> </li>
<li class="muted">·</li>
<li>
<address class="post-author">
By <a href="http://tdt.rocks/author/james-nzomo.html">James Nzomo</a>
</address>
</li>
</ul>
<div class="post-content">
<p><center>
<img alt="PM5544" src="https://upload.wikimedia.org/wikipedia/commons/c/c4/PM5544_with_non-PAL_signals.png"></p>
<h2>Problem? → <button onclick=osc.stop()>STFU!</button></h2>
<p></center></p>
<script type="text/javascript">
var context = new AudioContext();
var osc = context.createOscillator();
var vol = context.createGain();
osc.frequency.value = 1000;
vol.gain.value = 0.1;
osc.connect(vol);
vol.connect(context.destination);
osc.start(0);
// Problem?
//osc.stop();
</script>
<hr>
<h1>TEST CONTENT</h1>
<p>with placeholder text generated at <a href="http://slipsum.com/">Samuel L. Ipsum</a></p>
<h1>H1</h1>
<h2>H2</h2>
<h3>H3</h3>
<h4>H4</h4>
<h5>H5</h5>
<h6>H6</h6>
<h1>Underline-H1</h1>
<h2>Underline-H2</h2>
<h3>Formatting</h3>
<p>Asterisks -> <em>Italic</em>, <strong>bold</strong>, <strong><em>bold italic</em></strong><br>
Underscores -> <em>Italic</em>, <strong>bold</strong>, <strong><em>bold italic</em></strong><br>
<code>monospace</code><br>
~~~strikethrough text~~~</p>
<h3>Paragraph one</h3>
<p>Now that there is the Tec-9, a crappy spray gun from South Miami. This gun is
advertised as the most popular gun in American crime. Do you believe that shit?
It actually says that in the little book that comes with it: the most popular
gun in American crime. Like they're actually proud of that shit.</p>
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4
5
6</pre></div></td><td class="code"><div class="highlight"><pre><span></span><code><span class="c1">//function sets</span>
<span class="kt">void</span> <span class="nf">set_portAbit</span><span class="p">(</span><span class="kt">unsigned</span> <span class="kt">char</span> <span class="n">bt</span><span class="p">,</span> <span class="kt">bool</span> <span class="n">val</span><span class="p">)</span>
<span class="p">{</span>
<span class="n">val</span> <span class="o">?</span> <span class="p">(</span> <span class="n">sPORTA</span> <span class="o">|=</span> <span class="mi">1</span> <span class="o"><<</span> <span class="n">bt</span> <span class="p">)</span> <span class="o">:</span> <span class="p">(</span> <span class="n">sPORTA</span> <span class="o">&=</span> <span class="o">~</span><span class="p">(</span><span class="mi">1</span> <span class="o"><<</span> <span class="n">bt</span><span class="p">)</span> <span class="p">);</span>
<span class="n">PORTA</span> <span class="o">=</span> <span class="n">sPORTA</span><span class="p">;</span>
<span class="p">}</span>
</code></pre></div>
</td></tr></table>
<h3>Paragraph two</h3>
<p>Well, the way they make shows is, they make one show. That show's called a pilot.
Then they show that show to the people who make shows, and on the strength of
that one show they decide if they're going to make more shows. Some pilots get
picked and become television programs. Some don't, become nothing.
She starred in one of the ones that became nothing.</p>
<h3>Paragraph three block quotes</h3>
<blockquote>
<p>Your bones don't break, mine do. That's clear. Your cells react to bacteria and
viruses differently than mine. You don't get sick, I do. That's also clear. But
for some reason, you and I react the exact same way to water. We swallow it too
fast, we choke. We get some in our lungs, we drown. However unreal it may seem,
we are connected, you and I. We're on the same curve, just on opposite ends.</p>
</blockquote>
<h3>Longer Code block</h3>
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55</pre></div></td><td class="code"><div class="highlight"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><xc.h></span><span class="cp"></span>
<span class="cp">#include</span> <span class="cpf"><stdio.h></span><span class="cp"></span>
<span class="cp">#include</span> <span class="cpf"><stdbool.h></span><span class="cp"></span>
<span class="cp">#include</span> <span class="cpf"><string.h></span><span class="cp"></span>
<span class="cp">#include</span> <span class="cpf"><ctype.h></span><span class="cp"></span>
<span class="c1">// #pragma config statements should precede project file includes.</span>
<span class="c1">// Use project enums instead of #define for ON and OFF.</span>
<span class="c1">// CONFIG</span>
<span class="cp">#pragma config FOSC = INTOSCIO </span><span class="c1">// Oscillator Selection bits (INTOSC oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN)</span>
<span class="cp">#pragma config WDTE = OFF </span><span class="c1">// Watchdog Timer Enable bit (WDT disabled)</span>
<span class="cp">#pragma config PWRTE = ON </span><span class="c1">// Power-up Timer Enable bit (PWRT enabled)</span>
<span class="cp">#pragma config MCLRE = ON </span><span class="c1">// RA5/MCLR/VPP Pin Function Select bit (RA5/MCLR/VPP pin function is MCLR)</span>
<span class="cp">#pragma config BOREN = ON </span><span class="c1">// Brown-out Detect Enable bit (BOD enabled)</span>
<span class="cp">#pragma config LVP = OFF </span><span class="c1">// Low-Voltage Programming Enable bit (RB4/PGM pin has digital I/O function, HV on MCLR must be used for programming)</span>
<span class="cp">#pragma config CPD = OFF </span><span class="c1">// Data EE Memory Code Protection bit (Data memory code protection off)</span>
<span class="cp">#pragma config CP = OFF </span><span class="c1">// Flash Program Memory Code Protection bit (Code protection off)</span>
<span class="cp">#define DEBUG</span>
<span class="cp">#define _XTAL_FREQ 4000000 </span><span class="c1">// needed by some macros</span>
<span class="cp">#define FCY _XTAL_FREQ/4</span>
<span class="c1">// Comm Setup</span>
<span class="cp">#define BAUDRATE 1200</span>
<span class="cp">#define BUZZER_PIN RB5</span>
<span class="cp">#define TOGGLE_BUZZER_PIN BUZZER_PIN = ~BUZZER_PIN;</span>
<span class="c1">//Globals</span>
<span class="kt">unsigned</span> <span class="kt">char</span>
<span class="n">receive_buffer</span><span class="p">[</span><span class="mi">5</span><span class="p">],</span> <span class="c1">//cmd reveive buffer</span>
<span class="n">sPORTA</span><span class="p">;</span> <span class="c1">//PORTA Shadow register</span>
<span class="c1">//Prototypes</span>
<span class="kt">void</span>
<span class="nf">BOARD_init</span><span class="p">(</span><span class="kt">void</span><span class="p">),</span>
<span class="n">USART_putc</span><span class="p">(</span><span class="kt">unsigned</span> <span class="kt">char</span><span class="p">),</span>
<span class="n">buzz_ok</span><span class="p">(</span><span class="kt">void</span><span class="p">),</span>
<span class="n">buzz_error</span><span class="p">(</span><span class="kt">void</span><span class="p">),</span>
<span class="n">set_portAbit</span><span class="p">(</span><span class="kt">unsigned</span> <span class="kt">char</span> <span class="n">bt</span><span class="p">,</span> <span class="kt">bool</span> <span class="n">val</span><span class="p">);</span>
<span class="kt">void</span> <span class="n">interrupt</span> <span class="nf">ISR</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
<span class="kt">unsigned</span> <span class="kt">char</span> <span class="nf">USART_getc</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
<span class="c1">// Main function</span>
<span class="kt">void</span> <span class="nf">main</span><span class="p">()</span>
<span class="p">{</span>
<span class="n">BOARD_init</span><span class="p">();</span>
<span class="n">printf</span><span class="p">(</span><span class="s">"INIT!</span><span class="se">\r\n</span><span class="s">"</span><span class="p">);</span>
<span class="n">buzz_ok</span><span class="p">();</span>
<span class="k">while</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span>
<span class="p">}</span>
</code></pre></div>
</td></tr></table>
<hr>
<p>List of Links:</p>
<ul>
<li><a href="http://tdt.rocks">TDT</a></li>
<li><a href="http://kili.io">KILI</a></li>
<li><a href="http://nairobilug.or.ke">NLUG</a></li>
</ul>
<hr>
<p>Numbered list of links:</p>
<ol>
<li><a href="http://www.meetup.com/OpenStack-Nairobi/">Openstack Nairobi</a></li>
<li><a href="http://www.meetup.com/Python-Nairobi/">Python Nairobi</a></li>
</ol>
<hr>
<p>Nested list:</p>
<ol>
<li>
<p>Openstack Nairobi</p>
<ul>
<li>http://www.meetup.com/OpenStack-Nairobi</li>
<li>https://wiki.openstack.org/wiki/Main_Page</li>
</ul>
</li>
<li>
<p>Python Nairobi</p>
<ul>
<li>http://www.meetup.com/Python-Nairobi</li>
<li>https://github.com/Python-Nairobi</li>
</ul>
</li>
</ol>
</div>
</div>
<hr class="separator">
<div>
<div id="disqus_thread">
<script>
var disqus_shortname = 'tdtrocks';
(function() {
var dsq = document.createElement('script');
dsq.type = 'text/javascript';
dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>
Please enable JavaScript to view the
<a href="https://disqus.com/?ref_noscript=tdtrocks">
comments powered by Disqus.
</a>
</noscript>
<a href="https://disqus.com" class="dsq-brlink">
blog comments powered by <span class="logo-disqus">Disqus</span>
</a>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<p class="text-center">
©Twenny Nineteen - James Nzomo, <a href="" target="_blank"></a> unless otherwise noted.
</p>
<div class="text-center">
Generated by <a href="http://getpelican.com" target="_blank">Pelican</a>
with a <a href="http://github.com/mrmoje/pelican-alchemy" target="_blank">copy-pasta</a>
of <a href="https://nairobilug.or.ke" target="_blank" >NairobiLUG's</a>
<a href="http://github.com/nairobilug/pelican-alchemy" target="_blank">alchemy</a> theme, <br/>
which inturn is a copy-pasta of Porter's <a href="https://github.com/porterjamesj/crowsfoot" target="_blank">crowsfoot</a> theme. <br/>
--- end of <a href="//tdt.rocks/pages/glossary#google-juice">google juice</a> ---.
</div>
</div>
</footer> <!-- /.footer -->
<script src="http://tdt.rocks/theme/js/jquery.min.js"></script>
<script src="http://tdt.rocks/theme/js/bootstrap.min.js"></script>
</body> <!-- 42 -->
</html>