summaryrefslogtreecommitdiff
path: root/docs/tags/Code-Snippet.html
blob: b6406513d340c3751c33bd3102baa92ca1b40060 (plain)
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
<!DOCTYPE html>
<html lang="en">
<head>
    
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="theme-color" content="#6a9fb5">

    <title>"Code-Snippet"</title>

    <!--
    <link rel="stylesheet" href="https://unpkg.com/latex.css/style.min.css" /> 
    -->

    <link rel="stylesheet" href="/assets/c-hyde.css">

    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Abril+Fatface">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700">

    <link rel="stylesheet" href="/assets/main.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="og:site_name" content="Navan Chauhan">
    <link rel="canonical" href="https://web.navan.dev">
    <meta name="twitter:url" content="https://web.navan.dev">
    <meta name="og:url" content="https://web.navan.dev">
    <meta name="twitter:title" content="Hey - Home">
    <meta name="og:title" content="Hey - Home">
    <meta name="description" content="code snippets, long-form rants, and tutorials">
    <meta name="twitter:description" content="code snippets, long-form rants, and tutorials">
    <meta name="og:description" content="code snippets, long-form rants, and tutorials">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="/images/favicon.png" type="image/png">
    <link href="/feed.rss" type="application/atom+xml" rel="alternate" title="Sitewide Atom feed">
    <meta name="twitter:image" content="https://web.navan.dev/images/logo.png">
    <meta name="og:image" content="https://web.navan.dev/images/logo.png">
    <meta name="google-site-verification" content="LVeSZxz-QskhbEjHxOi7-BM5dDxTg53x2TwrjFxfL0k">
    <script data-goatcounter="https://navanchauhan.goatcounter.com/count"
        async src="//gc.zgo.at/count.js"></script>
    <script defer data-domain="web.navan.dev" src="https://plausible.io/js/plausible.js"></script>
    <link rel="manifest" href="/manifest.json">
    
</head>
<body class="theme-base-0d">
    <div class="sidebar">
    <div class="container sidebar-sticky">
        <div class="sidebar-about">
            <h1><a href="/">Navan</a></h1>
            <p class="lead" id="random-lead">Alea iacta est.</p>
        </div>

        <ul class="sidebar-nav">
            <li><a class="sidebar-nav-item" href="/about/">about/links</a></li>
            <li><a class="sidebar-nav-item" href="/posts/">posts</a></li>
            <li><a class="sidebar-nav-item" href="/3D-Designs/">3D designs</a></li>
            <li><a class="sidebar-nav-item" href="/feed.rss">RSS Feed</a></li>
            <li><a class="sidebar-nav-item" href="/colophon/">colophon</a></li>
        </ul>
        <div class="copyright"><p>&copy; 2019-2024. Navan Chauhan <br> <a href="/feed.rss">RSS</a></p></div>
    </div>
</div>

<script>
let phrases = [
    "Something Funny", "Veni, vidi, vici", "Alea iacta est", "In vino veritas", "Acta, non verba", "Castigat ridendo mores",
    "Cui bono?", "Memento vivere", "अहम् ब्रह्मास्मि", "अनुगच्छतु प्रवाहं", "चरन्मार्गान्विजानाति", "coq de cheval", "我愛啤酒"
    ];

let new_phrase = phrases[Math.floor(Math.random()*phrases.length)];

let lead = document.getElementById("random-lead");
lead.innerText = new_phrase;
</script>
    <div class="content container">
    

<main>
	<h1>Code-Snippet</h1><p>Posts tagged 'Code-Snippet'</p>
</main>

