Skip to content

Instantly share code, notes, and snippets.

@ktorn
ktorn / Prime Circles
Last active August 6, 2017 20:13
First 10,000 primes represented as nested internally tangent circles
<!DOCTYPE html>
<html>
<body>
<canvas id="myCanvas" width="2000" height="20000" style="border:1px solid #d3d3d3;">
Your browser does not support the HTML5 canvas tag.</canvas>
<script>
var c = document.getElementById("myCanvas");
@ktorn
ktorn / duniter-npm-debug.log
Created September 17, 2016 18:26
duinter build issue
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/6.6.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install' ]
2 info using npm@3.10.7
3 info using node@v6.6.0
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly install normalizeTree
@ktorn
ktorn / gist:2d08fc19bae91dec36f19af9654801c3
Created June 9, 2016 10:15
cpp-ethereum build fails on Mac OS X 10.11.5
Scanning dependencies of target aleth
[ 78%] Building CXX object alethzero/libaleth/CMakeFiles/aleth.dir/AccountHolder.cpp.o
In file included from /Users/dan/dev/webthree-umbrella/alethzero/libaleth/AccountHolder.cpp:22:
In file included from /Users/dan/dev/webthree-umbrella/alethzero/libaleth/AccountHolder.h:26:
In file included from /usr/local/opt/qt5/lib/QtCore.framework/Headers/QObject:1:
In file included from /usr/local/opt/qt5/lib/QtCore.framework/Headers/qobject.h:48:
In file included from /usr/local/include/QtCore/qmetatype.h:49:
In file included from /usr/local/include/QtCore/qdatastream.h:46:
/usr/local/include/QtCore/qiodevice.h:68:14: error: base class has incomplete type
: public QObject
Thread 7 Crashed:: QThread
0 libevmasm.dylib 0x000000010bb9a259 dev::eth::PathGasMeter::handleQueueItem() + 2793
1 libevmasm.dylib 0x000000010bb995fb dev::eth::PathGasMeter::estimateMax(unsigned long, std::__1::shared_ptr<dev::eth::KnownState> const&) + 395
2 libsolidity.dylib 0x0000000109206664 dev::solidity::GasEstimator::functionalEstimation(std::__1::vector<dev::eth::AssemblyItem, std::__1::allocator<dev::eth::AssemblyItem> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 1684
3 . 0x00000001050fa6af dev::mix::CodeModel::gasEstimation(dev::solidity::CompilerStack const&) + 5423
4 . 0x00000001050f2888 dev::mix::CodeModel::runCompilationJob(int) + 2872
5 org.qt-project.QtCore 0x000000010aa5af42 QObject::event(QEvent*) + 146
6 org.qt-project.QtWidgets 0x00000001092d8cb6 QApplicationPrivate::notify_helper(QObject*, QEvent*) +
@ktorn
ktorn / keybase.md
Last active September 17, 2015 06:55
keybase.md

Keybase proof

I hereby claim:

  • I am ktorn on github.
  • I am ktorn (https://keybase.io/ktorn) on keybase.
  • I have a public key whose fingerprint is D8DE 1F71 B35A 8A96 006C 87B7 8ECA 31C3 8CA4 AD9F

To claim this, I am signing this object:

@ktorn
ktorn / gist:0de9c6f5d38761ffa8a1
Created November 14, 2014 01:23
github /u name verification
Hi. My name is +ktorn. My Gist Is My Passport. Verify Me. #bitcoin
@ktorn
ktorn / rfid_serial.pde
Created April 4, 2014 09:27
Arduino RFID reading code, adapted for USJ
/*
* Source : rfid_serial.pde
* Author : Daniel Filipe Farinha
* Date : 2014.04.04
* Sketch : Mifare1 RFID reading code, adapted for USJ
* Based on code by: Dr.Leung
* Code comments translated by: David Grieshammer
*/
// the sensor communicates using SPI, so include the library: