Skip to content

Instantly share code, notes, and snippets.

View thor's full-sized avatar
🚀
Vrooom!

Thor K. Høgås thor

🚀
Vrooom!
View GitHub Profile
#!/usr/bin/env python
import argparse
import numpy as np
def generate_submodules(node: str, count: int) -> str:
submodules = f"""{node}[{count}]: <> like INode {{
@display("r=$rangeScale;p=$posX,$posY"); \n}}
@thor
thor / keybase.md
Last active September 13, 2019 11:03
keybase proof

Keybase proof

I hereby claim:

  • I am thor on github.
  • I am thor (https://keybase.io/thor) on keybase.
  • I have a public key whose fingerprint is CED8 88E6 03D7 8BD3 7216 87E7 857D C263 0B59 16D8

To claim this, I am signing this object:

Generating... Liquid Exception: private method `sub' called for nil:NilClass in _posts/2014-01-02-welcome-to-jek
yll.markdown
/home/thorkh/.gem/ruby/1.8/gems/jekyll-1.4.2/bin/../lib/jekyll/tags/highlight.rb:77:in `add_code_tags': private method `
sub' called for nil:NilClass (NoMethodError)
from /home/thorkh/.gem/ruby/1.8/gems/jekyll-1.4.2/bin/../lib/jekyll/tags/highlight.rb:57:in `render_pygments'
from /home/thorkh/.gem/ruby/1.8/gems/jekyll-1.4.2/bin/../lib/jekyll/tags/highlight.rb:45:in `render'
from /home/thorkh/.gem/ruby/1.8/gems/liquid-2.5.4/lib/liquid/block.rb:106:in `render_all'
from /home/thorkh/.gem/ruby/1.8/gems/liquid-2.5.4/lib/liquid/block.rb:93:in `each'
from /home/thorkh/.gem/ruby/1.8/gems/liquid-2.5.4/lib/liquid/block.rb:93:in `render_all'
from /home/thorkh/.gem/ruby/1.8/gems/liquid-2.5.4/lib/liquid/block.rb:82:in `render'
@thor
thor / README.md
Last active December 20, 2015 06:49
Steamy Helper - slightly more OOP, works in Firefox and Chrome w/Tampermonkey Gathered from http://userscripts.org/scripts/review/174037, modified to be more OOP and cleaner and meaner.

Steamy Helper

First README revision!