Skip to content

Instantly share code, notes, and snippets.

View Fi3's full-sized avatar

Fi3

  • anywhere
View GitHub Profile
{
"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",
@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)
@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 / 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
'use strict'
/* Finds all the solutions to the N-Towers algorithm.
*
* @param number_of_towers number of towers to try to place in the chessboard
* @param number_of_lines chessboard's ones
* @param number_of_columns chessboard's ones
* @returns {nTowersSolutions} array containing all the solutions
* "Tower" = presence of a tower in this square of the chessboard
* "Nothing" = no tower in this square of the chessboard
* "Blocked" = the cell is blocked
@Fi3
Fi3 / .tmux.conf
Last active January 3, 2024 13:31 — forked from paulodeleo/.tmux.conf
Tmux configuration to enable mouse scroll and mouse panel select, taken from: http://brainscraps.wikia.com/wiki/Extreme_Multitasking_with_tmux_and_PuTTY
# Scroll History
set -g history-limit 50000
# Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on
# Scroll with mouse
setw -g mouse on
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
#-----------------------tipo1-----------------------#
import csv
parsed = []
nomeFile = 'eur1.csv'
with open(nomeFile,'r') as csvfile:
rd = csv.reader(csvfile, delimiter=',', quotechar='|')
for row in rd:
parsed.append(row)
def findRef(string):
'use strict';
require('babel-polyfill');//"~6.7.4"
var c = 0;
var counter = 0;
var thisNotWork = function _callee() {
return regeneratorRuntime.async(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {