Finish updating example site
Edit README
This commit is contained in:
Nishanth Shanmugham
2015-11-01 15:20:59 -06:00
parent d4353d39e9
commit 8e82ba2d21
42 changed files with 51 additions and 2809 deletions

View File

@@ -27,4 +27,3 @@ Initials = "ns" # displayed on single post page
Lang = "en"
LinkedIn = "//linkedin.com/in/nshanmugham"
Twitter = "//twitter.com/nshanmugham"
# WebfontsFile = "css/proximanova.css"

View File

@@ -11,7 +11,7 @@ I love soccer and mediterranean food. You can find recent open source work on <a
Please feel free to get in touch at <a href="mailto:nishanths@utexas.edu">nishanths@utexas.edu</a>.
<img src="//s.gravatar.com/avatar/9e766e4880d9a79fd1244c1b04dc31fe?size=4096&default=retro" class="profile">
<img src="//placehold.it/1000x1000" class="profile">
<br />

View File

@@ -10,6 +10,6 @@ This website is the place where I write about JavaScript, git, and tech. It is a
The site is built with <a target="_blank" href="//gohugo.io">Hugo</a>—a static site generator made with Go and is hosted on GitHub Pages. The website <a target="_blank" href="//github.com/nishanths/nishanths.me">source code</a> is available on GitHub. It uses the <a target="_blank" href="//github.com/nishanths/cocoa-hugo-theme">cocoa</a> theme. The posts are written in Markdown.
The primary font face is Proxima Nova and the monospace font face is Ubuntu Mono. The social icons are from the Ionicons font set. CSS classes for code syntax highlighting are inserted during compile-time by Hugo using Pygments.
The primary font face is Open Sans and the monospace font face is Ubuntu Mono. The social icons are from the Ionicons font set. CSS classes for code syntax highlighting are inserted during compile-time by Hugo using Pygments.
If you find errors, [please let me know](https://github.com/nishanths/nishanths.me/issues/new).
If you find errors, [please let me know](/).

View File

@@ -1,7 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="refresh" content="0;url=//cl.ly/0v2m3E0c0p2t/shanmugham-resume.pdf"/>
</head>
</html>

View File

View File

View File

@@ -1,137 +0,0 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="Eat, sleep, code, repeat.">
<base href="http://localhost:1313/">
<title>
404 Page not found
</title>
<link rel="canonical" href="http://localhost:1313/404/">
<script type="text/javascript">
var baseUrl = 'http:\/\/localhost:1313\/';
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
window.location.protocol = 'https:';
}
</script>
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
<link rel="shortcut icon"
href="http://localhost:1313/img/leaf.ico"
>
</head>
<body lang="en">
<div class="section header">
<div class="container">
<div class="content">
<nav>
<ul>
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
<a href="http://localhost:1313/about/"><li>About</li></a>
<a href="http://localhost:1313/code/"><li>Code</li></a>
</ul>
</nav>
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
</div>
</div>
</div>
<div class="section icons">
<div class="container">
<div class="content">
<a href="//github.com/nishanths" target="_blank">
<i class="icon ion-social-github"></i>
</a>
<a href="//twitter.com/nshanmugham" target="_blank">
<i class="icon ion-social-twitter"></i>
</a>
<a href="//linkedin.com/in/nshanmugham" target="_blank">
<i class="icon ion-social-linkedin"></i>
</a>
<a href="mailto:nishanths@utexas.edu">
<i class="icon ion-ios-email larger"></i>
</a>
</div>
</div>
</div>
<div class="section main">
<div class="container f04">
<div class="content">
<div class="num">404</div>
<div class="detail">Sorry, this page does not exist.</div>
<div class="suggestion"><a href="http://localhost:1313/">Visit home page</a></div>
</div>
</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-61427501-2");
pageTracker._trackPageview();
} catch(err) {}
</script>
<script>document.write('<script src="http://'
+ (location.host || 'localhost').split(':')[0]
+ ':1313/livereload.js?mindelay=10"></'
+ 'script>')</script></body>
</html>

View File

@@ -1,8 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<link rel="canonical" href="http://localhost:1313/colophon"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="refresh" content="0;url=/colophon"/>
</head>
</html>

View File

@@ -1,154 +0,0 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="Eat, sleep, code, repeat.">
<base href="http://localhost:1313/">
<title>
About
</title>
<link rel="canonical" href="http://localhost:1313/about/">
<script type="text/javascript">
var baseUrl = 'http:\/\/localhost:1313\/';
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
window.location.protocol = 'https:';
}
</script>
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
<link rel="shortcut icon"
href="http://localhost:1313/img/leaf.ico"
>
</head>
<body lang="en">
<div class="section header">
<div class="container">
<div class="content">
<nav>
<ul>
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
<a href="http://localhost:1313/about/"><li>About</li></a>
<a href="http://localhost:1313/code/"><li>Code</li></a>
</ul>
</nav>
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
</div>
</div>
</div>
<div class="section icons">
<div class="container">
<div class="content">
<a href="//github.com/nishanths" target="_blank">
<i class="icon ion-social-github"></i>
</a>
<a href="//twitter.com/nshanmugham" target="_blank">
<i class="icon ion-social-twitter"></i>
</a>
<a href="//linkedin.com/in/nshanmugham" target="_blank">
<i class="icon ion-social-linkedin"></i>
</a>
<a href="mailto:nishanths@utexas.edu">
<i class="icon ion-ios-email larger"></i>
</a>
</div>
</div>
</div>
<div class="section main">
<div class="container">
<div class="content">
<div class="page-heading">
About
</div>
<div class="markdown">
<p>I&rsquo;m a software engineer and student at UT Austin. I primarily program in JavaScript. I currently work at Evernote. I also teach a web development class as part of <a href="//cs.utexas.edu/users/mad">MAD</a>, a computer science campus organization.</p>
<p>I love soccer and mediterranean food. You can find recent open source work on <a target="_blank" href="//github.com/nishanths">GitHub</a>.</p>
<p>Please feel free to get in touch at <a href="mailto:nishanths@utexas.edu">nishanths@utexas.edu</a>.</p>
<p><img src="//s.gravatar.com/avatar/9e766e4880d9a79fd1244c1b04dc31fe?size=4096&default=retro" class="profile"></p>
<p><br /></p>
<p><a href="colophon/">About this site</a></p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-61427501-2");
pageTracker._trackPageview();
} catch(err) {}
</script>
<script>document.write('<script src="http://'
+ (location.host || 'localhost').split(':')[0]
+ ':1313/livereload.js?mindelay=10"></'
+ 'script>')</script></body>
</html>

View File

@@ -1,8 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<link rel="canonical" href="http://localhost:1313/posts"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="refresh" content="0;url=/posts"/>
</head>
</html>

View File

