Skip to content

Commit

Permalink
get rid of old unmaintained ML stuff, update publications
Browse files Browse the repository at this point in the history
  • Loading branch information
donald-pinckney committed Mar 30, 2023
1 parent c188727 commit 038dd5f
Show file tree
Hide file tree
Showing 143 changed files with 101 additions and 529,056 deletions.
10 changes: 0 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
books/tensorflow/book/
books/pytorch/book/
books/pl/book/
_posts/tensorflow/
_posts/pytorch/
_posts/pl/
_drafts/tensorflow/
_drafts/pytorch/
_drafts/pl/

# Ignore docs files
_gh_pages
_site
Expand Down
56 changes: 30 additions & 26 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,30 @@ <h1>
{% assign bu = site.baseurl | append: "/" %}
{% assign blog_bu = site.baseurl | append: "/blog/" %}

<a class="horizontal-item sidebar-nav-item{% if page.url == bu %} active{% endif %}" href="{{ site.baseurl }}/">Home</a>
<a class="horizontal-item sidebar-nav-item{% if page.url == bu %} active{% endif %}"
href="{{ site.baseurl }}/">Home</a>

{% comment %}
The code below dynamically generates a sidebar nav of pages with
`layout: page` in the front-matter. See readme for usage.
The code below dynamically generates a sidebar nav of pages with
`layout: page` in the front-matter. See readme for usage.
{% endcomment %}

{% assign pages_list = site.pages %}
{% for node in pages_list %}
{% if node.title != null and node.sortBelow != true %}
{% if (node.layout == "page") %}
{% if page.url == node.url %}
{% assign activity = "active" %}
{% else %}
{% assign activity = "" %}
{% endif %}
<a class="horizontal-item sidebar-nav-item {{ activity }}" href="{{ node.url }}">{{ node.title }}</a>
{% endif %}
{% endif %}
{% if node.title != null and node.sortBelow != true %}
{% if (node.layout == "page") %}
{% if page.url == node.url %}
{% assign activity = "active" %}
{% else %}
{% assign activity = "" %}
{% endif %}
<a class="horizontal-item sidebar-nav-item {{ activity }}" href="{{ node.url }}">{{ node.title }}</a>
{% endif %}
{% endif %}
{% endfor %}

<a class="horizontal-item sidebar-nav-item{% if page.url == blog_bu or page.layout == 'post' or page.layout == 'bookpost' %} active{% endif %}" href="{{ site.baseurl }}/blog/">Blog Posts</a>

<a class="horizontal-item sidebar-nav-item" href="{{ site.baseurl }}/books/pytorch/book/ch1-setup/intro.html">PyTorch Guide</a>
<a class="horizontal-item sidebar-nav-item{% if page.url == blog_bu or page.layout == 'post' or page.layout == 'bookpost' %} active{% endif %}"
href="{{ site.baseurl }}/blog/">Blog Posts</a>

<a class="horizontal-item sidebar-nav-item" href="https://jessie-jingwen-lin.github.io" target="_blank">Wife</a>

Expand All @@ -51,25 +51,29 @@ <h1>

<div class="horizontal-block">
{% for node in pages_list %}
{% if node.title != null and node.sortBelow == true %}
{% if node.layout == "page" %}
<a class="horizontal-item sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="{{ node.url }}">{{ node.title }}</a>
{% endif %}
{% endif %}
{% if node.title != null and node.sortBelow == true %}
{% if node.layout == "page" %}
<a class="horizontal-item sidebar-nav-item{% if page.url == node.url %} active{% endif %}"
href="{{ node.url }}">{{ node.title }}</a>
{% endif %}
{% endif %}
{% endfor %}


