Skip to content

Commit

Permalink
sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
Soliprem committed Apr 2, 2024
1 parent 38826a8 commit 976ae4f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion content/posts/gun_deaths_paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ title: "An analysis of the correlation between gun regulation and public safety
date: 2024-04-02T00:56:05+02:00
---
{{< load-plotly >}}
{{< plotly json="posts/gun_stuff.json" height="500px" modebar="false">}}
{{< plotly json="/plotly/gun_stuff.json" height="500px" modebar="false">}}
1 change: 1 addition & 0 deletions public/en/plotly/gun_stuff.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"x":{"visdat":{"20f46be359eb":["function () ","plotlyVisDat"]},"cur_data":"20f46be359eb","attrs":{"20f46be359eb":{"x":{},"y":{},"z":{},"color":{},"alpha_stroke":1,"sizes":[10,100],"spans":[1,20]},"20f46be359eb.1":{"x":{},"y":{},"z":{},"color":{},"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"scatter3d","mode":"markers","inherit":true}},"layout":{"width":null,"height":null,"margin":{"b":40,"l":60,"t":25,"r":10}},"source":"A","config":{"modeBarButtonsToAdd":["hoverclosest","hovercompare"],"showSendToCloud":false},"layoutAttrs":{"20f46be359eb":{"scene":{"xaxis":{"title":"Gun Regulation Index"},"yaxis":{"title":"Violent Crime rate"},"zaxis":{"title":"Gun Death rate"}}}}},"width":null,"height":null,"sizingPolicy":{"defaultWidth":"100%","defaultHeight":400,"padding":0,"fill":null,"viewer":{"defaultWidth":null,"defaultHeight":null,"padding":null,"fill":true,"suppress":false,"paneHeight":null},"browser":{"defaultWidth":null,"defaultHeight":null,"padding":null,"fill":true,"external":false},"knitr":{"defaultWidth":null,"defaultHeight":null,"figure":true}},"dependencies":[{"name":"typedarray","version":"0.1","src":{"file":"htmlwidgets/lib/typedarray"},"meta":null,"script":"typedarray.min.js","stylesheet":null,"head":null,"attachment":null,"package":"plotly","all_files":false},{"name":"jquery","version":"3.5.1","src":{"file":"lib/jquery"},"meta":null,"script":"jquery.min.js","stylesheet":null,"head":null,"attachment":null,"package":"crosstalk","all_files":true},{"name":"crosstalk","version":"1.2.1","src":{"file":"www"},"meta":null,"script":"js/crosstalk.min.js","stylesheet":"css/crosstalk.min.css","head":null,"attachment":null,"package":"crosstalk","all_files":true},{"name":"plotly-htmlwidgets-css","version":"2.11.1","src":{"file":"htmlwidgets/lib/plotlyjs"},"meta":null,"script":null,"stylesheet":"plotly-htmlwidgets.css","head":null,"attachment":null,"package":"plotly","all_files":false},{"name":"plotly-main","version":"2.11.1","src":{"file":"htmlwidgets/lib/plotlyjs"},"meta":null,"script":"plotly-latest.min.js","stylesheet":null,"head":null,"attachment":null,"package":"plotly","all_files":false}],"elementId":null,"preRenderHook":["function (p, registerFrames = TRUE) ","{"," UseMethod(\"plotly_build\")","}"],"jsHooks":[]}
6 changes: 3 additions & 3 deletions public/en/posts/gun_deaths_paper/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ <h1>An analysis of the correlation between gun regulation and public safety in t



<div id="posts/gun_stuff.json" class="plotly" style="height:500px"></div>
<div id="/plotly/gun_stuff.json" class="plotly" style="height:500px"></div>
<script>
Plotly.d3.json("posts/gun_stuff.json", function(err, fig) {
Plotly.plot('posts\/gun_stuff.json', fig.data, fig.layout, {responsive: true});
Plotly.d3.json("/plotly/gun_stuff.json", function(err, fig) {
Plotly.plot('\/plotly\/gun_stuff.json', fig.data, fig.layout, {responsive: true});
});
</script>
</p>
Expand Down
10 changes: 5 additions & 5 deletions public/en/posts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@

<ul>
<li>
<a href="https://twitter.com/intent/tweet?hashtags=hermit2&amp;url=http%3a%2f%2flocalhost%3a1313%2fen%2fposts%2f&amp;text=Posts" target="_blank" rel="noopener" aria-label="Share on X"><svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path class="st0" d="m21.3 21.1 -11.4 -18.2h-7.2l11.4 18.2zm-18.6 0 7.2 -6.6m4.2 -5 7.2 -6.6"/></svg></a>
<a href="https://twitter.com/intent/tweet?hashtags=hermit2&amp;url=http%3a%2f%2flocalhost%3a1313%2fen%2ftags%2f&amp;text=Tags" target="_blank" rel="noopener" aria-label="Share on X"><svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path class="st0" d="m21.3 21.1 -11.4 -18.2h-7.2l11.4 18.2zm-18.6 0 7.2 -6.6m4.2 -5 7.2 -6.6"/></svg></a>
</li>
<li>
<a href="https://facebook.com/sharer/sharer.php?u=http%3a%2f%2flocalhost%3a1313%2fen%2fposts%2f" target="_blank" rel="noopener" aria-label="Share on Facebook"><svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path></svg></a>
<a href="https://facebook.com/sharer/sharer.php?u=http%3a%2f%2flocalhost%3a1313%2fen%2ftags%2f" target="_blank" rel="noopener" aria-label="Share on Facebook"><svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path></svg></a>
</li>
<li>
<a href="mailto:?subject=Posts&amp;body=http%3a%2f%2flocalhost%3a1313%2fen%2fposts%2f" target="_self" rel="noopener" aria-label="Share on Email"><svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg></a>
<a href="mailto:?subject=Tags&amp;body=http%3a%2f%2flocalhost%3a1313%2fen%2ftags%2f" target="_self" rel="noopener" aria-label="Share on Email"><svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg></a>
</li>
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&amp;url=http%3a%2f%2flocalhost%3a1313%2fen%2fposts%2f&amp;source=http%3a%2f%2flocalhost%3a1313%2f&amp;title=Posts&amp;summary=Posts%2c%20by%20Francesco%20Prem%20Solidoro%0a%0a%3cnil%3e%0a" target="_blank" rel="noopener" aria-label="Share on LinkedIn"><svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle></svg></a>
<a href="https://www.linkedin.com/shareArticle?mini=true&amp;url=http%3a%2f%2flocalhost%3a1313%2fen%2ftags%2f&amp;source=http%3a%2f%2flocalhost%3a1313%2f&amp;title=Tags&amp;summary=Tags%2c%20by%20Francesco%20Prem%20Solidoro%0a%0a%3cnil%3e%0a" target="_blank" rel="noopener" aria-label="Share on LinkedIn"><svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle></svg></a>
</li>
<li>
<a href="#" onclick="linkShare(&#34;Posts&#34;,&#34;http://localhost:1313/en/posts/&#34;,&#34;Posts, by Francesco Prem Solidoro\n\n\u003cnil\u003e\n&#34;); return false;" target="_self" rel="noopener" aria-label="Copy Link"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg></a>
<a href="#" onclick="linkShare(&#34;Tags&#34;,&#34;http://localhost:1313/en/tags/&#34;,&#34;Tags, by Francesco Prem Solidoro\n\n\u003cnil\u003e\n&#34;); return false;" target="_self" rel="noopener" aria-label="Copy Link"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg></a>
</li>
</ul>
</div><button id="menu-btn" class="hdr-btn" title="Menu"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-menu"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg></button>
Expand Down
6 changes: 3 additions & 3 deletions public/en/posts/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
<div id="posts/gun_stuff.json" class="plotly" style="height:500px"></div>
<div id="/plotly/gun_stuff.json" class="plotly" style="height:500px"></div>
<script>
Plotly.d3.json("posts/gun_stuff.json", function(err, fig) {
Plotly.plot('posts\/gun_stuff.json', fig.data, fig.layout, {responsive: true});
Plotly.d3.json("/plotly/gun_stuff.json", function(err, fig) {
Plotly.plot('\/plotly\/gun_stuff.json', fig.data, fig.layout, {responsive: true});
});
</script>
</p>
Expand Down

0 comments on commit 976ae4f

Please sign in to comment.