@@ -1,158 +0,0 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="Eat, sleep, code, repeat.">
<base href="http://localhost:1313/">
<title>
Code
</title>
<link rel="canonical" href="http://localhost:1313/code/">
<script type="text/javascript">
var baseUrl = 'http:\/\/localhost:1313\/';
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
window.location.protocol = 'https:';
}
</script>
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
<link rel="shortcut icon"
href="http://localhost:1313/img/leaf.ico"
>
</head>
<body lang="en">
<div class="section header">
<div class="container">
<div class="content">
<nav>
<ul>
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
<a href="http://localhost:1313/about/"><li>About</li></a>
<a href="http://localhost:1313/code/"><li>Code</li></a>
</ul>
</nav>
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
</div>
</div>
</div>
<div class="section icons">
<div class="container">
<div class="content">
<a href="//github.com/nishanths" target="_blank">
<i class="icon ion-social-github"></i>
</a>
<a href="//twitter.com/nshanmugham" target="_blank">
<i class="icon ion-social-twitter"></i>
</a>
<a href="//linkedin.com/in/nshanmugham" target="_blank">
<i class="icon ion-social-linkedin"></i>
</a>
<a href="mailto:nishanths@utexas.edu">
<i class="icon ion-ios-email larger"></i>
</a>
</div>
</div>
</div>
<div class="section main">
<div class="container">
<div class="content">
<div class="page-heading">
Code
</div>
<div class="markdown">
<ul>
<li><a href="https://github.com/nishanths/iterators.js">iterators.js</a>: Useful functional iterators for node and the browser</li>
<li><a href="https://github.com/nishanths/spitfire-live">Spitfire</a>: HackTX 2015, Winner a real-time rhyming assistant</li>
<li><a href="https://github.com/nishanths/markdown-viewer-component">markdown-viewer-component</a>: Web Component that renders Markdown placed inside an element as HTML</li>
<li><a href="https://github.com/nishanths/cocoa-hugo-theme">cocoa-hugo-theme</a>: Distraction-free reading theme for Hugo, the static site generator</li>
<li><a href="https://github.com/nishanths/slack-texts">slack-texts</a>: Important channel messages also sent to your phone via SMS</li>
<li><a href="https://github.com/nishanths/YWeatherAPI">YWeatherAPI</a>: Powerful Yahoo! Weather API wrapper for Mac and iOS</li>
<li><a href="https://github.com/utcsmad/umad-website-2015">uMAD 2015</a>: Website for the student developer conference built with Middleman</li>
<li><a href="https://github.com/nishanths/what-s-playing">What&rsquo;s Playing</a>: Desktop notifications for online music playback changes</li>
<li><a href="https://github.com/nishanths/QuickCal">QuickCal</a>: Highlight and add dates from any website to Google Calendar</li>
<li><a href="https://github.com/nishanths/youtube-pause-chrome">YouTube Pause</a>: Spacebar pauses the video instead of scrolling down the page. <a href="http://www.cnet.com/how-to/chrome-pause-youtube-videos-with-the-spacebar/">CNET</a></li>
<li><a href="https://duckduckgo.com/?q=ISBN+number+0-06-250217-4&amp;ia=books">ISBN Search</a>: DuckDuckGo module to lookup book information by ISBN</li>
<li><a href="https://duckduckgo.com/?q=html+encode+the+paragraph+sign&amp;ia=answer">HTML Entities Encoder &amp;</a> <a href="https://duckduckgo.com/?q=decoded+html+for+%26%23x00a5%3B&amp;ia=answer">Decoder</a>: Encode and decode HTML entities on DuckDuckGo using natural queries</li>
<li><a href="https://github.com/nishanths/auto-browser">Auto-Browser</a>: HackTX 2014, Top 10</li>
</ul>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-61427501-2");
pageTracker._trackPageview();
} catch(err) {}
</script>
<script>document.write('<script src="http://'
+ (location.host || 'localhost').split(':')[0]
+ ':1313/livereload.js?mindelay=10"></'
+ 'script>')</script></body>
</html>

View File

@@ -1,150 +0,0 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="Eat, sleep, code, repeat.">
<base href="http://localhost:1313/">
<title>
About This Site
</title>
<link rel="canonical" href="http://localhost:1313/colophon/">
<script type="text/javascript">
var baseUrl = 'http:\/\/localhost:1313\/';
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
window.location.protocol = 'https:';
}
</script>
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
<link rel="shortcut icon"
href="http://localhost:1313/img/leaf.ico"
>
</head>
<body lang="en">
<div class="section header">
<div class="container">
<div class="content">
<nav>
<ul>
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
<a href="http://localhost:1313/about/"><li>About</li></a>
<a href="http://localhost:1313/code/"><li>Code</li></a>
</ul>
</nav>
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
</div>
</div>
</div>
<div class="section icons">
<div class="container">
<div class="content">
<a href="//github.com/nishanths" target="_blank">
<i class="icon ion-social-github"></i>
</a>
<a href="//twitter.com/nshanmugham" target="_blank">
<i class="icon ion-social-twitter"></i>
</a>
<a href="//linkedin.com/in/nshanmugham" target="_blank">
<i class="icon ion-social-linkedin"></i>
</a>
<a href="mailto:nishanths@utexas.edu">
<i class="icon ion-ios-email larger"></i>
</a>
</div>
</div>
</div>
<div class="section main">
<div class="container">
<div class="content">
<div class="page-heading">
About This Site
</div>
<div class="markdown">
<p>This website is the place where I write about JavaScript, git, and tech. It is also a personal homepage.</p>
<p>The site is built with <a target="_blank" href="//gohugo.io">Hugo</a>—a static site generator made with Go and is hosted on GitHub Pages. The website <a target="_blank" href="//github.com/nishanths/nishanths.me">source code</a> is available on GitHub. It uses the <a target="_blank" href="//github.com/nishanths/cocoa-hugo-theme">cocoa</a> theme. The posts are written in Markdown.</p>
<p>The primary font face is Proxima Nova and the monospace font face is Ubuntu Mono. The social icons are from the Ionicons font set. CSS classes for code syntax highlighting are inserted during compile-time by Hugo using Pygments.</p>
<p>If you find errors, <a href="https://github.com/nishanths/nishanths.me/issues/new">please let me know</a>.</p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-61427501-2");
pageTracker._trackPageview();
} catch(err) {}
</script>
<script>document.write('<script src="http://'
+ (location.host || 'localhost').split(':')[0]
+ ':1313/livereload.js?mindelay=10"></'
+ 'script>')</script></body>
</html>

View File

