This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pytest.mark.parametrize('mocked_price_queries', [prices]) | |
def test_correct_deduction(accountant): | |
history = [{ | |
'timestamp': 1624395186, | |
'base_asset': '_ceth_0xdAC17F958D2ee523a2206206994597C13D831ec7', | |
'quote_asset': 'EUR', | |
'trade_type': 'buy', | |
'rate': 0.8547, | |
'fee': 0.019921972, | |
'fee_currency': '_ceth_0xdAC17F958D2ee523a2206206994597C13D831ec7', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cp /fenix/depar/lsi/UML/*.gz /tmp | |
cd /tmp | |
gunzip *.gz | |
./kernel32-3.0.4 ubda=./Fedora14-x86-root_fs mem=1024m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function removeBrackets(text, position){ | |
return text.slice(0, position) + text.slice(position + 2); | |
} | |
// Function that insert in a string at a position a given string | |
String.prototype.insertAt=function(index, string) { | |
return this.substr(0, index) + string + this.substr(index); | |
} | |
// You may use format with a string where {} indicates that you want to insert something in that position and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, sys | |
"""This part is for setup the database needed stuff""" | |
#Shit happends. Django looks like needs to start and then you can work with it. so create a environemant and start | |
#http://www.dangtrinh.com/2014/11/how-to-avoid-models-arent-loaded-yet.html | |
def setup_environment(): | |
pathname = os.path.dirname(sys.argv[0]) | |
sys.path.append(os.path.abspath(pathname)) |
NewerOlder