<a href="https://github.com/{{ site.social.github }}" class="sidebar-nav-item horizontal-item social" target="_blank">
<a href="https://github.com/{{ site.social.github }}" class="sidebar-nav-item horizontal-item social"
target="_blank">
<i class="fa fa-github"></i><span class="only-desktop"> {{ site.social.github}}</span>
</a>
<a href="https://twitter.com/{{ site.social.twitter }}" class="sidebar-nav-item horizontal-item social" target="_blank">
<a href="https://twitter.com/{{ site.social.twitter }}" class="sidebar-nav-item horizontal-item social"
target="_blank">
<i class="fa fa-twitter"></i><span class="only-desktop">@{{site.social.twitter}}</span>
</a>
<a href="mailto:{{ site.social.email }}" class="sidebar-nav-item horizontal-item social" target="_blank">
<i class="fa fa-envelope"></i>&nbsp;<span class="only-desktop">{{site.social.email}}</span>
</a>
<a href="{{ site.baseurl }}/public/files/documents/resume.pdf" class="sidebar-nav-item horizontal-item social" target="_blank">
<i class="fa fa-file"></i>&nbsp;<span>Curriculum vitae</span>
<a href="{{ site.baseurl }}/public/files/documents/resume.pdf" class="sidebar-nav-item horizontal-item social"
target="_blank">
<i class="fa fa-file"></i>&nbsp;<span>Curriculum vitae</span>
</a>

</div>
Expand All @@ -83,4 +87,4 @@ <h1>
</p>
</div>
</div>
</div>
</div>
78 changes: 32 additions & 46 deletions _layouts/bookpost.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,72 +7,58 @@
<div class="post">

{% if page.isEditable == true %}
<h1 class="post-title titular floating-box-left">{{ page.title }}</h1>
<h1 class="post-title titular floating-box-left">{{ page.title }}</h1>
{% else %}
<h1 class="post-title titular">{{ page.title }}</h1>
<h1 class="post-title titular">{{ page.title }}</h1>
{% endif %}
<div class="floating-box-right">
{% if page.isEditable == true %}
{% if page.editPath %}
<a href="{{site.repo}}/blob/src/{{page.editPath}}" target="_blank">
{% else %}
<a href="{{site.repo}}/blob/src/{{page.path}}" target="_blank">

<div class="floating-box-right">
{% if page.isEditable == true %}
{% if page.editPath %}
<a href="{{site.repo}}/blob/src/{{page.editPath}}" target="_blank">
{% else %}
<a href="{{site.repo}}/blob/src/{{page.path}}" target="_blank">
{% endif %}
<i class="fa fa-github"></i>Edit this page</a><br />
{% endif %}

{% if page.subscribeName %}
<a href="{{site.subscription_issues[page.subscribeName]}}" target="_blank">
<i class="fa fa-bullhorn"></i>Subscribe to new posts
</a>
<a href="{{site.subscription_issues[page.subscribeName]}}" target="_blank">
<i class="fa fa-bullhorn"></i>Subscribe to new posts
</a>
{% endif %}
</div>
</div>



<span class="post-date">{{ page.date | date_to_string }}

<div class="post-categories">
{% if post %}
{% assign categories = post.categories %}
{% else %}
{% assign categories = page.categories %}
{% endif %}
{% for category in categories %}
<a href="{{site.baseurl}}/books/{{category | downcase}}/book">Read this post in book format instead</a>
{% unless forloop.last %}&nbsp;{% endunless %}
{% endfor %}
</div>
<span class="post-date">{{ page.date | date_to_string }}</span>

</span>

{% if page.noToc != true %}
<div id="toc"></div>
<script type="text/javascript">
$(document).ready(function() {
// alert("READY");
{% if page.noToc != true %}
<div id="toc"></div>
<script type="text/javascript">
$(document).ready(function () {
// alert("READY");
$('#toc').toc();
});
</script>
{% endif %}
});
</script>
{% endif %}

{{ content | fix_latex }}
{{ content | fix_latex }}
</div>