@@ -1,691 +0,0 @@
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,400italic,700,700italic);
@import url(https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css);
@import url(https://fonts.googleapis.com/css?family=Raleway:700);
.dark {
color: #444 !important;
}
.light {
color: #999 !important;
}
.accent {
color: #f46d2c !important;
}
@media (min-width: 550px) {
.small-screens-only {
display: none;
}
}
.large-screens-only {
display: none;
}
@media (min-width: 550px) {
.large-screens-only {
display: initial;
}
}
*,
*:before,
*:after {
box-sizing: border-box;
}
a,
a:visited,
a:focus,
a:active {
text-decoration: none;
}
html {
height: 100%;
font-size: 16px;
}
body {
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: -ms-flex;
display: flex;
-webkit-flex-direction: column;
-moz-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
align-items: center;
-webkit-justify-content: flex-start;
-moz-justify-content: flex-start;
-ms-justify-content: flex-start;
justify-content: flex-start;
width: 100%;
min-height: 100%;
font-weight: 400;
font-family: 'ProximaNova', 'Open Sans', 'Helvetica Neue', 'Arial', sans-serif;
color: #444;
line-height: 1.6;
text-rendering: optimizeLegibility !important;
-webkit-font-smoothing: subpixel-antialiased;
font-smoothing: subpixel-antialiased;
}
@media (min-width: 550px) {
body {
-webkit-justify-content: center;
-moz-justify-content: center;
-ms-justify-content: center;
justify-content: center;
}
.narrow {
display: none !important;
}
}
.icon {
text-rendering: geometricPrecision !important;
}
.section {
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: -ms-flex;
display: flex;
-webkit-justify-content: center;
-moz-justify-content: center;
-ms-justify-content: center;
justify-content: center;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
align-items: center;
width: 100%;
}
.container {
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: -ms-flex;
display: flex;
width: 100%;
}
@media (min-width: 550px) {
.section {
padding: 0 16px;
margin-left: 100px;
margin-right: 100px;
max-width: 750px;
}
}
.section.header {
-webkit-order: 0;
-moz-order: 0;
-ms-order: 0;
order: 0;
}
.section.icons {
-webkit-order: 1;
-moz-order: 1;
-ms-order: 1;
order: 1;
}
.section.main {
-webkit-order: 2;
-moz-order: 2;
-ms-order: 2;
order: 2;
}
@media (min-width: 550px) {
.section.header {
-webkit-order: 0;
-moz-order: 0;
-ms-order: 0;
order: 0;
}
.section.icons {
-webkit-order: 2;
-moz-order: 2;
-ms-order: 2;
order: 2;
}
.section.main {
-webkit-order: 1;
-moz-order: 1;
-ms-order: 1;
order: 1;
}
}
.section.header {
background-color: #f7f7f7;
}
.section.header .container {
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
align-items: center;
-webkit-justify-content: center;
-moz-justify-content: center;
-ms-justify-content: center;
justify-content: center;
}
.section.header .content {
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: -ms-flex;
display: flex;
-webkit-flex-direction: column;
-moz-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
align-items: center;
}
.section.header .name {
font-size: 18px;
font-family: 'Raleway', 'Helvetica Neue', 'Arial', sans-serif;
letter-spacing: -0.005rem;
text-transform: uppercase;
font-weight: 700;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
color: #444;
color: #555;
}
.section.header nav {
font-size: 14px;
margin-bottom: 16px;
text-transform: uppercase;
}
.section.header nav ul {
list-style: none;
text-align: center;
display: -webkit-inline-flex;
display: -moz-inline-flex;
display: -ms-inline-flexbox;
display: -ms-inline-flex;
display: inline-flex;
}
.section.header nav ul a {
margin-left: 6px;
margin-right: 6px;
}
.section.header nav ul a:first-child {
margin-left: 0;
}
.section.header nav ul a:last-child {
margin-right: 0;
}
.section.header nav ul li {
color: #999;
-webkit-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
-moz-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
-ms-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
-o-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
}
.section.header nav ul li:hover {
color: #b7b7b7;
}
@media (min-width: 550px) {
.section.header {
background-color: transparent;
}
.section.header .container {
-webkit-justify-content: flex-start;
-moz-justify-content: flex-start;
-ms-justify-content: flex-start;
justify-content: flex-start;
}
.section.header .content {
-webkit-align-items: flex-start;
-moz-align-items: flex-start;
-ms-align-items: flex-start;
align-items: flex-start;
}
.section.header .name {
color: #444;
}
.section.header nav {
font-size: 13px;
margin-bottom: 0;
}
.section.header nav ul {
text-align: left;
}
.section.header nav ul li {
color: #999;
}
.section.header nav ul li:hover {
color: #444;
}
}
.section.icons {
background-color: #f7f7f7;
}
.section.icons .container {
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
align-items: center;
-webkit-justify-content: center;
-moz-justify-content: center;
-ms-justify-content: center;
justify-content: center;
}
.section.icons .content a {
margin-left: 6px;
margin-right: 6px;
color: #999;
-webkit-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
-moz-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
-ms-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
-o-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
}
.section.icons .content a:first-child {
margin-left: 0;
}
.section.icons .content a:last-child {
margin-right: 0;
}
.section.icons .content a:hover {
color: #b7b7b7;
}
.section.icons .content a .icon {
font-size: 20px;
}
.section.icons .content a .icon.larger {
font-size: 22px;
}
@media (min-width: 550px) {
.section.icons {
background-color: transparent;
}
.section.icons .container {
-webkit-justify-content: flex-start;
-moz-justify-content: flex-start;
-ms-justify-content: flex-start;
justify-content: flex-start;
}
.section.icons .content a {
margin-left: 3px;
margin-right: 3px;
color: #999;
}
.section.icons .content a:hover {
color: #444;
}
.section.icons .content a .icon {
font-size: 18px;
}
.section.icons .content a .icon.larger {
font-size: 20px;
}
}
.section.main .container {
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
align-items: center;
-webkit-justify-content: flex-start;
-moz-justify-content: flex-start;
-ms-justify-content: flex-start;
justify-content: flex-start;
}
.section.main .content {
color: #444;
font-size: 16px;
}
.section.main .content .title-container {
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: -ms-flex;
display: flex;
-webkit-justify-content: space-between;
-moz-justify-content: space-between;
-ms-justify-content: space-between;
justify-content: space-between;
}
.section.main .content .title-container .initials {
display: none;
font-size: 18px;
font-family: 'Raleway', 'Helvetica Neue', 'Arial', sans-serif;
letter-spacing: -0.005rem;
text-transform: uppercase;
font-weight: 700;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
color: #444;
color: #999;
}
.section.main .content .title-container .initials a {
color: #999;
-webkit-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
-moz-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
-ms-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
-o-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
}
.section.main .content .title-container .initials a:hover {
color: #444;
}
.section.main .content .page-heading {
font-size: 18px;
font-family: 'Raleway', 'Helvetica Neue', 'Arial', sans-serif;
letter-spacing: -0.005rem;
text-transform: uppercase;
font-weight: 700;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
color: #444;
margin-bottom: 16px;
}
.section.main .content .front-matter .page-heading {
margin-bottom: 0;
}
.section.main .content .front-matter .meta {
font-size: 14px;
color: #999;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: -ms-flex;
display: flex;
margin-bottom: 32px;
}
.section.main .content .front-matter .date,
.section.main .content .front-matter .word-count,
.section.main .content .front-matter .reading-time .middot {
display: none;
}
.section.main .content .front-matter .middot {
font-size: 6px;
margin: 0 6px;
display: inline;
vertical-align: middle;
}
.section.main .content .front-matter .middot:before {
content: "•";
}
@media (min-width: 550px) {
.section.main .content .front-matter .date,
.section.main .content .front-matter .word-count,
.section.main .content .front-matter .reading-time .middot {
display: initial;
}
.section.main .content .title-container .initials {
display: initial;
}
}
.section.main .container.f04 {
-webkit-justify-content: center;
-moz-justify-content: center;
-ms-justify-content: center;
justify-content: center;
}
.section.main .container.f04 .content {
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: -ms-flex;
display: flex;
-webkit-flex-direction: column;
-moz-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
align-items: center;
}
.section.main .container.f04 .content .num {
margin: 30px 0px 30px 0;
font-weight: 200;
font-family: 'Raleway', 'Helvetica Neue', 'Arial', sans-serif;
font-size: 50px;
}
.section.main .container.f04 .content .detail {
margin-bottom: 40px;
}
@media (min-width: 550px) {
.section.main .container.f04 {
-webkit-justify-content: flex-start;
-moz-justify-content: flex-start;
-ms-justify-content: flex-start;
justify-content: flex-start;
}
.section.main .container.f04 .content {
-webkit-align-items: flex-start;
-moz-align-items: flex-start;
-ms-align-items: flex-start;
align-items: flex-start;
}
.section.main .container.f04 .content .num {
margin: 0 0 10px 0;
font-size: 32px;
}
.section.main .container.f04 .content .detail {
margin-bottom: 30px;
}
}
.section.main .container .content .post-item {
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: -ms-flex;
display: flex;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
align-items: center;
list-style: none;
}
.section.main .container .content .post-item .meta {
font-size: 14px;
color: #999;
min-width: 100px;
text-align: right;
margin-right: 16px;
}
.section {
padding: 0 16px;
}
.section.header {
padding-top: 32px;
padding-bottom: 16px;
}
.section.icons {
padding-top: 0;
padding-bottom: 32px;
}
.section.main {
padding-top: 32px;
padding-bottom: 32px;
}
@media (min-width: 550px) {
.container {
margin: 0 30px;
}
.section.header {
padding-top: 60px;
padding-bottom: 60px;
}
.section.icons {
padding-top: 60px;
padding-bottom: 60px;
}
.section.main {
padding-top: 0;
padding-bottom: 0;
}
.section.main.post {
padding-top: 60px;
padding-bottom: 60px;
}
}
a {
color: #f46d2c;
-webkit-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
-moz-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
-ms-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
-o-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
}
a:hover {
color: #de5a1d;
}
img {
max-width: 100%;
}
img.profile {
min-width: 100%;
}
@media (min-width: 550px) {
img.profile {
min-width: 400px;
max-width: 400px !important;
}
}
.page-heading a {
color: #444;
}
.section.main .content .markdown h1,
.section.main .content .markdown h2,
.section.main .content .markdown h3,
.section.main .content .markdown h4,
.section.main .content .markdown h5,
.section.main .content .markdown h6 {
font-size: 18px;
font-family: 'Raleway', 'Helvetica Neue', 'Arial', sans-serif;
letter-spacing: -0.005rem;
text-transform: uppercase;
font-weight: 700;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
color: #444;
}
.section.main .content .markdown h1 {
font-size: 1.75rem;
margin-bottom: 2rem;
}
.section.main .content .markdown h2 {
font-size: 1.5rem;
margin-bottom: 1.5rem;
}
.section.main .content .markdown h3 {
font-size: 1em;
margin-bottom: 1rem;
}
.section.main .content .markdown h4,
.section.main .content .markdown h5,
.section.main .content .markdown h6 {
font-size: 1rem;
margin-bottom: 1rem;
letter-spacing: none;
text-transform: none;
}
.section.main .content .markdown code,
.section.main .content .markdown pre {
font-family: 'Ubuntu Mono', 'Menlo', monospace;
font-size: 0.98rem;
background-color: #f7f7f7;
}
.section.main .content .markdown code {
/* enclosed by single backtick (`) */
padding: .15em .5em;
color: #a10c31;
border-radius: 2px;
}
.section.main .content .markdown pre {
/* Hugo specific: consider using the 'highlight' shortcode */
display: block;
margin-top: 1rem;
margin-bottom: 2rem;
padding: 1rem;
line-height: 1.5em;
white-space: pre;
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
}
.section.main .content .markdown pre code {
/* enclosed by 4 backticks (````) */
padding: 0;
font-size: 0.9rem;
}
.section.main .content .markdown p {
/* Invoked by line break */
font-size: 1rem;
margin-top: 0;
margin-bottom: 1em;
}
.section.main .content .markdown ul,
.section.main .content .markdown ol,
.section.main .content .markdown dl {
margin-top: 1rem;
margin-bottom: 2rem;
}
.section.main .content .markdown dt {
font-weight: bold;
}
.section.main .content .markdown dd {
margin-bottom: .5rem;
}
.section.main .content .markdown ul {
margin-bottom: 1.25rem;
}
.section.main .content .markdown li {
list-style-type: disc;
list-style-position: inside;
}
.section.main .content .markdown hr {
position: relative;
margin: 1.75rem 0;
border: 0;
border-top: 1px solid #b3b3b3;
border-top: 1px solid #cccccc;
}
.section.main .content .markdown abbr {
font-size: 0.85rem;
font-weight: bold;
color: #777777;
text-transform: uppercase;
}
.section.main .content .markdown abbr[title] {
cursor: help;
border-bottom: 1px dotted #b3b3b3;
}
.section.main .content .markdown blockquote {
padding: .5rem 1rem;
margin: .8rem 0;
color: #7a7a7a;
border-left: .25rem solid #e5e5e5;
}
.section.main .content .markdown blockquote p:last-child {
margin-bottom: 0;
}
@media (min-width: 550px) {
.section.main .content .markdown blockquote {
padding-right: 5rem;
padding-left: 1.25rem;
}
}
.section.main .content .markdown img {
margin: 1rem 0;
max-width: 100%;
}
.section.main .content .markdown table {
margin-bottom: 1rem;
width: 100%;
border: 1px solid #e5e5e5;
border-collapse: collapse;
}
.section.main .content .markdown td,
.section.main .content .markdown th {
padding: .25rem .5rem;
border: 1px solid #e5e5e5;
}
.section.main .content .markdown tbody tr:nth-child(odd) td,
.section.main .content .markdown tbody tr:nth-child(odd) th {
background-color: #f7f7f7;
}

View File

@@ -1,61 +0,0 @@
.hll { background-color: #ffffcc }
.c { color: #999988; font-style: italic } /* Comment */
.err { color: #a61717; background-color: #e3d2d2 } /* Error */
.k { color: #000000; font-weight: bold } /* Keyword */
.o { color: #000000; font-weight: bold } /* Operator */
.cm { color: #999988; font-style: italic } /* Comment.Multiline */
.cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */
.c1 { color: #999988; font-style: italic } /* Comment.Single */
.cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.ge { color: #000000; font-style: italic } /* Generic.Emph */
.gr { color: #aa0000 } /* Generic.Error */
.gh { color: #999999 } /* Generic.Heading */
.gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.go { color: #888888 } /* Generic.Output */
.gp { color: #555555 } /* Generic.Prompt */
.gs { font-weight: bold } /* Generic.Strong */
.gu { color: #aaaaaa } /* Generic.Subheading */
.gt { color: #aa0000 } /* Generic.Traceback */
.kc { color: #000000; font-weight: bold } /* Keyword.Constant */
.kd { color: #000000; font-weight: bold } /* Keyword.Declaration */
.kn { color: #000000; font-weight: bold } /* Keyword.Namespace */
.kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */
.kr { color: #000000; font-weight: bold } /* Keyword.Reserved */
.kt { color: #445588; font-weight: bold } /* Keyword.Type */
.m { color: #009999 } /* Literal.Number */
.s { color: #d01040 } /* Literal.String */
.na { color: #008080 } /* Name.Attribute */
.nb { color: #0086B3 } /* Name.Builtin */
.nc { color: #445588; font-weight: bold } /* Name.Class */
.no { color: #008080 } /* Name.Constant */
.nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
.ni { color: #800080 } /* Name.Entity */
.ne { color: #990000; font-weight: bold } /* Name.Exception */
.nf { color: #990000; font-weight: bold } /* Name.Function */
.nl { color: #990000; font-weight: bold } /* Name.Label */
.nn { color: #555555 } /* Name.Namespace */
.nt { color: #000080 } /* Name.Tag */
.nv { color: #008080 } /* Name.Variable */
.ow { color: #000000; font-weight: bold } /* Operator.Word */
.w { color: #bbbbbb } /* Text.Whitespace */
.mf { color: #009999 } /* Literal.Number.Float */
.mh { color: #009999 } /* Literal.Number.Hex */
.mi { color: #009999 } /* Literal.Number.Integer */
.mo { color: #009999 } /* Literal.Number.Oct */
.sb { color: #d01040 } /* Literal.String.Backtick */
.sc { color: #d01040 } /* Literal.String.Char */
.sd { color: #d01040 } /* Literal.String.Doc */
.s2 { color: #d01040 } /* Literal.String.Double */
.se { color: #d01040 } /* Literal.String.Escape */
.sh { color: #d01040 } /* Literal.String.Heredoc */
.si { color: #d01040 } /* Literal.String.Interpol */
.sx { color: #d01040 } /* Literal.String.Other */
.sr { color: #009926 } /* Literal.String.Regex */
.s1 { color: #d01040 } /* Literal.String.Single */
.ss { color: #990073 } /* Literal.String.Symbol */
.bp { color: #999999 } /* Name.Builtin.Pseudo */
.vc { color: #008080 } /* Name.Variable.Class */
.vg { color: #008080 } /* Name.Variable.Global */
.vi { color: #008080 } /* Name.Variable.Instance */
.il { color: #009999 } /* Literal.Number.Integer.Long */

View File

@@ -1,48 +0,0 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

View File

@@ -1,162 +0,0 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="Eat, sleep, code, repeat.">
<base href="http://localhost:1313/">
<title>
Fixeds
</title>
<link rel="canonical" href="http://localhost:1313/fixed/">
<script type="text/javascript">
var baseUrl = 'http:\/\/localhost:1313\/';
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
window.location.protocol = 'https:';
}
</script>
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
<link rel="shortcut icon"
href="http://localhost:1313/img/leaf.ico"
>
</head>
<body lang="en">
<div class="section header">
<div class="container">
<div class="content">
<nav>
<ul>
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
<a href="http://localhost:1313/about/"><li>About</li></a>
<a href="http://localhost:1313/code/"><li>Code</li></a>
</ul>
</nav>
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
</div>
</div>
</div>
<div class="section icons">
<div class="container">
<div class="content">
<a href="//github.com/nishanths" target="_blank">
<i class="icon ion-social-github"></i>
</a>
<a href="//twitter.com/nshanmugham" target="_blank">
<i class="icon ion-social-twitter"></i>
</a>
<a href="//linkedin.com/in/nshanmugham" target="_blank">
<i class="icon ion-social-linkedin"></i>
</a>
<a href="mailto:nishanths@utexas.edu">
<i class="icon ion-ios-email larger"></i>
</a>
</div>
</div>
</div>
<div class="section main">
<div class="container">
<div class="content">
<div class="page-heading">
Fixeds
</div>
<ul>
<li class="post-item">
<div class="meta">Aug 22, 2015</div>
<a href="http://localhost:1313/about/"><div>About</div></a>
</li>
<li class="post-item">
<div class="meta">Aug 22, 2015</div>
<a href="http://localhost:1313/colophon/"><div>colophon</div></a>
</li>
<li class="post-item">
<div class="meta">Aug 19, 2015</div>
<a href="http://localhost:1313/code/"><div>Code</div></a>
</li>
</ul>
</div>
</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-61427501-2");
pageTracker._trackPageview();
} catch(err) {}
</script>
<script>document.write('<script src="http://'
+ (location.host || 'localhost').split(':')[0]
+ ':1313/livereload.js?mindelay=10"></'
+ 'script>')</script></body>
</html>

View File

@@ -1,73 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Fixeds on Nishanth Shanmugham</title>
<link>http://localhost:1313/fixed/</link>
<description>Recent content in Fixeds on Nishanth Shanmugham</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-US</language>
<lastBuildDate>Sat, 22 Aug 2015 06:42:21 -0700</lastBuildDate>
<atom:link href="http://localhost:1313/fixed/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>About</title>
<link>http://localhost:1313/about/</link>
<pubDate>Sat, 22 Aug 2015 06:42:21 -0700</pubDate>
<guid>http://localhost:1313/about/</guid>
<description>&lt;p&gt;I&amp;rsquo;m a software engineer and student at UT Austin. I primarily program in JavaScript. I currently work at Evernote. I also teach a web development class as part of &lt;a href=&#34;//cs.utexas.edu/users/mad&#34;&gt;MAD&lt;/a&gt;, a computer science campus organization.&lt;/p&gt;
&lt;p&gt;I love soccer and mediterranean food. You can find recent open source work on &lt;a target=&#34;_blank&#34; href=&#34;//github.com/nishanths&#34;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Please feel free to get in touch at &lt;a href=&#34;mailto:nishanths@utexas.edu&#34;&gt;nishanths@utexas.edu&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;//s.gravatar.com/avatar/9e766e4880d9a79fd1244c1b04dc31fe?size=4096&amp;default=retro&#34; class=&#34;profile&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;colophon/&#34;&gt;About this site&lt;/a&gt;&lt;/p&gt;
</description>
</item>
<item>
<title>colophon</title>
<link>http://localhost:1313/colophon/</link>
<pubDate>Sat, 22 Aug 2015 06:28:26 -0700</pubDate>
<guid>http://localhost:1313/colophon/</guid>
<description>&lt;p&gt;This website is the place where I write about JavaScript, git, and tech. It is also a personal homepage.&lt;/p&gt;
&lt;p&gt;The site is built with &lt;a target=&#34;_blank&#34; href=&#34;//gohugo.io&#34;&gt;Hugo&lt;/a&gt;—a static site generator made with Go and is hosted on GitHub Pages. The website &lt;a target=&#34;_blank&#34; href=&#34;//github.com/nishanths/nishanths.me&#34;&gt;source code&lt;/a&gt; is available on GitHub. It uses the &lt;a target=&#34;_blank&#34; href=&#34;//github.com/nishanths/cocoa-hugo-theme&#34;&gt;cocoa&lt;/a&gt; theme. The posts are written in Markdown.&lt;/p&gt;
&lt;p&gt;The primary font face is Proxima Nova and the monospace font face is Ubuntu Mono. The social icons are from the Ionicons font set. CSS classes for code syntax highlighting are inserted during compile-time by Hugo using Pygments.&lt;/p&gt;
&lt;p&gt;If you find errors, &lt;a href=&#34;https://github.com/nishanths/nishanths.me/issues/new&#34;&gt;please let me know&lt;/a&gt;.&lt;/p&gt;
</description>
</item>
<item>
<title>Code</title>
<link>http://localhost:1313/code/</link>
<pubDate>Wed, 19 Aug 2015 20:29:37 -0700</pubDate>
<guid>http://localhost:1313/code/</guid>
<description>&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/iterators.js&#34;&gt;iterators.js&lt;/a&gt;: Useful functional iterators for node and the browser&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/spitfire-live&#34;&gt;Spitfire&lt;/a&gt;: HackTX 2015, Winner a real-time rhyming assistant&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/markdown-viewer-component&#34;&gt;markdown-viewer-component&lt;/a&gt;: Web Component that renders Markdown placed inside an element as HTML&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/cocoa-hugo-theme&#34;&gt;cocoa-hugo-theme&lt;/a&gt;: Distraction-free reading theme for Hugo, the static site generator&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/slack-texts&#34;&gt;slack-texts&lt;/a&gt;: Important channel messages also sent to your phone via SMS&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/YWeatherAPI&#34;&gt;YWeatherAPI&lt;/a&gt;: Powerful Yahoo! Weather API wrapper for Mac and iOS&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/utcsmad/umad-website-2015&#34;&gt;uMAD 2015&lt;/a&gt;: Website for the student developer conference built with Middleman&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/what-s-playing&#34;&gt;What&amp;rsquo;s Playing&lt;/a&gt;: Desktop notifications for online music playback changes&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/QuickCal&#34;&gt;QuickCal&lt;/a&gt;: Highlight and add dates from any website to Google Calendar&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/youtube-pause-chrome&#34;&gt;YouTube Pause&lt;/a&gt;: Spacebar pauses the video instead of scrolling down the page. &lt;a href=&#34;http://www.cnet.com/how-to/chrome-pause-youtube-videos-with-the-spacebar/&#34;&gt;CNET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://duckduckgo.com/?q=ISBN+number+0-06-250217-4&amp;amp;ia=books&#34;&gt;ISBN Search&lt;/a&gt;: DuckDuckGo module to lookup book information by ISBN&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://duckduckgo.com/?q=html+encode+the+paragraph+sign&amp;amp;ia=answer&#34;&gt;HTML Entities Encoder &amp;amp;&lt;/a&gt; &lt;a href=&#34;https://duckduckgo.com/?q=decoded+html+for+%26%23x00a5%3B&amp;amp;ia=answer&#34;&gt;Decoder&lt;/a&gt;: Encode and decode HTML entities on DuckDuckGo using natural queries&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/auto-browser&#34;&gt;Auto-Browser&lt;/a&gt;: HackTX 2014, Top 10&lt;/li&gt;
&lt;/ul&gt;
</description>
</item>
</channel>
</rss>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 KiB

View File

@@ -1,171 +0,0 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="Eat, sleep, code, repeat.">
<base href="http://localhost:1313/">
<title>
Nishanth Shanmugham
</title>
<link rel="canonical" href="http://localhost:1313/">
<script type="text/javascript">
var baseUrl = 'http:\/\/localhost:1313\/';
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
window.location.protocol = 'https:';
}
</script>
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
<link rel="shortcut icon"
href="http://localhost:1313/img/leaf.ico"
>
</head>
<body lang="en">
<div class="section header">
<div class="container">
<div class="content">
<nav>
<ul>
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
<a href="http://localhost:1313/about/"><li>About</li></a>
<a href="http://localhost:1313/code/"><li>Code</li></a>
</ul>
</nav>
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
</div>
</div>
</div>
<div class="section icons">
<div class="container">
<div class="content">
<a href="//github.com/nishanths" target="_blank">
<i class="icon ion-social-github"></i>
</a>
<a href="//twitter.com/nshanmugham" target="_blank">
<i class="icon ion-social-twitter"></i>
</a>
<a href="//linkedin.com/in/nshanmugham" target="_blank">
<i class="icon ion-social-linkedin"></i>
</a>
<a href="mailto:nishanths@utexas.edu">
<i class="icon ion-ios-email larger"></i>
</a>
</div>
</div>
</div>
<div class="section main">
<div class="container">
<div class="content">
<div class="page-heading">Posts</div>
<ul>
<li class="post-item">
<div class="meta">Aug 25, 2015</div>
<a href="http://localhost:1313/posts/use-at-instead-of-head/"><div>Use @ instead of HEAD</div></a>
</li>
<li class="post-item">
<div class="meta">Aug 22, 2015</div>
<a href="http://localhost:1313/posts/redirect-webpages-html/"><div>Redirect webpages using HTML</div></a>
</li>
</ul>
</div>
</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-61427501-2");
pageTracker._trackPageview();
} catch(err) {}
</script>
<script>document.write('<script src="http://'
+ (location.host || 'localhost').split(':')[0]
+ ':1313/livereload.js?mindelay=10"></'
+ 'script>')</script></body>
</html>

View File

@@ -1,212 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Nishanth Shanmugham</title>
<link>http://localhost:1313/</link>
<description>Recent content on Nishanth Shanmugham</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-US</language>
<lastBuildDate>Tue, 25 Aug 2015 17:09:14 -0500</lastBuildDate>
<atom:link href="http://localhost:1313/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Use @ instead of HEAD</title>
<link>http://localhost:1313/posts/use-at-instead-of-head/</link>
<pubDate>Tue, 25 Aug 2015 17:09:14 -0500</pubDate>
<guid>http://localhost:1313/posts/use-at-instead-of-head/</guid>
<description>&lt;p&gt;I recently discovered that from git version &lt;a href=&#34;https://github.com/git/git/blob/master/Documentation/RelNotes/1.8.5.txt#L100&#34;&gt;1.8.5&lt;/a&gt; onwards, &lt;code&gt;@&lt;/code&gt; can replace &lt;code&gt;HEAD&lt;/code&gt;:&lt;/p&gt;
&lt;p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre&gt;&lt;span class=&#34;nv&#34;&gt;$ &lt;/span&gt;git reset --hard @~2
&lt;span class=&#34;nv&#34;&gt;$ &lt;/span&gt;git rebase -i @~10
&lt;span class=&#34;nv&#34;&gt;$ &lt;/span&gt;git diff @~2..@~3
&lt;/pre&gt;&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;And also in most scenarios &lt;code&gt;HEAD&lt;/code&gt; can be left out completely, so you can say:&lt;/p&gt;
&lt;p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre&gt;&lt;span class=&#34;nv&#34;&gt;$ &lt;/span&gt;git reset -- @&lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;2&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;instead of:&lt;/p&gt;
&lt;p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre&gt;&lt;span class=&#34;nv&#34;&gt;$ &lt;/span&gt;git reset -- HEAD@&lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;2&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;It takes some getting used to, but it&amp;rsquo;s definitely faster than typing &lt;code&gt;HEAD&lt;/code&gt;.&lt;/p&gt;
</description>
</item>
<item>
<title>Redirect webpages using HTML</title>
<link>http://localhost:1313/posts/redirect-webpages-html/</link>
<pubDate>Sat, 22 Aug 2015 15:45:30 -0700</pubDate>
<guid>http://localhost:1313/posts/redirect-webpages-html/</guid>
<description>
&lt;p&gt;Webpage redirection is great for automatically redirecting people visiting an old URL to a new URL where the content has moved to. It can be done using JavaScript, but there is also a convenient HTML-only solution.&lt;/p&gt;
&lt;p&gt;To redirect visitors reaching &lt;code&gt;yourwebsite.com/blog&lt;/code&gt; to &lt;code&gt;yourwebsite.com/posts&lt;/code&gt;, add this to the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; section of the HTML at &lt;code&gt;yourwebsite.com/blog&lt;/code&gt;:&lt;/p&gt;
&lt;p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;meta&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;http-equiv=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;quot;refresh&amp;quot;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;content=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;quot;0;url=&amp;#39;/posts&amp;#39;&amp;quot;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;link&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;rel=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;quot;canonical&amp;quot;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;href=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;quot;/posts&amp;quot;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/p&gt;
&lt;h3 id=&#34;walkthrough:afdc852818bb97af4efb4d34b2fcce3b&#34;&gt;walkthrough&lt;/h3&gt;
&lt;p&gt;Setting &lt;code&gt;http-equiv=&amp;quot;refresh&amp;quot;&lt;/code&gt; in the first line performs the actual redirect. The number in the &lt;code&gt;content&lt;/code&gt; attribute specified in seconds tells the browser how long to wait before redirecting. In this example, &lt;code&gt;0&lt;/code&gt; redirects immediately. Increasing the wait may be useful for briefly displaying a 404 page before automatically switching to the home page. The &lt;code&gt;url&lt;/code&gt; specfies the destination for the redirect. In this example, we wanted to switch to &lt;code&gt;/posts&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The second line is optional; it helps search engines know which the preferred version of the page is. Usually, this is the redirect destination.&lt;/p&gt;
</description>
</item>
<item>
<title>About</title>
<link>http://localhost:1313/about/</link>
<pubDate>Sat, 22 Aug 2015 06:42:21 -0700</pubDate>
<guid>http://localhost:1313/about/</guid>
<description>&lt;p&gt;I&amp;rsquo;m a software engineer and student at UT Austin. I primarily program in JavaScript. I currently work at Evernote. I also teach a web development class as part of &lt;a href=&#34;//cs.utexas.edu/users/mad&#34;&gt;MAD&lt;/a&gt;, a computer science campus organization.&lt;/p&gt;
&lt;p&gt;I love soccer and mediterranean food. You can find recent open source work on &lt;a target=&#34;_blank&#34; href=&#34;//github.com/nishanths&#34;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Please feel free to get in touch at &lt;a href=&#34;mailto:nishanths@utexas.edu&#34;&gt;nishanths@utexas.edu&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;//s.gravatar.com/avatar/9e766e4880d9a79fd1244c1b04dc31fe?size=4096&amp;default=retro&#34; class=&#34;profile&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;colophon/&#34;&gt;About this site&lt;/a&gt;&lt;/p&gt;
</description>
</item>
<item>
<title>colophon</title>
<link>http://localhost:1313/colophon/</link>
<pubDate>Sat, 22 Aug 2015 06:28:26 -0700</pubDate>
<guid>http://localhost:1313/colophon/</guid>
<description>&lt;p&gt;This website is the place where I write about JavaScript, git, and tech. It is also a personal homepage.&lt;/p&gt;
&lt;p&gt;The site is built with &lt;a target=&#34;_blank&#34; href=&#34;//gohugo.io&#34;&gt;Hugo&lt;/a&gt;—a static site generator made with Go and is hosted on GitHub Pages. The website &lt;a target=&#34;_blank&#34; href=&#34;//github.com/nishanths/nishanths.me&#34;&gt;source code&lt;/a&gt; is available on GitHub. It uses the &lt;a target=&#34;_blank&#34; href=&#34;//github.com/nishanths/cocoa-hugo-theme&#34;&gt;cocoa&lt;/a&gt; theme. The posts are written in Markdown.&lt;/p&gt;
&lt;p&gt;The primary font face is Proxima Nova and the monospace font face is Ubuntu Mono. The social icons are from the Ionicons font set. CSS classes for code syntax highlighting are inserted during compile-time by Hugo using Pygments.&lt;/p&gt;
&lt;p&gt;If you find errors, &lt;a href=&#34;https://github.com/nishanths/nishanths.me/issues/new&#34;&gt;please let me know&lt;/a&gt;.&lt;/p&gt;
</description>
</item>
<item>
<title>Code</title>
<link>http://localhost:1313/code/</link>
<pubDate>Wed, 19 Aug 2015 20:29:37 -0700</pubDate>
<guid>http://localhost:1313/code/</guid>
<description>&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/iterators.js&#34;&gt;iterators.js&lt;/a&gt;: Useful functional iterators for node and the browser&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/spitfire-live&#34;&gt;Spitfire&lt;/a&gt;: HackTX 2015, Winner a real-time rhyming assistant&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/markdown-viewer-component&#34;&gt;markdown-viewer-component&lt;/a&gt;: Web Component that renders Markdown placed inside an element as HTML&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/cocoa-hugo-theme&#34;&gt;cocoa-hugo-theme&lt;/a&gt;: Distraction-free reading theme for Hugo, the static site generator&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/slack-texts&#34;&gt;slack-texts&lt;/a&gt;: Important channel messages also sent to your phone via SMS&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/YWeatherAPI&#34;&gt;YWeatherAPI&lt;/a&gt;: Powerful Yahoo! Weather API wrapper for Mac and iOS&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/utcsmad/umad-website-2015&#34;&gt;uMAD 2015&lt;/a&gt;: Website for the student developer conference built with Middleman&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/what-s-playing&#34;&gt;What&amp;rsquo;s Playing&lt;/a&gt;: Desktop notifications for online music playback changes&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/QuickCal&#34;&gt;QuickCal&lt;/a&gt;: Highlight and add dates from any website to Google Calendar&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/youtube-pause-chrome&#34;&gt;YouTube Pause&lt;/a&gt;: Spacebar pauses the video instead of scrolling down the page. &lt;a href=&#34;http://www.cnet.com/how-to/chrome-pause-youtube-videos-with-the-spacebar/&#34;&gt;CNET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://duckduckgo.com/?q=ISBN+number+0-06-250217-4&amp;amp;ia=books&#34;&gt;ISBN Search&lt;/a&gt;: DuckDuckGo module to lookup book information by ISBN&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://duckduckgo.com/?q=html+encode+the+paragraph+sign&amp;amp;ia=answer&#34;&gt;HTML Entities Encoder &amp;amp;&lt;/a&gt; &lt;a href=&#34;https://duckduckgo.com/?q=decoded+html+for+%26%23x00a5%3B&amp;amp;ia=answer&#34;&gt;Decoder&lt;/a&gt;: Encode and decode HTML entities on DuckDuckGo using natural queries&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/nishanths/auto-browser&#34;&gt;Auto-Browser&lt;/a&gt;: HackTX 2014, Top 10&lt;/li&gt;
&lt;/ul&gt;
</description>
</item>
<item>
<title></title>
<link>http://localhost:1313/about-this-site/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>http://localhost:1313/about-this-site/</guid>
<description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;link rel=&#34;canonical&#34; href=&#34;http://localhost:1313/colophon&#34;/&gt;
&lt;meta http-equiv=&#34;content-type&#34; content=&#34;text/html; charset=utf-8&#34;/&gt;
&lt;meta http-equiv=&#34;refresh&#34; content=&#34;0;url=/colophon&#34;/&gt;
&lt;/head&gt;
&lt;/html&gt;
</description>
</item>
<item>
<title></title>
<link>http://localhost:1313/blog/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>http://localhost:1313/blog/</guid>
<description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;link rel=&#34;canonical&#34; href=&#34;http://localhost:1313/posts&#34;/&gt;
&lt;meta http-equiv=&#34;content-type&#34; content=&#34;text/html; charset=utf-8&#34;/&gt;
&lt;meta http-equiv=&#34;refresh&#34; content=&#34;0;url=/posts&#34;/&gt;
&lt;/head&gt;
&lt;/html&gt;
</description>
</item>
<item>
<title></title>
<link>http://localhost:1313/projects/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>http://localhost:1313/projects/</guid>
<description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;link rel=&#34;canonical&#34; href=&#34;http://localhost:1313/code&#34;/&gt;
&lt;meta http-equiv=&#34;content-type&#34; content=&#34;text/html; charset=utf-8&#34;/&gt;
&lt;meta http-equiv=&#34;refresh&#34; content=&#34;0;url=/code&#34;/&gt;
&lt;/head&gt;
&lt;/html&gt;
</description>
</item>
<item>
<title></title>
<link>http://localhost:1313/resume/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>http://localhost:1313/resume/</guid>
<description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&#34;content-type&#34; content=&#34;text/html; charset=utf-8&#34;/&gt;
&lt;meta http-equiv=&#34;refresh&#34; content=&#34;0;url=//cl.ly/0v2m3E0c0p2t/shanmugham-resume.pdf&#34;/&gt;
&lt;/head&gt;
&lt;/html&gt;
</description>
</item>
<item>
<title></title>
<link>http://localhost:1313/writing/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>http://localhost:1313/writing/</guid>
<description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;link rel=&#34;canonical&#34; href=&#34;http://localhost:1313/posts&#34;/&gt;
&lt;meta http-equiv=&#34;content-type&#34; content=&#34;text/html; charset=utf-8&#34;/&gt;
&lt;meta http-equiv=&#34;refresh&#34; content=&#34;0;url=/posts&#34;/&gt;
&lt;/head&gt;
&lt;/html&gt;
</description>
</item>
</channel>
</rss>

View File

@@ -1,156 +0,0 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="Eat, sleep, code, repeat.">
<base href="http://localhost:1313/">
<title>
Posts
</title>
<link rel="canonical" href="http://localhost:1313/posts/">
<script type="text/javascript">
var baseUrl = 'http:\/\/localhost:1313\/';
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
window.location.protocol = 'https:';
}
</script>
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
<link rel="shortcut icon"
href="http://localhost:1313/img/leaf.ico"
>
</head>
<body lang="en">
<div class="section header">
<div class="container">
<div class="content">
<nav>
<ul>
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
<a href="http://localhost:1313/about/"><li>About</li></a>
<a href="http://localhost:1313/code/"><li>Code</li></a>
</ul>
</nav>
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
</div>
</div>
</div>
<div class="section icons">
<div class="container">
<div class="content">
<a href="//github.com/nishanths" target="_blank">
<i class="icon ion-social-github"></i>
</a>
<a href="//twitter.com/nshanmugham" target="_blank">
<i class="icon ion-social-twitter"></i>
</a>
<a href="//linkedin.com/in/nshanmugham" target="_blank">
<i class="icon ion-social-linkedin"></i>
</a>
<a href="mailto:nishanths@utexas.edu">
<i class="icon ion-ios-email larger"></i>
</a>
</div>
</div>
</div>
<div class="section main">
<div class="container">
<div class="content">
<div class="page-heading">
Posts
</div>
<ul>
<li class="post-item">
<div class="meta">Aug 25, 2015</div>
<a href="http://localhost:1313/posts/use-at-instead-of-head/"><div>Use @ instead of HEAD</div></a>
</li>
<li class="post-item">
<div class="meta">Aug 22, 2015</div>
<a href="http://localhost:1313/posts/redirect-webpages-html/"><div>Redirect webpages using HTML</div></a>
</li>
</ul>
</div>
</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-61427501-2");
pageTracker._trackPageview();
} catch(err) {}
</script>
<script>document.write('<script src="http://'
+ (location.host || 'localhost').split(':')[0]
+ ':1313/livereload.js?mindelay=10"></'
+ 'script>')</script></body>
</html>

View File

@@ -1,68 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Posts on Nishanth Shanmugham</title>
<link>http://localhost:1313/posts/</link>
<description>Recent content in Posts on Nishanth Shanmugham</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-US</language>
<lastBuildDate>Tue, 25 Aug 2015 17:09:14 -0500</lastBuildDate>
<atom:link href="http://localhost:1313/posts/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Use @ instead of HEAD</title>
<link>http://localhost:1313/posts/use-at-instead-of-head/</link>
<pubDate>Tue, 25 Aug 2015 17:09:14 -0500</pubDate>
<guid>http://localhost:1313/posts/use-at-instead-of-head/</guid>
<description>&lt;p&gt;I recently discovered that from git version &lt;a href=&#34;https://github.com/git/git/blob/master/Documentation/RelNotes/1.8.5.txt#L100&#34;&gt;1.8.5&lt;/a&gt; onwards, &lt;code&gt;@&lt;/code&gt; can replace &lt;code&gt;HEAD&lt;/code&gt;:&lt;/p&gt;
&lt;p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre&gt;&lt;span class=&#34;nv&#34;&gt;$ &lt;/span&gt;git reset --hard @~2
&lt;span class=&#34;nv&#34;&gt;$ &lt;/span&gt;git rebase -i @~10
&lt;span class=&#34;nv&#34;&gt;$ &lt;/span&gt;git diff @~2..@~3
&lt;/pre&gt;&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;And also in most scenarios &lt;code&gt;HEAD&lt;/code&gt; can be left out completely, so you can say:&lt;/p&gt;
&lt;p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre&gt;&lt;span class=&#34;nv&#34;&gt;$ &lt;/span&gt;git reset -- @&lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;2&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;instead of:&lt;/p&gt;
&lt;p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre&gt;&lt;span class=&#34;nv&#34;&gt;$ &lt;/span&gt;git reset -- HEAD@&lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;2&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;It takes some getting used to, but it&amp;rsquo;s definitely faster than typing &lt;code&gt;HEAD&lt;/code&gt;.&lt;/p&gt;
</description>
</item>
<item>
<title>Redirect webpages using HTML</title>
<link>http://localhost:1313/posts/redirect-webpages-html/</link>
<pubDate>Sat, 22 Aug 2015 15:45:30 -0700</pubDate>
<guid>http://localhost:1313/posts/redirect-webpages-html/</guid>
<description>
&lt;p&gt;Webpage redirection is great for automatically redirecting people visiting an old URL to a new URL where the content has moved to. It can be done using JavaScript, but there is also a convenient HTML-only solution.&lt;/p&gt;
&lt;p&gt;To redirect visitors reaching &lt;code&gt;yourwebsite.com/blog&lt;/code&gt; to &lt;code&gt;yourwebsite.com/posts&lt;/code&gt;, add this to the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; section of the HTML at &lt;code&gt;yourwebsite.com/blog&lt;/code&gt;:&lt;/p&gt;
&lt;p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;meta&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;http-equiv=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;quot;refresh&amp;quot;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;content=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;quot;0;url=&amp;#39;/posts&amp;#39;&amp;quot;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;link&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;rel=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;quot;canonical&amp;quot;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;href=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;quot;/posts&amp;quot;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/p&gt;
&lt;h3 id=&#34;walkthrough:afdc852818bb97af4efb4d34b2fcce3b&#34;&gt;walkthrough&lt;/h3&gt;
&lt;p&gt;Setting &lt;code&gt;http-equiv=&amp;quot;refresh&amp;quot;&lt;/code&gt; in the first line performs the actual redirect. The number in the &lt;code&gt;content&lt;/code&gt; attribute specified in seconds tells the browser how long to wait before redirecting. In this example, &lt;code&gt;0&lt;/code&gt; redirects immediately. Increasing the wait may be useful for briefly displaying a 404 page before automatically switching to the home page. The &lt;code&gt;url&lt;/code&gt; specfies the destination for the redirect. In this example, we wanted to switch to &lt;code&gt;/posts&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The second line is optional; it helps search engines know which the preferred version of the page is. Usually, this is the redirect destination.&lt;/p&gt;
</description>
</item>
</channel>
</rss>

View File

@@ -1,169 +0,0 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="Eat, sleep, code, repeat.">
<base href="http://localhost:1313/">
<title>
Redirect webpages using HTML
</title>
<link rel="canonical" href="http://localhost:1313/posts/redirect-webpages-html/">
<script type="text/javascript">
var baseUrl = 'http:\/\/localhost:1313\/';
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
window.location.protocol = 'https:';
}
</script>
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
<link rel="shortcut icon"
href="http://localhost:1313/img/leaf.ico"
>
</head>
<body lang="en">
<div class="section header narrow">
<div class="container">
<div class="content">
<nav>
<ul>
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
<a href="http://localhost:1313/about/"><li>About</li></a>
<a href="http://localhost:1313/code/"><li>Code</li></a>
</ul>
</nav>
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
</div>
</div>
</div>
<div class="section icons narrow">
<div class="container">
<div class="content">
<a href="//github.com/nishanths" target="_blank">
<i class="icon ion-social-github"></i>
</a>
<a href="//twitter.com/nshanmugham" target="_blank">
<i class="icon ion-social-twitter"></i>
</a>
<a href="//linkedin.com/in/nshanmugham" target="_blank">
<i class="icon ion-social-linkedin"></i>
</a>
<a href="mailto:nishanths@utexas.edu">
<i class="icon ion-ios-email larger"></i>
</a>
</div>
</div>
</div>
<div class="section main post">
<div class="container">
<div class="content">
<div class="front-matter">
<div class="title-container">
<div class="page-heading">
<a href="http://localhost:1313/posts/redirect-webpages-html/">Redirect webpages using HTML</a>
</div>
<div class="initials"><a href="http://localhost:1313/">ns</a></div>
</div>
<div class="meta">
<div class="date" title="Sat Aug 22 2015 15:45:30 -0700">Aug 22, 2015</div>
<div class="reading-time"><div class="middot"></div>1 minute read</div>
</div>
</div>
<div class="markdown">
<p>Webpage redirection is great for automatically redirecting people visiting an old URL to a new URL where the content has moved to. It can be done using JavaScript, but there is also a convenient HTML-only solution.</p>
<p>To redirect visitors reaching <code>yourwebsite.com/blog</code> to <code>yourwebsite.com/posts</code>, add this to the <code>&lt;head&gt;</code> section of the HTML at <code>yourwebsite.com/blog</code>:</p>
<p><div class="highlight"><pre><span class="nt">&lt;meta</span> <span class="na">http-equiv=</span><span class="s">&quot;refresh&quot;</span> <span class="na">content=</span><span class="s">&quot;0;url=&#39;/posts&#39;&quot;</span> <span class="nt">/&gt;</span>
<span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">&quot;canonical&quot;</span> <span class="na">href=</span><span class="s">&quot;/posts&quot;</span> <span class="nt">/&gt;</span>
</pre></div>
</p>
<h3 id="walkthrough:afdc852818bb97af4efb4d34b2fcce3b">walkthrough</h3>
<p>Setting <code>http-equiv=&quot;refresh&quot;</code> in the first line performs the actual redirect. The number in the <code>content</code> attribute specified in seconds tells the browser how long to wait before redirecting. In this example, <code>0</code> redirects immediately. Increasing the wait may be useful for briefly displaying a 404 page before automatically switching to the home page. The <code>url</code> specfies the destination for the redirect. In this example, we wanted to switch to <code>/posts</code>.</p>
<p>The second line is optional; it helps search engines know which the preferred version of the page is. Usually, this is the redirect destination.</p>
<br>
<p><a href="http://localhost:1313/posts/">Back to posts</a></p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-61427501-2");
pageTracker._trackPageview();
} catch(err) {}
</script>
<script>document.write('<script src="http://'
+ (location.host || 'localhost').split(':')[0]
+ ':1313/livereload.js?mindelay=10"></'
+ 'script>')</script></body>
</html>

View File

@@ -1,174 +0,0 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="Eat, sleep, code, repeat.">
<base href="http://localhost:1313/">
<title>
Use @ instead of HEAD
</title>
<link rel="canonical" href="http://localhost:1313/posts/use-at-instead-of-head/">
<script type="text/javascript">
var baseUrl = 'http:\/\/localhost:1313\/';
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
window.location.protocol = 'https:';
}
</script>
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
<link rel="shortcut icon"
href="http://localhost:1313/img/leaf.ico"
>
</head>
<body lang="en">
<div class="section header narrow">
<div class="container">
<div class="content">
<nav>
<ul>
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
<a href="http://localhost:1313/about/"><li>About</li></a>
<a href="http://localhost:1313/code/"><li>Code</li></a>
</ul>
</nav>
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
</div>
</div>
</div>
<div class="section icons narrow">
<div class="container">
<div class="content">
<a href="//github.com/nishanths" target="_blank">
<i class="icon ion-social-github"></i>
</a>
<a href="//twitter.com/nshanmugham" target="_blank">
<i class="icon ion-social-twitter"></i>
</a>
<a href="//linkedin.com/in/nshanmugham" target="_blank">
<i class="icon ion-social-linkedin"></i>
</a>
<a href="mailto:nishanths@utexas.edu">
<i class="icon ion-ios-email larger"></i>
</a>
</div>
</div>
</div>
<div class="section main post">
<div class="container">
<div class="content">
<div class="front-matter">
<div class="title-container">
<div class="page-heading">
<a href="http://localhost:1313/posts/use-at-instead-of-head/">Use @ instead of HEAD</a>
</div>
<div class="initials"><a href="http://localhost:1313/">ns</a></div>
</div>
<div class="meta">
<div class="date" title="Tue Aug 25 2015 17:09:14 CDT">Aug 25, 2015</div>
<div class="reading-time"><div class="middot"></div>1 minute read</div>
</div>
</div>
<div class="markdown">
<p>I recently discovered that from git version <a href="https://github.com/git/git/blob/master/Documentation/RelNotes/1.8.5.txt#L100">1.8.5</a> onwards, <code>@</code> can replace <code>HEAD</code>:</p>
<p><div class="highlight"><pre><span class="nv">$ </span>git reset --hard @~2
<span class="nv">$ </span>git rebase -i @~10
<span class="nv">$ </span>git diff @~2..@~3
</pre></div>
</p>
<p>And also in most scenarios <code>HEAD</code> can be left out completely, so you can say:</p>
<p><div class="highlight"><pre><span class="nv">$ </span>git reset -- @<span class="o">{</span>2<span class="o">}</span>
</pre></div>
</p>
<p>instead of:</p>
<p><div class="highlight"><pre><span class="nv">$ </span>git reset -- HEAD@<span class="o">{</span>2<span class="o">}</span>
</pre></div>
</p>
<p>It takes some getting used to, but it&rsquo;s definitely faster than typing <code>HEAD</code>.</p>
<br>
<p><a href="http://localhost:1313/posts/">Back to posts</a></p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-61427501-2");
pageTracker._trackPageview();
} catch(err) {}
</script>
<script>document.write('<script src="http://'
+ (location.host || 'localhost').split(':')[0]
+ ':1313/livereload.js?mindelay=10"></'
+ 'script>')</script></body>
</html>

View File

@@ -1,8 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<link rel="canonical" href="http://localhost:1313/code"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="refresh" content="0;url=/code"/>
</head>
</html>

View File

@@ -1,7 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="refresh" content="0;url=//cl.ly/0v2m3E0c0p2t/shanmugham-resume.pdf"/>
</head>
</html>

View File

@@ -1,55 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://localhost:1313/</loc>
<lastmod>2015-08-25T17:09:14-05:00</lastmod>
<priority>0</priority>
</url>
<url>
<loc>http://localhost:1313/posts/use-at-instead-of-head/</loc>
<lastmod>2015-08-25T17:09:14-05:00</lastmod>
</url>
<url>
<loc>http://localhost:1313/posts/redirect-webpages-html/</loc>
<lastmod>2015-08-22T15:45:30-07:00</lastmod>
</url>
<url>
<loc>http://localhost:1313/about/</loc>
<lastmod>2015-08-22T06:42:21-07:00</lastmod>
</url>
<url>
<loc>http://localhost:1313/colophon/</loc>
<lastmod>2015-08-22T06:28:26-07:00</lastmod>
</url>
<url>
<loc>http://localhost:1313/code/</loc>
<lastmod>2015-08-19T20:29:37-07:00</lastmod>
</url>
<url>
<loc>http://localhost:1313/about-this-site/</loc>
</url>
<url>
<loc>http://localhost:1313/blog/</loc>
</url>
<url>
<loc>http://localhost:1313/projects/</loc>
</url>
<url>
<loc>http://localhost:1313/resume/</loc>
</url>
<url>
<loc>http://localhost:1313/writing/</loc>
</url>
</urlset>

View File

@@ -1,8 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<link rel="canonical" href="http://localhost:1313/posts"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="refresh" content="0;url=/posts"/>
</head>
</html>

View File

View File