Skip to content

Instantly share code, notes, and snippets.

View Fi3's full-sized avatar

Fi3

  • anywhere
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Fi3
Fi3 / f
Created July 13, 2018 09:54
https://remix.oraclize.it/#plugintitle=Oraclize&pluginurl=https://remix-plugin.oraclize.it&gist=9817193e5b05206847ed1fcd1d16bd1d&optimize=true&version=soljson-v0.4.24+commit.e67f0147.js
@Fi3
Fi3 / xfce4-keyboard-shortcuts.xml
Created April 1, 2019 09:45
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-keyboard-shortcuts" version="1.0">
<property name="commands" type="empty">
<property name="default" type="empty">
<property name="&lt;Alt&gt;F1" type="empty"/>
<property name="&lt;Alt&gt;F2" type="empty">
<property name="startup-notify" type="empty"/>
</property>
<property name="&lt;Alt&gt;F3" type="empty">
@Fi3
Fi3 / calcolo.py
Last active March 27, 2020 18:23
calcoli
#!/usr/bin/env python3
from decimal import *
def main():
getcontext().prec = 30
getcontext().rounding = ROUND_HALF_EVEN
s0 = Decimal(0.16670847)
sigma = Decimal(0.0427111)
{
"doc": [
"This test does",
"Runs a translator proxy",
"Runs /example/sv1-mining-device",
"Waits that receives SetupConnection message",
"Reply with .Success",
"Waits that the tproxy sends OpenExtendedMiningChannel",
"Responds with OpenExtendedMiningChannelSuccess",
"Sends NewExtendedMiningJob and SetNewPrevHash to the tproxy",