-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
128 lines (85 loc) · 4.73 KB
/
index.html
File metadata and controls
128 lines (85 loc) · 4.73 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="Hugo 0.16" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<link rel='stylesheet' href='//fonts.googleapis.com/css?family=Open+Sans|Marcellus+SC'>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/monokai_sublime.min.css">
<link rel="stylesheet" href="http://arnavk.com/css/styles.css">
<link rel="stylesheet" href="http://arnavk.com/css/custom.css">
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://arnavk.com//index.xml">
<title>Arnav Khare</title>
<meta property='og:title' content="Arnav Khare">
<meta property="og:type" content="website">
<meta property="og:url" content="http://arnavk.com/">
</head>
<body>
<header class="site">
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://arnavk.com/">Arnav Khare</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
</div>
</div>
</nav>
</header>
<div class="site">
<div class="container">
<div class="index">
<div class="row">
<div class="col-md-8">
<article class="li">
<header>
<div class="date">Sun, Oct 15, 2017</div>
<div class="title"><a href="http://arnavk.com/posts/python-executable-modules/">Useful Executable Modules in the Python Standard Library</a></div>
</header>
<div class="body">Python comes with many handy tools that can make our lives as developers or sysadmins easier. These tools are in the form of modules and libraries that are also executable. Many of these tools are known, but not all are as well known as they should be. I will mention a few useful tools that I have found in this post. How to write an executable Python script First, for beginners, a quick introduction to how to write executable scripts in Python.</div>
<footer>
<a href="http://arnavk.com/posts/python-executable-modules/" class="btn btn-default">Read More…</a>
</footer>
</article>
<hr>
<article class="li">
<header>
<div class="date">Sat, Feb 20, 2016</div>
<div class="title"><a href="http://arnavk.com/posts/python-context-managers/">Python in the real world: Context Managers</a></div>
</header>
<div class="body"><p>Context Managers are one of the core language features that make Python unique. The <code>with</code> statement allows developers to write a common programming pattern in a concise and readable way. The following indented block gives a visual cue and make understanding the code easier. Understanding Context Managers is key to understanding the idea of <em>Pythonic</em> code.</p>
<p>Context Managers are usually used for allocation and releasing of resources, but that is not their only use-case. They are useful for factoring out common setup and teardown code, or any pair of operations that need to be performed before or after a procedure.</p>
<p>In this article, I will present some interesting real-world examples of their use, and hopefully encourage budding Pythonistas to explore them.</p>
</div>
<footer>
<a href="http://arnavk.com/posts/python-context-managers/" class="btn btn-default">Read More…</a>
</footer>
</article>
<hr>
</div>
<div class="col-md-4">
<aside class="site">
</div>
</div>
</div>
</div>
</div>
<footer class="site">
<div class="container">
<p>© 2017 Arnav Khare</p>
</div>
</footer>
<script src="//code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>