Skip to content

Instantly share code, notes, and snippets.

@newhouseb
newhouseb / index.html
Last active September 19, 2018 23:04
view.bubb.li scratch
<div class="metadata" style="display: none;"></div>
<div data-lang="md" data-visibility="output" data-autorun="false" class="block hide-source" data-source-visibility="hidden">
<pre class="source hljs coffeescript" contenteditable="true"><span class="hljs-comment"># view.bubb.li scratch</span>
First, let<span class="hljs-string">'s see if we can get access to the major shared link properties via CORS.</span></pre>
<div class="result"><h1 id="viewbubbliscratch">view.bubb.li scratch</h1>
<p>First, let's see if we can get access to the major shared link properties via CORS.</p></div>
</div><div data-lang="js" data-visibility="source" data-autorun="true" class="block">
<pre class="source hljs cs" contenteditable="true"><span class="hljs-keyword">var</span> GooglePageURL = <span class="hljs-string">'https://photos.google.com/share/AF1QipOaG3Ys97bMVpvkcHlI8LqHtXZzyJ6Bq4mM6IgU4EvKMp21vY4k-JKwEw41WEF8eA/photo/AF1QipPfS44hOHZI0TXkyW_DSomYQBm5s2KqKZDig5MR?key=LUIzR0EyTWd5SFkweTl6dk9tRjJLWHAzYm8yNHhn
@newhouseb
newhouseb / index.html
Last active October 18, 2018 21:33
Public Key Crypto #pocketbook
<div class="metadata" style="display: none;"></div>
<div data-lang="md" data-visibility="output" data-autorun="false" class="block hide-source" data-source-visibility="hidden">
<pre class="source hljs coffeescript" contenteditable="true"><span class="hljs-comment"># A Tour Through Public Key Cryptography</span>
If you are familiar with modern crypto <span class="hljs-keyword">then</span> there<span class="hljs-string">'s a high likelihood that you'</span>re aware <span class="hljs-keyword">of</span> the importance <span class="hljs-keyword">of</span> prime numbers <span class="hljs-keyword">and</span> an ability to find them.
There are a lot <span class="hljs-keyword">of</span> fancy different algorithms to find them, but <span class="hljs-keyword">for</span> the moment we<span class="hljs-string">'ll leave understanding those as an exercise to the reader and do something relatively dumb:</span></pre>
<div class="result"><h1 id="atourthroughpublickeycryptography">A Tour Through Public Key Crypto
@newhouseb
newhouseb / index.html
Last active September 12, 2018 21:29
PocketBook: An Introduction
<div class="metadata" style="display: none;" data-gist="c832105841245f10012ac30e977420dd"></div>
<div data-lang="md" data-visibility="output" data-autorun="false" class="block hide-source" data-source-visibility="hidden">
<pre class="source hljs coffeescript" contenteditable="true"><span class="hljs-comment"># PocketBook</span>
<span class="hljs-comment">##A Lightweight Programming Notebook</span>
Over the past number <span class="hljs-keyword">of</span> years [I](http:<span class="hljs-regexp">//</span>bennewhouse.com) have become increasingly attached to programming <span class="hljs-keyword">in</span> environments like [Jupyter Notebooks](http:<span class="hljs-regexp">//</span>jupyter.org). Tools such <span class="hljs-keyword">as</span> these <span class="hljs-keyword">do</span> a great job <span class="hljs-keyword">of</span> presenting incremental thinking <span class="hljs-keyword">as</span> one works through a problem. This <span class="hljs-keyword">is</span> particularly valuable <span cl
@newhouseb
newhouseb / index.html
Last active September 12, 2018 17:59
Hello World Examples
<div class="metadata" style="display: none;"></div>
<div data-lang="md" data-visibility="output" data-autorun="true" class="block hide-source" data-source-visibility="hidden">
<pre class="source hljs coffeescript" contenteditable="true"><span class="hljs-comment"># Hello World</span>
Here <span class="hljs-keyword">is</span> some exposition!!!
</pre>
<div class="result"><h1 id="helloworld">Hello World</h1>
<p>Here is some exposition!!!</p></div>
</div><div data-lang="js" data-source-visibility="visible" data-result-visibility="visible" data-autorun="true" class="block"><pre class="source hljs shell" contenteditable="true">1 + 511</pre><div class="result">512</div></div><div data-lang="js" data-visibility="source" data-autorun="true" class="block" data-result-visibility="visible" data-source-visibility="visible">
@newhouseb
newhouseb / index.html
Created September 11, 2018 21:44
Hello World Examples
<div class="metadata" style="display: none;"></div>
<div data-lang="md" data-visibility="output" data-autorun="true" class="block hide-source" data-source-visibility="hidden">
<pre class="source hljs coffeescript" contenteditable="true"><span class="hljs-comment"># Hello World!!!!!</span>
<span class="hljs-number">11</span>
Here <span class="hljs-keyword">is</span> some exposition!!!</pre>
<div class=""><h1 id="helloworld">Hello World!!!!!</h1>
<p>11
Here is some exposition!!!</p></div>
</div><div data-lang="js" data-source-visibility="visible" data-result-visibility="visible" data-autorun="true" class="block"><pre class="source hljs shell" contenteditable="true">1 + 1</pre><div class="output">2</div></div><div data-lang="js" data-visibility="source" data-autorun="false" class="block">
@newhouseb
newhouseb / index.html
Created September 11, 2018 21:43
Hello World Examples
<div class="metadata" style="display: none;"></div>
<div data-lang="md" data-visibility="output" data-autorun="true" class="block hide-source" data-source-visibility="hidden">
<pre class="source hljs coffeescript" contenteditable="true"><span class="hljs-comment"># Hello World!!!!!</span>
<span class="hljs-number">11</span>
Here <span class="hljs-keyword">is</span> some exposition!!!</pre>
<div class=""><h1 id="helloworld">Hello World!!!!!</h1>
<p>11
Here is some exposition!!!</p></div>
</div><div data-lang="js" data-source-visibility="visible" data-result-visibility="visible" data-autorun="true" class="block"><pre class="source hljs shell" contenteditable="true">1 + 1</pre><div class="output">2</div></div><div data-lang="js" data-visibility="source" data-autorun="false" class="block">
@newhouseb
newhouseb / index.html
Last active September 10, 2018 22:01
Hello World Examples
<div id="metadata" style="display: none;" data-gist="423c7296d108b715270120bb1c79ad75"></div>
<div data-lang="md" data-visibility="output" data-autorun="false" class="block" data-source-visibility="visible">
<pre class="source hljs coffeescript" contenteditable="true" style=""><span class="hljs-comment"># Hello World This is Another Test</span>
Here <span class="hljs-keyword">is</span> some exposition</pre>
<div class=""><h1 id="helloworldthisisanothertest">Hello World This is Another Test</h1>
<p>Here is some exposition</p></div>
</div><div data-lang="js" data-visibility="source" data-autorun="false" class="block">
<pre class="source hljs cs" contenteditable="true">console.log(<span class="hljs-string">"Hello World"</span>);
@newhouseb
newhouseb / index.html
Last active September 10, 2018 05:39
Hello World Examples
<div id="metadata" style="display: none;" data-gist="6556a0af2c15a21019cfa79793329941"></div>
<div data-lang="md" data-visibility="output" data-autorun="false" class="block">
<pre class="source hljs coffeescript" contenteditable="true"><span class="hljs-comment"># Hello World I am a gist hopefully!!!!!!!</span>
FOOOOBAR 1234<br>wtf<br><br>woweeee<br><div>huh!!!!</div><div>
Here <span class="hljs-keyword">is</span> some exposition</div></pre>
<div class=""><h1 id="helloworldiamagisthopefully">Hello World I am a gist hopefully!!!!!!!</h1>
<p>FOOOOBAR 1234
wtf</p>
<p>woweeee
@newhouseb
newhouseb / index.html
Created September 10, 2018 03:22
Hello World Examples
<div id="metadata" style="display: none;"></div>
<div data-lang="md" data-visibility="output" data-autorun="false" class="block">
<pre class="source hljs coffeescript" contenteditable="true"><span class="hljs-comment"># Hello World</span>
Here <span class="hljs-keyword">is</span> some exposition</pre>
<div>
<h1>Hello World</h1>
<p>Here is some exposition</p>
</div>
@newhouseb
newhouseb / foo.txt
Last active September 10, 2018 02:20
Hello World Examples
bar