<div class="related">
<h2>Related Posts</h2>
<ul class="related-posts">
{% for post in site.related_posts limit:3 %}
<li>
<h3>
<a href="{{ post.url }}" class="titular">
{{ post.title }}
<small>{{ post.date | date_to_string }}</small>
</a>
</h3>
</li>
<li>
<h3>
<a href="{{ post.url }}" class="titular">
{{ post.title }}
<small>{{ post.date | date_to_string }}</small>
</a>
</h3>
</li>
{% endfor %}
</ul>
</div>
</div>
79 changes: 32 additions & 47 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,56 +7,43 @@
<div class="post">

{% if page.isEditable == true %}
<h1 class="post-title titular floating-box-left">{{ page.title }}</h1>
<h1 class="post-title titular floating-box-left">{{ page.title }}</h1>
{% else %}
<h1 class="post-title titular">{{ page.title }}</h1>
<h1 class="post-title titular">{{ page.title }}</h1>
{% endif %}
<div class="floating-box-right">
{% if page.isEditable == true %}
{% if page.editPath %}
<a href="{{site.repo}}/blob/src/{{page.editPath}}" target="_blank">
{% else %}
<a href="{{site.repo}}/blob/src/{{page.path}}" target="_blank">

<div class="floating-box-right">
{% if page.isEditable == true %}
{% if page.editPath %}
<a href="{{site.repo}}/blob/src/{{page.editPath}}" target="_blank">
{% else %}
<a href="{{site.repo}}/blob/src/{{page.path}}" target="_blank">
{% endif %}
<i class="fa fa-github"></i>Edit this page</a><br />
{% endif %}


{% if page.subscribeName %}
<a href="{{site.subscription_issues[page.subscribeName]}}" target="_blank">
<i class="fa fa-bullhorn"></i>Subscribe to new posts
</a>
<a href="{{site.subscription_issues[page.subscribeName]}}" target="_blank">
<i class="fa fa-bullhorn"></i>Subscribe to new posts
</a>
{% endif %}
</div>

<span class="post-date">{{ page.date | date_to_string }}. Categories:
<!-- <div class="post-categories"> -->
{% if post %}
{% assign categories = post.categories %}
{% else %}
{% assign categories = page.categories %}
{% endif %}
{% for category in categories %}
<a href="{{site.baseurl}}/categories/#{{category|slugize}}">{{category}}</a>
{% unless forloop.last %}&nbsp;{% endunless %}
{% endfor %}
<!-- </div> -->
</div>

</span>
<span class="post-date">{{ page.date | date_to_string }}</span>


{% if page.noToc != true %}
<div id="toc"></div>
<script type="text/javascript">
$(document).ready(function() {
// alert("READY");
{% if page.noToc != true %}
<div id="toc"></div>
<script type="text/javascript">
$(document).ready(function () {
// alert("READY");
$('#toc').toc();
});
</script>
{% endif %}
});
</script>
{% endif %}

{{ content | fix_latex }}
{{ content | fix_latex }}
</div>


Expand All @@ -65,16 +52,14 @@ <h1 class="post-title titular">{{ page.title }}</h1>
<h2>Related Posts</h2>
<ul class="related-posts">
{% for post in site.related_posts limit:3 %}
<li>
<h3>
<a href="{{ post.url }}" class="titular">
{{ post.title }}
<small>{{ post.date | date_to_string }}</small>
</a>
</h3>
</li>
<li>
<h3>
<a href="{{ post.url }}" class="titular">
{{ post.title }}
<small>{{ post.date | date_to_string }}</small>
</a>
</h3>
</li>
{% endfor %}
</ul>
</div>


</div>
7 changes: 0 additions & 7 deletions books/build_all.sh

This file was deleted.

57 changes: 0 additions & 57 deletions books/build_book.sh

This file was deleted.

9 changes: 0 additions & 9 deletions books/pl/book.toml

This file was deleted.

Loading

0 comments on commit 038dd5f

Please sign in to comment.