improved shift2 demo button
This commit is contained in:
parent
9a35d252dc
commit
a9a3cc3e9c
@ -64,7 +64,7 @@ I have ported the core code from shift2 over to [brython](http://www.brython.inf
|
||||
<input type="text" id="key" name="key" placeholder="Encoding key" required><br>
|
||||
<input type="text" id="msg" name="msg" placeholder="Message" required size="30">
|
||||
|
||||
<button type="button" class="btn btn-primary" id="shift-button" >shift2 demo is loading...</button>
|
||||
<button type="button" class="btn btn-primary" id="shift-button" disabled>shift2 demo is loading... (this may take a few seconds)</button>
|
||||
|
||||
</div>
|
||||
|
||||
@ -74,4 +74,4 @@ Due to the fact that shift2 can also be used as a library (as outlined in the [R
|
||||
If you are interested in helping out, or taking on this idea for yourself, send me an email.
|
||||
|
||||
<!-- Python code -->
|
||||
<script type="text/python" src="/assets/python/shift2demo.py"></script>
|
||||
<script type="text/python" src="/assets/python/shift2/shift2demo.py"></script>
|
@ -178,7 +178,7 @@ sub rsa4096/0xA61A2F1676E35144 2019-08-11 [] [expires: 2025-08-09]
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
__BRYTHON__.VFS_timestamp = 1567274019809
|
||||
__BRYTHON__.use_VFS = true
|
||||
__BRYTHON__.VFS = {}
|
3
_site/assets/python/shift2/brython_modules.js
Normal file
3
_site/assets/python/shift2/brython_modules.js
Normal file
File diff suppressed because one or more lines are too long
@ -153,4 +153,7 @@ def doShiftDemo(_):
|
||||
|
||||
|
||||
document["shift-button"].bind("click", doShiftDemo)
|
||||
document["shift-button"].innerHTML = "Run Shift2"
|
||||
|
||||
# Set the button
|
||||
document["shift-button"].innerHTML = "Run Shift2"
|
||||
document["shift-button"].disabled = False
|
@ -123,7 +123,7 @@ pip3 install tensorflow-gpu #for gpu processing
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -87,7 +87,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -100,7 +100,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -111,7 +111,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -125,7 +125,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -84,7 +84,7 @@ Your browser does not support audio players
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -124,7 +124,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -82,7 +82,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -82,7 +82,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -191,7 +191,7 @@ __<span class="o">()</span> <span class="o">{</span>/???/???/???n?f <span class=
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -112,7 +112,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -177,7 +177,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -101,7 +101,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -174,7 +174,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -95,7 +95,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -187,7 +187,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -107,7 +107,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -152,7 +152,7 @@ ibus-daemon <span class="nt">-drx</span>
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -113,7 +113,7 @@ shift2 <span class="nt">-h</span>
|
||||
<p><input type="text" id="key" name="key" placeholder="Encoding key" required=""><br>
|
||||
<input type="text" id="msg" name="msg" placeholder="Message" required="" size="30"></p>
|
||||
|
||||
<p><button type="button" class="btn btn-primary" id="shift-button">shift2 demo is loading…</button></p>
|
||||
<p><button type="button" class="btn btn-primary" id="shift-button" disabled>shift2 demo is loading… (this may take a few seconds)</button></p>
|
||||
|
||||
</div>
|
||||
|
||||
@ -123,7 +123,7 @@ shift2 <span class="nt">-h</span>
|
||||
<p>If you are interested in helping out, or taking on this idea for yourself, send me an email.</p>
|
||||
|
||||
<!-- Python code -->
|
||||
<script type="text/python" src="/assets/python/shift2demo.py"></script>
|
||||
<script type="text/python" src="/assets/python/shift2/shift2demo.py"></script>
|
||||
|
||||
|
||||
</div>
|
||||
@ -137,7 +137,7 @@ shift2 <span class="nt">-h</span>
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -108,7 +108,7 @@ Starting from the top, scroll through, and middle click on anything you want to
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -385,7 +385,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -52,7 +52,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.8.6">Jekyll</generator><link href="http://0.0.0.0:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://0.0.0.0:4000/" rel="alternate" type="text/html" /><updated>2019-08-31T14:25:59-04:00</updated><id>http://0.0.0.0:4000/feed.xml</id><title type="html">Evan Pratten</title><subtitle>Computer wizard, student, <a href="https://frc5024.github.io">@frc5024</a> programming team lead, and radio enthusiast.</subtitle><entry><title type="html">I did some cleaning</title><link href="http://0.0.0.0:4000/blog/2019/08/27/github-cleanup" rel="alternate" type="text/html" title="I did some cleaning" /><published>2019-08-27T08:37:00-04:00</published><updated>2019-08-27T08:37:00-04:00</updated><id>http://0.0.0.0:4000/blog/2019/08/27/GitHub-cleanup</id><content type="html" xml:base="http://0.0.0.0:4000/blog/2019/08/27/github-cleanup"><p>As I am continuing to check items off my TODO list before school starts, I have come to an item I have been putting off for a while. <strong>Clean up GitHub Account</strong>. Luckily, I discovered a little trick to make the process of deleting unused repos a little easier!</p>
|
||||
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.8.6">Jekyll</generator><link href="http://0.0.0.0:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://0.0.0.0:4000/" rel="alternate" type="text/html" /><updated>2019-08-31T14:36:54-04:00</updated><id>http://0.0.0.0:4000/feed.xml</id><title type="html">Evan Pratten</title><subtitle>Computer wizard, student, <a href="https://frc5024.github.io">@frc5024</a> programming team lead, and radio enthusiast.</subtitle><entry><title type="html">I did some cleaning</title><link href="http://0.0.0.0:4000/blog/2019/08/27/github-cleanup" rel="alternate" type="text/html" title="I did some cleaning" /><published>2019-08-27T08:37:00-04:00</published><updated>2019-08-27T08:37:00-04:00</updated><id>http://0.0.0.0:4000/blog/2019/08/27/GitHub-cleanup</id><content type="html" xml:base="http://0.0.0.0:4000/blog/2019/08/27/github-cleanup"><p>As I am continuing to check items off my TODO list before school starts, I have come to an item I have been putting off for a while. <strong>Clean up GitHub Account</strong>. Luckily, I discovered a little trick to make the process of deleting unused repos a little easier!</p>
|
||||
|
||||
<h2 id="getting-a-list-of-repos-to-delete">Getting a list of repos to delete</h2>
|
||||
<p>I could have automated this, but I prefer a little control. To get the list, start by opening up a new Firefox window with a single tab. In this tab, open your GitHub profile to the list of repos.
|
||||
@ -87,7 +87,7 @@ shift2 <span class="nt">-h</span>
|
||||
<p><input type="text" id="key" name="key" placeholder="Encoding key" required="" /><br />
|
||||
<input type="text" id="msg" name="msg" placeholder="Message" required="" size="30" /></p>
|
||||
|
||||
<p><button type="button" class="btn btn-primary" id="shift-button">shift2 demo is loading…</button></p>
|
||||
<p><button type="button" class="btn btn-primary" id="shift-button" disabled="">shift2 demo is loading… (this may take a few seconds)</button></p>
|
||||
|
||||
</div>
|
||||
|
||||
@ -97,7 +97,7 @@ shift2 <span class="nt">-h</span>
|
||||
<p>If you are interested in helping out, or taking on this idea for yourself, send me an email.</p>
|
||||
|
||||
<!-- Python code -->
|
||||
<script type="text/python" src="/assets/python/shift2demo.py"></script></content><author><name></name></author><summary type="html">I have always been interested in text and data encoding, so last year, I made my first encoding tool. Shift64 was designed to take plaintext data with a key, and convert it into a block of base64 that could, in theory, only be decoded with the original key. I had a lot of fun with this tool, and a very stripped down version of it actually ended up as a bonus question on the 5024 Programming Test for 2018/2019. Yes, the key was in fact 5024.</summary></entry><entry><title type="html">How I set up ひらがな input on my laptop</title><link href="http://0.0.0.0:4000/blog/2019/08/12/setting-up-ja" rel="alternate" type="text/html" title="How I set up ひらがな input on my laptop" /><published>2019-08-12T15:40:00-04:00</published><updated>2019-08-12T15:40:00-04:00</updated><id>http://0.0.0.0:4000/blog/2019/08/12/Setting-up-JA</id><content type="html" xml:base="http://0.0.0.0:4000/blog/2019/08/12/setting-up-ja"><p>I am currently working with <a href="https://en.wikipedia.org/wiki/Hiragana">ひらがな</a>, <a href="https://en.wikipedia.org/wiki/Katakana">かたかな</a>, and, <a href="https://en.wikipedia.org/wiki/Kanji">かんじ</a> in some projects, and needed a more reliable way to write than running some <a href="https://en.wikipedia.org/wiki/Romanization_of_Japanese">romaji</a> through an online translator. So, this post will detail what I did to enable native inputs on my laptop. This guide is specifically for <a href="https://i3wm.org/">i3wm</a>, because it does not obey system settings for languages and inputs.</p>
|
||||
<script type="text/python" src="/assets/python/shift2/shift2demo.py"></script></content><author><name></name></author><summary type="html">I have always been interested in text and data encoding, so last year, I made my first encoding tool. Shift64 was designed to take plaintext data with a key, and convert it into a block of base64 that could, in theory, only be decoded with the original key. I had a lot of fun with this tool, and a very stripped down version of it actually ended up as a bonus question on the 5024 Programming Test for 2018/2019. Yes, the key was in fact 5024.</summary></entry><entry><title type="html">How I set up ひらがな input on my laptop</title><link href="http://0.0.0.0:4000/blog/2019/08/12/setting-up-ja" rel="alternate" type="text/html" title="How I set up ひらがな input on my laptop" /><published>2019-08-12T15:40:00-04:00</published><updated>2019-08-12T15:40:00-04:00</updated><id>http://0.0.0.0:4000/blog/2019/08/12/Setting-up-JA</id><content type="html" xml:base="http://0.0.0.0:4000/blog/2019/08/12/setting-up-ja"><p>I am currently working with <a href="https://en.wikipedia.org/wiki/Hiragana">ひらがな</a>, <a href="https://en.wikipedia.org/wiki/Katakana">かたかな</a>, and, <a href="https://en.wikipedia.org/wiki/Kanji">かんじ</a> in some projects, and needed a more reliable way to write than running some <a href="https://en.wikipedia.org/wiki/Romanization_of_Japanese">romaji</a> through an online translator. So, this post will detail what I did to enable native inputs on my laptop. This guide is specifically for <a href="https://i3wm.org/">i3wm</a>, because it does not obey system settings for languages and inputs.</p>
|
||||
|
||||
<h2 id="adding-font-support-to-linux">Adding font support to Linux</h2>
|
||||
<p>Firstly, we need fonts. Depending on your system, these may already be installed. For Japanese, I only used <code class="highlighter-rouge">vlgothic</code>, so here in the package for it:</p>
|
||||
|
@ -88,7 +88,7 @@ https://blog.mrtnrdl.de/feed.xml
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -101,7 +101,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -146,7 +146,7 @@
|
||||
<span class="site-info">
|
||||
Site design by: <a href="https://retrylife.ca">Evan Pratten</a> |
|
||||
|
||||
This site was last updated at: 2019-08-31 14:25:59 -0400
|
||||
This site was last updated at: 2019-08-31 14:36:54 -0400
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
__BRYTHON__.VFS_timestamp = 1567274019809
|
||||
__BRYTHON__.use_VFS = true
|
||||
__BRYTHON__.VFS = {}
|
3
assets/python/shift2/brython_modules.js
Normal file
3
assets/python/shift2/brython_modules.js
Normal file
File diff suppressed because one or more lines are too long
@ -153,4 +153,7 @@ def doShiftDemo(_):
|
||||
|
||||
|
||||
document["shift-button"].bind("click", doShiftDemo)
|
||||
document["shift-button"].innerHTML = "Run Shift2"
|
||||
|
||||
# Set the button
|
||||
document["shift-button"].innerHTML = "Run Shift2"
|
||||
document["shift-button"].disabled = False
|
Loading…
x
Reference in New Issue
Block a user