mirror of
https://github.com/avitex/avitex.github.io
synced 2025-01-15 04:19:58 +00:00
Deploy avitex/avitex.github.io to avitex/avitex.github.io:master
This commit is contained in:
commit
801e7b99ad
1
404.html
Normal file
1
404.html
Normal file
@ -0,0 +1 @@
|
||||
<!doctype html><title>404 Not Found</title><h1>404 Not Found</h1>
|
1
about/bio/index.html
Normal file
1
about/bio/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!doctype html><html lang=en><head><meta charset=UTF-8><meta content=#111111 name=theme-color><meta content=avitex name=author><meta content=yes name=apple-mobile-web-app-capable><meta content="width=device-width,height=device-height,initial-scale=1.0" name=viewport><meta content="Nothing here... yet" name=description><link href="https://1bit.pw/site.css?h=43c574aebfdebc5cd2672449b4a58d93d893a4ba1adaa800ac287d6fe1581b04" rel=stylesheet><link href=https://1bit.pw/fonts.min.css rel=stylesheet><link href=https://1bit.pw/favicon.png rel=icon type=image/png><link href=https://1bit.pw/atom.xml rel=alternate title=RSS type=application/rss+xml><title>Bio - 1bit.pw</title><body><div class=container><header class=site-header><a class=brand href=https://1bit.pw> <img alt="brain logo" src=https://1bit.pw/brain-48px.png> </a><nav class=site-nav itemscope itemtype=http://schema.org/SiteNavigationElement><ul class="menu main-menu"><li><a href=https://1bit.pw/blog itemprop=url> <span itemprop=name>Blog</span> </a><li><a href=https://1bit.pw/projects itemprop=url> <span itemprop=name>Projects</span> </a><li><a class=active href=https://1bit.pw/about itemprop=url> <span itemprop=name>About</span> </a></ul><ul class="menu sub-menu"><li><a href=https://1bit.pw/about itemprop=url> <span itemprop=name>Overview</span> </a><li><a href=https://1bit.pw/about/bio itemprop=url> <span itemprop=name>Bio</span> </a><li><a href=https://1bit.pw/about/social itemprop=url> <span itemprop=name>Social</span> </a></ul></nav></header><main class=content><p>Nothing here... yet</main></div>
|
1
about/index.html
Normal file
1
about/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!doctype html><html lang=en><head><meta charset=UTF-8><meta content=#111111 name=theme-color><meta content=avitex name=author><meta content=yes name=apple-mobile-web-app-capable><meta content="width=device-width,height=device-height,initial-scale=1.0" name=viewport><meta content="Hi! I'm James, a fellow earthling living in Australia." name=description><link href="https://1bit.pw/site.css?h=43c574aebfdebc5cd2672449b4a58d93d893a4ba1adaa800ac287d6fe1581b04" rel=stylesheet><link href=https://1bit.pw/fonts.min.css rel=stylesheet><link href=https://1bit.pw/favicon.png rel=icon type=image/png><link href=https://1bit.pw/atom.xml rel=alternate title=RSS type=application/rss+xml><title>About - 1bit.pw</title><body><div class=container><header class=site-header><a class=brand href=https://1bit.pw> <img alt="brain logo" src=https://1bit.pw/brain-48px.png> </a><nav class=site-nav itemscope itemtype=http://schema.org/SiteNavigationElement><ul class="menu main-menu"><li><a href=https://1bit.pw/blog itemprop=url> <span itemprop=name>Blog</span> </a><li><a href=https://1bit.pw/projects itemprop=url> <span itemprop=name>Projects</span> </a><li><a class=active href=https://1bit.pw/about itemprop=url> <span itemprop=name>About</span> </a></ul><ul class="menu sub-menu"><li><a href=https://1bit.pw/about itemprop=url> <span itemprop=name>Overview</span> </a><li><a href=https://1bit.pw/about/bio itemprop=url> <span itemprop=name>Bio</span> </a><li><a href=https://1bit.pw/about/social itemprop=url> <span itemprop=name>Social</span> </a></ul></nav></header><main class=content><p>Hi! I'm James, a fellow earthling living in Australia.<h2 id=pgp>PGP<a aria-label="Anchor link for: pgp" class=anchor href=#pgp></a></h2><p>You can find my PGP public key <a href=/id/pk.txt>here</a>.<h2 id=contact>Contact<a aria-label="Anchor link for: contact" class=anchor href=#contact></a></h2><p>If you wish to contact me, email is easiest via <code>avitex (at) wfxlabs (dot) com</code>.<br> See my <a href=https://1bit.pw/about/social/>social links</a> for other methods to get in touch.</main></div>
|
1
about/social/index.html
Normal file
1
about/social/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!doctype html><html lang=en><head><meta charset=UTF-8><meta content=#111111 name=theme-color><meta content=avitex name=author><meta content=yes name=apple-mobile-web-app-capable><meta content="width=device-width,height=device-height,initial-scale=1.0" name=viewport><meta content="Links to my accounts on various social services for identity, code, media, gaming and discussion." name=description><link href="https://1bit.pw/site.css?h=43c574aebfdebc5cd2672449b4a58d93d893a4ba1adaa800ac287d6fe1581b04" rel=stylesheet><link href=https://1bit.pw/fonts.min.css rel=stylesheet><link href=https://1bit.pw/favicon.png rel=icon type=image/png><link href=https://1bit.pw/atom.xml rel=alternate title=RSS type=application/rss+xml><title>Social - 1bit.pw</title><body><div class=container><header class=site-header><a class=brand href=https://1bit.pw> <img alt="brain logo" src=https://1bit.pw/brain-48px.png> </a><nav class=site-nav itemscope itemtype=http://schema.org/SiteNavigationElement><ul class="menu main-menu"><li><a href=https://1bit.pw/blog itemprop=url> <span itemprop=name>Blog</span> </a><li><a href=https://1bit.pw/projects itemprop=url> <span itemprop=name>Projects</span> </a><li><a class=active href=https://1bit.pw/about itemprop=url> <span itemprop=name>About</span> </a></ul><ul class="menu sub-menu"><li><a href=https://1bit.pw/about itemprop=url> <span itemprop=name>Overview</span> </a><li><a href=https://1bit.pw/about/bio itemprop=url> <span itemprop=name>Bio</span> </a><li><a href=https://1bit.pw/about/social itemprop=url> <span itemprop=name>Social</span> </a></ul></nav></header><main class=content><h2 id=identity>Identity<a aria-label="Anchor link for: identity" class=anchor href=#identity></a></h2><ul><li><a href=https://keybase.io/avitex>Keybase</a></ul><h2 id=code>Code<a aria-label="Anchor link for: code" class=anchor href=#code></a></h2><ul><li><a href=https://github.com/avitex>Github</a><li><a href=https://git.wfxlabs.com/avitex>WhitefoxLabs</a><li><a href=https://crates.io/users/avitex>Crates.io</a><li><a href=https://hex.pm/users/avitex>Hex.pm</a><li><a href=https://www.npmjs.com/%7Eavitex>NPM</a><li><a href=https://gitlab.com/avitex>Gitlab</a> (<em>dormant</em>)<li><a href=https://bitbucket.com/avitex>Bitbucket</a> (<em>dormant</em>)</ul><h2 id=media>Media<a aria-label="Anchor link for: media" class=anchor href=#media></a></h2><ul><li><a href=https://lobste.rs/u/avitex>Lobsters</a><li><a href=https://reddit.com/u/theavitex>Reddit</a><li><a href=https://twitter.com/theavitex>Twitter</a> (<em>dormant</em>)<li><a href=https://twitch.com/theavitex>Twitch</a> (<em>dormant</em>)<li><a href="https://news.ycombinator.com/user?id=avitex">Hackernews</a> (<em>dormant</em>)<li><a href=https://stackoverflow.com/users/605191/avitex>StackOverflow</a> (<em>dormant</em>)</ul><h2 id=forums>Forums<a aria-label="Anchor link for: forums" class=anchor href=#forums></a></h2><ul><li><a href=https://users.rust-lang.org/u/avitex>Rust</a> (<em>dormant</em>)<li><a href=https://forum.vuejs.org/u/avitex>Vue</a> (<em>dormant</em>)<li><a href=https://elixirforum.com/u/avitex>Elixir</a> (<em>dormant</em>)</ul><h2 id=gaming>Gaming<a aria-label="Anchor link for: gaming" class=anchor href=#gaming></a></h2><ul><li><a href=https://steamcommunity.com/id/avitex>Steam</a><li><a href=https://www.faceit.com/en/players/avitex>Faceit</a><li><a href=https://play.esea.net/users/680258>ESEA</a> (<em>dormant</em>)<li><a href=https://letsplay.live/profile/246296/avitex/>LPL</a> (<em>dormant</em>)</ul><h2 id=other>Other<a aria-label="Anchor link for: other" class=anchor href=#other></a></h2><ul><li>Discord - <code>avitex#0438</code></ul></main></div>
|
20
atom.xml
Normal file
20
atom.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
|
||||
<title>1bit.pw</title>
|
||||
<subtitle>Home of avitex</subtitle>
|
||||
<link href="https://1bit.pw/atom.xml" rel="self" type="application/atom+xml"/>
|
||||
<link href="https://1bit.pw"/>
|
||||
<generator uri="https://www.getzola.org/">Zola</generator>
|
||||
<updated>2018-08-22T00:00:00+00:00</updated>
|
||||
<id>https://1bit.pw/atom.xml</id>
|
||||
<entry xml:lang="en">
|
||||
<title>Hello World</title>
|
||||
<published>2018-08-22T00:00:00+00:00</published>
|
||||
<updated>2018-08-22T00:00:00+00:00</updated>
|
||||
<link href="https://1bit.pw/blog/hello-world/" type="text/html"/>
|
||||
<id>https://1bit.pw/blog/hello-world/</id>
|
||||
<content type="html"><p>Thought it would be a good idea to have somewhere to put my ramblings, and so I am here.<br />
|
||||
Whether or not I use this, time will tell.</p>
|
||||
<span id="continue-reading"></span></content>
|
||||
</entry>
|
||||
</feed>
|
1
blog-tags/index.html
Normal file
1
blog-tags/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!doctype html><html lang=en><head><meta charset=UTF-8><meta content=#111111 name=theme-color><meta content=avitex name=author><meta content=yes name=apple-mobile-web-app-capable><meta content="width=device-width,height=device-height,initial-scale=1.0" name=viewport><meta content="Full list of tags used for articles within the blog." name=description><link href="https://1bit.pw/site.css?h=43c574aebfdebc5cd2672449b4a58d93d893a4ba1adaa800ac287d6fe1581b04" rel=stylesheet><link href=https://1bit.pw/fonts.min.css rel=stylesheet><link href=https://1bit.pw/favicon.png rel=icon type=image/png><link href=https://1bit.pw/atom.xml rel=alternate title=RSS type=application/rss+xml><title>Tag - 1bit.pw</title><body><div class=container><header class=site-header><a class=brand href=https://1bit.pw> <img alt="brain logo" src=https://1bit.pw/brain-48px.png> </a><nav class=site-nav itemscope itemtype=http://schema.org/SiteNavigationElement><ul class="menu main-menu"><li><a class=active href=https://1bit.pw/blog itemprop=url> <span itemprop=name>Blog</span> </a><li><a href=https://1bit.pw/projects itemprop=url> <span itemprop=name>Projects</span> </a><li><a href=https://1bit.pw/about itemprop=url> <span itemprop=name>About</span> </a></ul><ul class="menu sub-menu"><li><a href=https://1bit.pw/blog itemprop=url> <span itemprop=name>Latest</span> </a><li><a href=https://1bit.pw/blog-tags itemprop=url> <span itemprop=name>Tags</span> </a></ul></nav></header><main class=content><h1>Tags</h1><ul><li><a href=https://1bit.pw/blog-tags/meta/>meta</a> (1)<li><a href=https://1bit.pw/blog-tags/new/>new</a> (1)</ul></main></div>
|
20
blog-tags/meta/atom.xml
Normal file
20
blog-tags/meta/atom.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
|
||||
<title>1bit.pw - meta</title>
|
||||
<subtitle>Home of avitex</subtitle>
|
||||
<link href="https://1bit.pw/blog-tags/meta/atom.xml" rel="self" type="application/atom+xml"/>
|
||||
<link href="https://1bit.pw"/>
|
||||
<generator uri="https://www.getzola.org/">Zola</generator>
|
||||
<updated>2018-08-22T00:00:00+00:00</updated>
|
||||
<id>https://1bit.pw/blog-tags/meta/atom.xml</id>
|
||||
<entry xml:lang="en">
|
||||
<title>Hello World</title>
|
||||
<published>2018-08-22T00:00:00+00:00</published>
|
||||
<updated>2018-08-22T00:00:00+00:00</updated>
|
||||
<link href="https://1bit.pw/blog/hello-world/" type="text/html"/>
|
||||
<id>https://1bit.pw/blog/hello-world/</id>
|
||||
<content type="html"><p>Thought it would be a good idea to have somewhere to put my ramblings, and so I am here.<br />
|
||||
Whether or not I use this, time will tell.</p>
|
||||
<span id="continue-reading"></span></content>
|
||||
</entry>
|
||||
</feed>
|
1
blog-tags/meta/index.html
Normal file
1
blog-tags/meta/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!doctype html><html lang=en><head><meta charset=UTF-8><meta content=#111111 name=theme-color><meta content=avitex name=author><meta content=yes name=apple-mobile-web-app-capable><meta content="width=device-width,height=device-height,initial-scale=1.0" name=viewport><meta name=description><link href="https://1bit.pw/site.css?h=43c574aebfdebc5cd2672449b4a58d93d893a4ba1adaa800ac287d6fe1581b04" rel=stylesheet><link href=https://1bit.pw/fonts.min.css rel=stylesheet><link href=https://1bit.pw/favicon.png rel=icon type=image/png><link href=https://1bit.pw/atom.xml rel=alternate title=RSS type=application/rss+xml><title>Tag meta - 1bit.pw</title><body><div class=container><header class=site-header><a class=brand href=https://1bit.pw> <img alt="brain logo" src=https://1bit.pw/brain-48px.png> </a><nav class=site-nav itemscope itemtype=http://schema.org/SiteNavigationElement><ul class="menu main-menu"><li><a class=active href=https://1bit.pw/blog itemprop=url> <span itemprop=name>Blog</span> </a><li><a href=https://1bit.pw/projects itemprop=url> <span itemprop=name>Projects</span> </a><li><a href=https://1bit.pw/about itemprop=url> <span itemprop=name>About</span> </a></ul><ul class="menu sub-menu"><li><a href=https://1bit.pw/blog itemprop=url> <span itemprop=name>Latest</span> </a><li><a href=https://1bit.pw/blog-tags itemprop=url> <span itemprop=name>Tags</span> </a></ul></nav></header><main class=content><h1>Tag: <code>meta</code> <small>(<a href=https://1bit.pw/blog-tags/meta/atom.xml>RSS</a>)</small></h1><article itemscope itemtype=http://schema.org/CreativeWork><header><h2 itemprop=name><a href=https://1bit.pw/blog/hello-world/>Hello World</a></h2><span class="muted mono"> <svg class="icon i-edit" style="margin-bottom: -3px" viewbox="0 0 32 32" fill=none height=16 stroke=currentcolor stroke-linecap=round stroke-linejoin=round stroke-width=6.25% width=16> <path d="M30 7 L25 2 5 22 3 29 10 27 Z M21 6 L26 11 Z M5 22 L10 27 Z"/> </svg> <time datetime=2018-08-22 itemprop=datePublished>Aug 22, 2018</time> <svg class="icon i-clock" viewbox="0 0 32 32" fill=none height=16 stroke=currentcolor stroke-linecap=round stroke-linejoin=round stroke-width=6.25% style=margin-bottom:-3px width=16> <circle cx=16 cy=16 r=14 /> <path d="M16 8 L16 16 20 20"/> </svg> <span>1 minute read</span> </span></header><div itemprop=summary><p>Thought it would be a good idea to have somewhere to put my ramblings, and so I am here.<br> Whether or not I use this, time will tell.<nav class=readmore><a href=https://1bit.pw/blog/hello-world/ itemprop=url> <span>Read More</span> <svg class="icon i-caret-r" viewbox="0 0 5.9 9" fill=currentcolor height=9 width=5.9 xmlns=http://www.w3.org/2000/svg> <path d="M5.9 4.5L4.5 3.1 1.4 0 0 1.4l3.1 3.1-3.1 3L1.4 9l3.1-3.1z"></path> </svg> </a></nav></div></article></main></div>
|
20
blog-tags/new/atom.xml
Normal file
20
blog-tags/new/atom.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
|
||||
<title>1bit.pw - new</title>
|
||||
<subtitle>Home of avitex</subtitle>
|
||||
<link href="https://1bit.pw/blog-tags/new/atom.xml" rel="self" type="application/atom+xml"/>
|
||||
<link href="https://1bit.pw"/>
|
||||
<generator uri="https://www.getzola.org/">Zola</generator>
|
||||
<updated>2018-08-22T00:00:00+00:00</updated>
|
||||
<id>https://1bit.pw/blog-tags/new/atom.xml</id>
|
||||
<entry xml:lang="en">
|
||||
<title>Hello World</title>
|
||||
<published>2018-08-22T00:00:00+00:00</published>
|
||||
<updated>2018-08-22T00:00:00+00:00</updated>
|
||||
<link href="https://1bit.pw/blog/hello-world/" type="text/html"/>
|
||||
<id>https://1bit.pw/blog/hello-world/</id>
|
||||
<content type="html"><p>Thought it would be a good idea to have somewhere to put my ramblings, and so I am here.<br />
|
||||
Whether or not I use this, time will tell.</p>
|
||||
<span id="continue-reading"></span></content>
|
||||
</entry>
|
||||
</feed>
|
1
blog-tags/new/index.html
Normal file
1
blog-tags/new/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!doctype html><html lang=en><head><meta charset=UTF-8><meta content=#111111 name=theme-color><meta content=avitex name=author><meta content=yes name=apple-mobile-web-app-capable><meta content="width=device-width,height=device-height,initial-scale=1.0" name=viewport><meta name=description><link href="https://1bit.pw/site.css?h=43c574aebfdebc5cd2672449b4a58d93d893a4ba1adaa800ac287d6fe1581b04" rel=stylesheet><link href=https://1bit.pw/fonts.min.css rel=stylesheet><link href=https://1bit.pw/favicon.png rel=icon type=image/png><link href=https://1bit.pw/atom.xml rel=alternate title=RSS type=application/rss+xml><title>Tag new - 1bit.pw</title><body><div class=container><header class=site-header><a class=brand href=https://1bit.pw> <img alt="brain logo" src=https://1bit.pw/brain-48px.png> </a><nav class=site-nav itemscope itemtype=http://schema.org/SiteNavigationElement><ul class="menu main-menu"><li><a class=active href=https://1bit.pw/blog itemprop=url> <span itemprop=name>Blog</span> </a><li><a href=https://1bit.pw/projects itemprop=url> <span itemprop=name>Projects</span> </a><li><a href=https://1bit.pw/about itemprop=url> <span itemprop=name>About</span> </a></ul><ul class="menu sub-menu"><li><a href=https://1bit.pw/blog itemprop=url> <span itemprop=name>Latest</span> </a><li><a href=https://1bit.pw/blog-tags itemprop=url> <span itemprop=name>Tags</span> </a></ul></nav></header><main class=content><h1>Tag: <code>new</code> <small>(<a href=https://1bit.pw/blog-tags/new/atom.xml>RSS</a>)</small></h1><article itemscope itemtype=http://schema.org/CreativeWork><header><h2 itemprop=name><a href=https://1bit.pw/blog/hello-world/>Hello World</a></h2><span class="muted mono"> <svg class="icon i-edit" style="margin-bottom: -3px" viewbox="0 0 32 32" fill=none height=16 stroke=currentcolor stroke-linecap=round stroke-linejoin=round stroke-width=6.25% width=16> <path d="M30 7 L25 2 5 22 3 29 10 27 Z M21 6 L26 11 Z M5 22 L10 27 Z"/> </svg> <time datetime=2018-08-22 itemprop=datePublished>Aug 22, 2018</time> <svg class="icon i-clock" viewbox="0 0 32 32" fill=none height=16 stroke=currentcolor stroke-linecap=round stroke-linejoin=round stroke-width=6.25% style=margin-bottom:-3px width=16> <circle cx=16 cy=16 r=14 /> <path d="M16 8 L16 16 20 20"/> </svg> <span>1 minute read</span> </span></header><div itemprop=summary><p>Thought it would be a good idea to have somewhere to put my ramblings, and so I am here.<br> Whether or not I use this, time will tell.<nav class=readmore><a href=https://1bit.pw/blog/hello-world/ itemprop=url> <span>Read More</span> <svg class="icon i-caret-r" viewbox="0 0 5.9 9" fill=currentcolor height=9 width=5.9 xmlns=http://www.w3.org/2000/svg> <path d="M5.9 4.5L4.5 3.1 1.4 0 0 1.4l3.1 3.1-3.1 3L1.4 9l3.1-3.1z"></path> </svg> </a></nav></div></article></main></div>
|
1
blog/hello-world/index.html
Normal file
1
blog/hello-world/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!doctype html><html lang=en><head><meta charset=UTF-8><meta content=#111111 name=theme-color><meta content=avitex name=author><meta content=yes name=apple-mobile-web-app-capable><meta content="width=device-width,height=device-height,initial-scale=1.0" name=viewport><meta content="Thought it would be a good idea to have somewhere to put my ramblings, and so I am here. Whether or not I use this, time will tell." name=description><link href="https://1bit.pw/site.css?h=43c574aebfdebc5cd2672449b4a58d93d893a4ba1adaa800ac287d6fe1581b04" rel=stylesheet><link href=https://1bit.pw/fonts.min.css rel=stylesheet><link href=https://1bit.pw/favicon.png rel=icon type=image/png><link href=https://1bit.pw/atom.xml rel=alternate title=RSS type=application/rss+xml><title>Hello World - 1bit.pw</title><body><div class=container><header class=site-header><a class=brand href=https://1bit.pw> <img alt="brain logo" src=https://1bit.pw/brain-48px.png> </a><nav class=site-nav itemscope itemtype=http://schema.org/SiteNavigationElement><ul class="menu main-menu"><li><a class=active href=https://1bit.pw/blog itemprop=url> <span itemprop=name>Blog</span> </a><li><a href=https://1bit.pw/projects itemprop=url> <span itemprop=name>Projects</span> </a><li><a href=https://1bit.pw/about itemprop=url> <span itemprop=name>About</span> </a></ul><ul class="menu sub-menu"><li><a href=https://1bit.pw/blog itemprop=url> <span itemprop=name>Latest</span> </a><li><a href=https://1bit.pw/blog-tags itemprop=url> <span itemprop=name>Tags</span> </a></ul></nav></header><main class=content><article itemscope itemtype=http://schema.org/BlogPosting><header class=article-header><span class="mono info"> <svg class="icon i-edit" style="margin-bottom: -3px" viewbox="0 0 32 32" fill=none height=16 stroke=currentcolor stroke-linecap=round stroke-linejoin=round stroke-width=6.25% width=16> <path d="M30 7 L25 2 5 22 3 29 10 27 Z M21 6 L26 11 Z M5 22 L10 27 Z"/> </svg> <time datetime=2018-08-22 itemprop=datePublished>Aug 22, 2018</time> <svg class="icon i-clock" viewbox="0 0 32 32" fill=none height=16 stroke=currentcolor stroke-linecap=round stroke-linejoin=round stroke-width=6.25% style=margin-bottom:-3px width=16> <circle cx=16 cy=16 r=14 /> <path d="M16 8 L16 16 20 20"/> </svg> <span>1 minute read</span> </span><h1 itemprop="name headline">Hello World</h1></header><div itemprop=articleBody><p>Thought it would be a good idea to have somewhere to put my ramblings, and so I am here.<br> Whether or not I use this, time will tell.</p><span id=continue-reading></span></div><footer><hr><p class="info muted mono">Published by avitex with tags <a href=https://1bit.pw/blog-tags/meta/>meta</a> and <a href=https://1bit.pw/blog-tags/new/>new</a></footer></article></main></div>
|
1
blog/index.html
Normal file
1
blog/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!doctype html><html lang=en><head><meta charset=UTF-8><meta content=#111111 name=theme-color><meta content=avitex name=author><meta content=yes name=apple-mobile-web-app-capable><meta content="width=device-width,height=device-height,initial-scale=1.0" name=viewport><meta content="The barren desert... uh... personal blog of avitex." name=description><link href="https://1bit.pw/site.css?h=43c574aebfdebc5cd2672449b4a58d93d893a4ba1adaa800ac287d6fe1581b04" rel=stylesheet><link href=https://1bit.pw/fonts.min.css rel=stylesheet><link href=https://1bit.pw/favicon.png rel=icon type=image/png><link href=https://1bit.pw/atom.xml rel=alternate title=RSS type=application/rss+xml><title>Blog - 1bit.pw</title><body><div class=container><header class=site-header><a class=brand href=https://1bit.pw> <img alt="brain logo" src=https://1bit.pw/brain-48px.png> </a><nav class=site-nav itemscope itemtype=http://schema.org/SiteNavigationElement><ul class="menu main-menu"><li><a class=active href=https://1bit.pw/blog itemprop=url> <span itemprop=name>Blog</span> </a><li><a href=https://1bit.pw/projects itemprop=url> <span itemprop=name>Projects</span> </a><li><a href=https://1bit.pw/about itemprop=url> <span itemprop=name>About</span> </a></ul><ul class="menu sub-menu"><li><a href=https://1bit.pw/blog itemprop=url> <span itemprop=name>Latest</span> </a><li><a href=https://1bit.pw/blog-tags itemprop=url> <span itemprop=name>Tags</span> </a></ul></nav></header><main class=content><main class=main><article itemscope itemtype=http://schema.org/CreativeWork><header><h2 itemprop=name><a href=https://1bit.pw/blog/hello-world/>Hello World</a></h2><span class="muted mono"> <svg class="icon i-edit" style="margin-bottom: -3px" viewbox="0 0 32 32" fill=none height=16 stroke=currentcolor stroke-linecap=round stroke-linejoin=round stroke-width=6.25% width=16> <path d="M30 7 L25 2 5 22 3 29 10 27 Z M21 6 L26 11 Z M5 22 L10 27 Z"/> </svg> <time datetime=2018-08-22 itemprop=datePublished>Aug 22, 2018</time> <svg class="icon i-clock" viewbox="0 0 32 32" fill=none height=16 stroke=currentcolor stroke-linecap=round stroke-linejoin=round stroke-width=6.25% style=margin-bottom:-3px width=16> <circle cx=16 cy=16 r=14 /> <path d="M16 8 L16 16 20 20"/> </svg> <span>1 minute read</span> </span></header><div itemprop=summary><p>Thought it would be a good idea to have somewhere to put my ramblings, and so I am here.<br> Whether or not I use this, time will tell.<nav class=readmore><a href=https://1bit.pw/blog/hello-world/ itemprop=url> <span>Read More</span> <svg class="icon i-caret-r" viewbox="0 0 5.9 9" fill=currentcolor height=9 width=5.9 xmlns=http://www.w3.org/2000/svg> <path d="M5.9 4.5L4.5 3.1 1.4 0 0 1.4l3.1 3.1-3.1 3L1.4 9l3.1-3.1z"></path> </svg> </a></nav></div></article><hr><nav class="pagination muted"><span>Page 1 of 1</span></nav></main></main></div>
|
1
blog/page/1/index.html
Normal file
1
blog/page/1/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!doctype html><meta charset=utf-8><link href=https://1bit.pw/blog/ rel=canonical><meta content="0; url=https://1bit.pw/blog/" http-equiv=refresh><title>Redirect</title><p><a href=https://1bit.pw/blog/>Click here</a> to be redirected.
|
BIN
brain-256px.png
Executable file
BIN
brain-256px.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 99 KiB |
BIN
brain-48px.png
Normal file
BIN
brain-48px.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
10
elasticlunr.min.js
vendored
Normal file
10
elasticlunr.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
favicon.png
Normal file
BIN
favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
1
fonts.min.css
vendored
Normal file
1
fonts.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
107
id/pk.txt
Normal file
107
id/pk.txt
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AAkFAlsTow4C
|
||||
GyAACgkQizZsRDyr6ULF4Q//ZnbAm4ds3o1gbHkT2mkknQ43K2pNJarJ+nZgtDrg
|
||||
NlWfdnpT5jvMjQQhafdpCqAzDhKyucTww49Qulym94B8sIVzuWp0J37mVmsVfbc5
|
||||
gjA9kjeB/vTtqYxCFm1+BTa6EgYfMF5wbbk+KP4QWvSZ87fLmG/ecCPQ4VCOKmwv
|
||||
3qBQrlG6mrYMOayzRIm+H+1lyUY/qKBVRqrxMbOZ3RDK0kPHDtjY8nM5gtMPd+SZ
|
||||
HhVb7lVDaq3Vo10hlOLK9UX2WzeKSp2an/d1PAewYDt61QfucfomUSMevZRgNOwB
|
||||
jN/oNUdSDLd5MW3kaWB5YQBdEz/45OKurQBuRtSEq6uDhjeE070CwCRKwMksmUpH
|
||||
hmx2C5ZfH5324epXUeuE5o49YXum9d5Q2trnR16kRp3Moub9zCcM2Ph8PPrcXsx+
|
||||
jWUWQaTWI4wGwIZ5ncCTk/01WQSOeyMsiQR4SHLb3mgjD88B1CWj0hbx3lHRtnHr
|
||||
V6PCnk+R87rnOagAG94UrTh02k43y0wUaKGlc7YklvRc4x1MsUei+KPKbJuFgUK+
|
||||
KyNMX/KfhUNw9aciRs7jp98O3pOVFneBg5mOW1WoiX+yut6AC13O4ZqW2GAtPxG9
|
||||
gaCe3cVibfjNGY3lGk8d4o5980rfqEclYj/kwPlaErRJNPqNp9iBX5mg172/JH4G
|
||||
3VM=
|
||||
=wEz/
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
1
index.html
Normal file
1
index.html
Normal file
@ -0,0 +1 @@
|
||||
<!doctype html><html lang=en><head><meta charset=UTF-8><meta content=#111111 name=theme-color><meta content=avitex name=author><meta content=yes name=apple-mobile-web-app-capable><meta content="width=device-width,height=device-height,initial-scale=1.0" name=viewport><meta content="The personal homepage of avitex" name=description><link href="https://1bit.pw/site.css?h=43c574aebfdebc5cd2672449b4a58d93d893a4ba1adaa800ac287d6fe1581b04" rel=stylesheet><link href=https://1bit.pw/fonts.min.css rel=stylesheet><link href=https://1bit.pw/favicon.png rel=icon type=image/png><link href=https://1bit.pw/atom.xml rel=alternate title=RSS type=application/rss+xml><title>Home of avitex - 1bit.pw</title><body><main class=home-page><img alt="brain logo" src=https://1bit.pw/brain-256px.png><div class=inner><h1>avitex</h1><nav class=site-nav itemscope itemtype=http://schema.org/SiteNavigationElement><ul class="menu main-menu"><li><a href=https://1bit.pw/blog itemprop=url> <span itemprop=name>Blog</span> </a><li><a href=https://1bit.pw/projects itemprop=url> <span itemprop=name>Projects</span> </a><li><a href=https://1bit.pw/about itemprop=url> <span itemprop=name>About</span> </a></ul></nav></div></main>
|
1
projects/index.html
Normal file
1
projects/index.html
Normal file
File diff suppressed because one or more lines are too long
3
robots.txt
Normal file
3
robots.txt
Normal file
@ -0,0 +1,3 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
Sitemap: https://1bit.pw/sitemap.xml
|
191
search.js
Normal file
191
search.js
Normal file
@ -0,0 +1,191 @@
|
||||
// TODO: remove
|
||||
// <script type="text/javascript" src="{{ get_url(path="elasticlunr.min.js") | safe }}"></script>
|
||||
// <script type="text/javascript" src="{{ get_url(path="search_index.en.js") | safe }}"></script>
|
||||
// <script type="text/javascript" src="{{ get_url(path="search.js") | safe }}"></script>
|
||||
|
||||
function debounce(func, wait) {
|
||||
var timeout;
|
||||
|
||||
return function () {
|
||||
var context = this;
|
||||
var args = arguments;
|
||||
clearTimeout(timeout);
|
||||
|
||||
timeout = setTimeout(function () {
|
||||
timeout = null;
|
||||
func.apply(context, args);
|
||||
}, wait);
|
||||
};
|
||||
}
|
||||
|
||||
// Taken from mdbook
|
||||
// The strategy is as follows:
|
||||
// First, assign a value to each word in the document:
|
||||
// Words that correspond to search terms (stemmer aware): 40
|
||||
// Normal words: 2
|
||||
// First word in a sentence: 8
|
||||
// Then use a sliding window with a constant number of words and count the
|
||||
// sum of the values of the words within the window. Then use the window that got the
|
||||
// maximum sum. If there are multiple maximas, then get the last one.
|
||||
// Enclose the terms in <b>.
|
||||
function makeTeaser(body, terms) {
|
||||
var TERM_WEIGHT = 40;
|
||||
var NORMAL_WORD_WEIGHT = 2;
|
||||
var FIRST_WORD_WEIGHT = 8;
|
||||
var TEASER_MAX_WORDS = 30;
|
||||
|
||||
var stemmedTerms = terms.map(function (w) {
|
||||
return elasticlunr.stemmer(w.toLowerCase());
|
||||
});
|
||||
var termFound = false;
|
||||
var index = 0;
|
||||
var weighted = []; // contains elements of ["word", weight, index_in_document]
|
||||
|
||||
// split in sentences, then words
|
||||
var sentences = body.toLowerCase().split(". ");
|
||||
|
||||
for (var i in sentences) {
|
||||
var words = sentences[i].split(" ");
|
||||
var value = FIRST_WORD_WEIGHT;
|
||||
|
||||
for (var j in words) {
|
||||
var word = words[j];
|
||||
|
||||
if (word.length > 0) {
|
||||
for (var k in stemmedTerms) {
|
||||
if (elasticlunr.stemmer(word).startsWith(stemmedTerms[k])) {
|
||||
value = TERM_WEIGHT;
|
||||
termFound = true;
|
||||
}
|
||||
}
|
||||
weighted.push([word, value, index]);
|
||||
value = NORMAL_WORD_WEIGHT;
|
||||
}
|
||||
|
||||
index += word.length;
|
||||
index += 1; // ' ' or '.' if last word in sentence
|
||||
}
|
||||
|
||||
index += 1; // because we split at a two-char boundary '. '
|
||||
}
|
||||
|
||||
if (weighted.length === 0) {
|
||||
return body;
|
||||
}
|
||||
|
||||
var windowWeights = [];
|
||||
var windowSize = Math.min(weighted.length, TEASER_MAX_WORDS);
|
||||
// We add a window with all the weights first
|
||||
var curSum = 0;
|
||||
for (var i = 0; i < windowSize; i++) {
|
||||
curSum += weighted[i][1];
|
||||
}
|
||||
windowWeights.push(curSum);
|
||||
|
||||
for (var i = 0; i < weighted.length - windowSize; i++) {
|
||||
curSum -= weighted[i][1];
|
||||
curSum += weighted[i + windowSize][1];
|
||||
windowWeights.push(curSum);
|
||||
}
|
||||
|
||||
// If we didn't find the term, just pick the first window
|
||||
var maxSumIndex = 0;
|
||||
if (termFound) {
|
||||
var maxFound = 0;
|
||||
// backwards
|
||||
for (var i = windowWeights.length - 1; i >= 0; i--) {
|
||||
if (windowWeights[i] > maxFound) {
|
||||
maxFound = windowWeights[i];
|
||||
maxSumIndex = i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var teaser = [];
|
||||
var startIndex = weighted[maxSumIndex][2];
|
||||
for (var i = maxSumIndex; i < maxSumIndex + windowSize; i++) {
|
||||
var word = weighted[i];
|
||||
if (startIndex < word[2]) {
|
||||
// missing text from index to start of `word`
|
||||
teaser.push(body.substring(startIndex, word[2]));
|
||||
startIndex = word[2];
|
||||
}
|
||||
|
||||
// add <em/> around search terms
|
||||
if (word[1] === TERM_WEIGHT) {
|
||||
teaser.push("<b>");
|
||||
}
|
||||
startIndex = word[2] + word[0].length;
|
||||
teaser.push(body.substring(word[2], startIndex));
|
||||
|
||||
if (word[1] === TERM_WEIGHT) {
|
||||
teaser.push("</b>");
|
||||
}
|
||||
}
|
||||
teaser.push("…");
|
||||
return teaser.join("");
|
||||
}
|
||||
|
||||
function formatSearchResultItem(item, terms) {
|
||||
return '<div class="search-results__item">'
|
||||
+ `<a href="${item.ref}">${item.doc.title}</a>`
|
||||
+ `<div>${makeTeaser(item.doc.body, terms)}</div>`
|
||||
+ '</div>';
|
||||
}
|
||||
|
||||
function initSearch() {
|
||||
var $searchInput = document.getElementById("search");
|
||||
var $searchResults = document.querySelector(".search-results");
|
||||
var $searchResultsItems = document.querySelector(".search-results__items");
|
||||
var MAX_ITEMS = 10;
|
||||
|
||||
var options = {
|
||||
bool: "AND",
|
||||
fields: {
|
||||
title: {boost: 2},
|
||||
body: {boost: 1},
|
||||
}
|
||||
};
|
||||
var currentTerm = "";
|
||||
var index = elasticlunr.Index.load(window.searchIndex);
|
||||
|
||||
$searchInput.addEventListener("keyup", debounce(function() {
|
||||
var term = $searchInput.value.trim();
|
||||
if (term === currentTerm || !index) {
|
||||
return;
|
||||
}
|
||||
$searchResults.style.display = term === "" ? "none" : "block";
|
||||
$searchResultsItems.innerHTML = "";
|
||||
if (term === "") {
|
||||
return;
|
||||
}
|
||||
|
||||
var results = index.search(term, options);
|
||||
if (results.length === 0) {
|
||||
$searchResults.style.display = "none";
|
||||
return;
|
||||
}
|
||||
|
||||
currentTerm = term;
|
||||
for (var i = 0; i < Math.min(results.length, MAX_ITEMS); i++) {
|
||||
var item = document.createElement("li");
|
||||
item.innerHTML = formatSearchResultItem(results[i], term.split(" "));
|
||||
$searchResultsItems.appendChild(item);
|
||||
}
|
||||
}, 150));
|
||||
|
||||
window.addEventListener('click', function(e) {
|
||||
if ($searchResults.style.display == "block" && !$searchResults.contains(e.target)) {
|
||||
$searchResults.style.display = "none";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if (document.readyState === "complete" ||
|
||||
(document.readyState !== "loading" && !document.documentElement.doScroll)
|
||||
) {
|
||||
initSearch();
|
||||
} else {
|
||||
document.addEventListener("DOMContentLoaded", initSearch);
|
||||
}
|
1
search_index.en.js
Normal file
1
search_index.en.js
Normal file
File diff suppressed because one or more lines are too long
1
site.css
Normal file
1
site.css
Normal file
@ -0,0 +1 @@
|
||||
*{margin:0;padding:0;box-sizing:border-box}html,body{width:100%;height:100%}.container{width:100%;max-width:900px;margin-left:auto;margin-right:auto;padding-left:1rem;padding-right:1rem;padding-bottom:2rem}@media screen and (min-width: 1200px){*{scrollbar-width:thin;scrollbar-color:#111 #161616}*::-webkit-scrollbar{width:16px}*::-webkit-scrollbar-track{background:#161616}*::-webkit-scrollbar-thumb{background-color:#111;border:3px solid #161616}}.site-header{padding:2rem 0;display:flex;align-items:center}.site-header .brand{margin-right:0.5rem;opacity:0.8}.site-header .brand:hover{opacity:1}.site-header nav{flex:1}#search input{padding:0.5rem 0.75rem;border:none;font-family:"Source Code Pro",monospace;background-color:#1d1d1d;border-radius:4px}#search .results-container{display:none}.site-nav ul{padding:0;list-style:none;text-transform:uppercase;letter-spacing:0.1rem;font-weight:bold;font-family:"Space Grotesk",Helvetica,sans-serif;font-size:0.8rem}.site-nav li{display:inline-block;padding:0 0.2rem}.site-nav a{display:inline-block;color:#a1a1a1;border:none;text-decoration:none}.site-nav a:hover,.site-nav a.active{color:#f1f1f1}.site-nav .main-menu{font-size:0.75rem}.site-nav .sub-menu{font-size:0.65rem}.home-page{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.home-page .inner h1{margin:0}@media (max-width: 640px){.home-page{text-align:center;flex-direction:column}}*{color:inherit;line-height:1.3;text-decoration:inherit}html{color:#f1f1f1;background:#111;font-family:"Charter",serif;text-rendering:optimizeLegibility}@media all and (min-width: 640px){html{font-size:17px}}@media all and (min-width: 720px){html{font-size:18px}}@media all and (min-width: 1024px){html{font-size:19px}}main{font-size:0.9rem}main a{color:#ef5350;border-bottom:1px solid #ef5350}h1,h2,h3{font-weight:bold;font-family:"Space Grotesk",Helvetica,sans-serif;margin:1.2rem 0 0.4rem 0}h1>a,h2>a,h3>a{color:inherit;border-bottom:none}h1 a.anchor,h2 a.anchor,h3 a.anchor{display:none}h1 a.anchor::after,h2 a.anchor::after,h3 a.anchor::after{color:#ef5350;content:" #";font-weight:bold;text-decoration:none}h1:hover a.anchor,h2:hover a.anchor,h3:hover a.anchor{display:inline}h1{font-size:2.5rem}h2{font-size:1.5rem}h3{font-size:1.25rem}small{font-size:0.5em}ul,ol{padding-left:1rem}ul li,ol li{padding-bottom:0.2rem}hr{border:none;height:2px;margin-bottom:0.5rem;margin-top:0.5rem;background-color:#161616}article header,article footer .info{font-size:0.8em}article .icon{color:#a1a1a1}article .readmore span{font-size:0.9em}article .readmore .icon{color:#ef5350}p{padding-top:0.5rem;padding-bottom:0.5rem}pre{background-color:#1d1d1d;font-size:0.8em;overflow-x:auto;padding:0.8rem;border-radius:4px;margin-bottom:0.5rem;border-left:4px solid #ef5350}table{border-collapse:collapse;border-spacing:0}table tr{border-bottom:1px solid #161616}table th{padding-top:0.6em;padding-bottom:0.4em;padding-left:0.8em;padding-right:0.8em;font-size:0.9em;font-family:"Space Grotesk",Helvetica,sans-serif;font-weight:normal;background-color:#161616}table td{padding:0.4em 0.6em}code{font-family:"Source Code Pro",monospace;background-color:#1d1d1d;padding:2.5px 5px;border-radius:4px;font-size:0.75em}img.badge,a.badge img{vertical-align:middle}.badge{border:none;text-decoration:none}.muted{color:#a1a1a1}.mono{font-family:"Source Code Pro",monospace}
|
37
sitemap.xml
Normal file
37
sitemap.xml
Normal file
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>https://1bit.pw/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://1bit.pw/about/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://1bit.pw/about/bio/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://1bit.pw/about/social/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://1bit.pw/blog/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://1bit.pw/blog/hello-world/</loc>
|
||||
<lastmod>2018-08-22</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://1bit.pw/blog/page/1/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://1bit.pw/blog/tags/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://1bit.pw/blog/tags/meta/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://1bit.pw/blog/tags/new/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://1bit.pw/projects/</loc>
|
||||
</url>
|
||||
</urlset>
|
Loading…
Reference in New Issue
Block a user