<ul>

	<li><a href="/posts/2024-02-26-control-element-under-another-element-html-css.html">Interacting with underlying element in HTML</a>
	<ul>
		<li>With CSS you can disable any interactions with an element and directly control the underlying element</li>
		<li>Published On: 2024-02-26 11:57</li>
		<li>Tags: 
			
            <a href='/tags/CSS.html'>CSS</a>, 
			
            <a href='/tags/Code-Snippet.html'>Code-Snippet</a>, 
			
            <a href='/tags/HTML.html'>HTML</a>, 
			
            <a href='/tags/Tutorial.html'>Tutorial</a>
			
	</ul>
    </li>


	<li><a href="/posts/2023-02-08-Interact-with-siri-from-the-terminal.html">Interacting with Siri using the command line</a>
	<ul>
		<li>Code snippet to interact with Siri by issuing commands from the command-line.</li>
		<li>Published On: 2023-02-08 17:21</li>
		<li>Tags: 
			
            <a href='/tags/AppleScript.html'>AppleScript</a>, 
			
            <a href='/tags/Code-Snippet.html'>Code-Snippet</a>, 
			
            <a href='/tags/Python.html'>Python</a>, 
			
            <a href='/tags/Siri.html'>Siri</a>, 
			
            <a href='/tags/Tutorial.html'>Tutorial</a>, 
			
            <a href='/tags/macOS.html'>macOS</a>
			
	</ul>
    </li>


	<li><a href="/posts/2022-12-25-blog-to-toot.html">Posting blogs as Mastodon Toots</a>
	<ul>
		<li>Cross posting blog posts to Mastodon</li>
		<li>Published On: 2022-12-25 17:32</li>
		<li>Tags: 
			
            <a href='/tags/Code-Snippet.html'>Code-Snippet</a>, 
			
            <a href='/tags/Mastodon.html'>Mastodon</a>, 
			
            <a href='/tags/Python.html'>Python</a>, 
			
            <a href='/tags/Tutorial.html'>Tutorial</a>
			
	</ul>
    </li>


	<li><a href="/posts/2020-12-1-HTML-JS-RSS-Feed.html">RSS Feed written in HTML + JavaScript</a>
	<ul>
		<li>Short code-snippet for an RSS feed, written in HTML and JavaScript</li>
		<li>Published On: 2020-12-01 20:52</li>
		<li>Tags: 
			
            <a href='/tags/Code-Snippet.html'>Code-Snippet</a>, 
			
            <a href='/tags/HTML.html'>HTML</a>, 
			
            <a href='/tags/JavaScript.html'>JavaScript</a>, 
			
            <a href='/tags/Tutorial.html'>Tutorial</a>
			
	</ul>
    </li>


	<li><a href="/posts/2020-11-17-Lets-Encrypt-DuckDns.html">Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt</a>
	<ul>
		<li>Short code-snippet to generate HTTPS certificates using the DNS Challenge through Lets Encrypt for a web-server using DuckDNS.</li>
		<li>Published On: 2020-11-17 15:04</li>
		<li>Tags: 
			
            <a href='/tags/Code-Snippet.html'>Code-Snippet</a>, 
			
            <a href='/tags/Tutorial.html'>Tutorial</a>, 
			
            <a href='/tags/Web-Development.html'>Web-Development</a>
			
	</ul>
    </li>


	<li><a href="/posts/2020-07-01-Install-rdkit-colab.html">Installing RDKit on Google Colab</a>
	<ul>
		<li>Install RDKit on Google Colab with one code snippet.</li>
		<li>Published On: 2020-07-01 14:23</li>
		<li>Tags: 
			
            <a href='/tags/Code-Snippet.html'>Code-Snippet</a>, 
			
            <a href='/tags/Colab.html'>Colab</a>, 
			
            <a href='/tags/RDKit.html'>RDKit</a>, 
			
            <a href='/tags/Tutorial.html'>Tutorial</a>
			
	</ul>
    </li>


	<li><a href="/posts/2020-06-01-Speeding-Up-Molecular-Docking-Workflow-AutoDock-Vina-and-PyMOL.html">Workflow for Lightning Fast Molecular Docking Part One</a>
	<ul>
		<li>This is my workflow for lightning fast molecular docking.</li>
		<li>Published On: 2020-06-01 13:10</li>
		<li>Tags: 
			
            <a href='/tags/AutoDock-Vina.html'>AutoDock-Vina</a>, 
			
            <a href='/tags/Cheminformatics.html'>Cheminformatics</a>, 
			
            <a href='/tags/Code-Snippet.html'>Code-Snippet</a>, 
			
            <a href='/tags/Molecular-Docking.html'>Molecular-Docking</a>, 
			
            <a href='/tags/Open-Babel.html'>Open-Babel</a>
			
	</ul>
    </li>


	<li><a href="/posts/2020-01-19-Connect-To-Bluetooth-Devices-Linux-Terminal.html">How to setup Bluetooth on a Raspberry Pi</a>
	<ul>
		<li>Connecting to Bluetooth Devices using terminal, tested on Raspberry Pi Zero W</li>
		<li>Published On: 2020-01-19 15:27</li>
		<li>Tags: 
			
            <a href='/tags/Code-Snippet.html'>Code-Snippet</a>, 
			
            <a href='/tags/Linux.html'>Linux</a>, 
			
            <a href='/tags/Raspberry-Pi.html'>Raspberry-Pi</a>
			
	</ul>
    </li>


	<li><a href="/posts/2020-01-14-Converting-between-PIL-NumPy.html">Converting between image and NumPy array</a>
	<ul>
		<li>Short code snippet for converting between PIL image and NumPy arrays.</li>
		<li>Published On: 2020-01-14 00:10</li>
		<li>Tags: 
			
            <a href='/tags/Code-Snippet.html'>Code-Snippet</a>
			
	</ul>
    </li>


	<li><a href="/posts/2019-12-10-TensorFlow-Model-Prediction.html">Making Predictions using Image Classifier (TensorFlow)</a>
	<ul>
		<li>Making predictions for image classification models built using TensorFlow</li>
		<li>Published On: 2019-12-10 11:10</li>
		<li>Tags: 
			
            <a href='/tags/AI.html'>AI</a>, 
			
            <a href='/tags/Code-Snippet.html'>Code-Snippet</a>, 
			
            <a href='/tags/Tensorflow.html'>Tensorflow</a>, 
			
            <a href='/tags/Tutorial.html'>Tutorial</a>
			
	</ul>
    </li>


	<li><a href="/posts/2019-12-08-Splitting-Zips.html">Splitting ZIPs into Multiple Parts</a>
	<ul>
		<li>Short code snippet for splitting zips.</li>
		<li>Published On: 2019-12-08 13:27</li>
		<li>Tags: 
			
            <a href='/tags/Code-Snippet.html'>Code-Snippet</a>
			
	</ul>
    </li>


</ul>


    </div>
    <script src="assets/manup.min.js"></script>
    <script src="/pwabuilder-sw-register.js"></script>    
</body>
</html>