Skip to content

Instantly share code, notes, and snippets.

View reuniware's full-sized avatar
🎯
Focusing

Quant & Fintech Opensource Projects reuniware

🎯
Focusing
View GitHub Profile
@reuniware
reuniware / postvalue.kt
Created November 17, 2022 10:49
android mvvm livedata postvalue example
package com.example.myapplication
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
@reuniware
reuniware / mvvm_livedata.kt
Created November 17, 2022 10:20
Android Kotlin MVVM LiveData basic code
package com.example.myapplication
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
@reuniware
reuniware / downloadyoutubevideo.py
Created November 15, 2022 10:25
Download Youtube Video as MP3
from pytube import YouTube
import os
yt = YouTube('https://www.youtube.com/watch?v=PEnwXYJcSZc')
#yt.streams.get_audio_only().download()
video = yt.streams.filter(only_audio=True).first()
destination = '.'
@reuniware
reuniware / bestgrowingassets.txt
Created January 17, 2022 06:58
Best growing averaged assets on FTX in 5 min timeframe
2022-01-17 07:57:06.382205 All threads starting.
2022-01-17 07:57:18.927922 All threads finished.
ETHBEAR/USDT 1.2987
MTA/USD 0.5425
MTA-PERP 0.5269
MTA/USDT 0.482
BOLSONARO2022 0.4254
LOOKS/USD 0.3445
LOOKS-PERP 0.2924
KNCBULL/USDT 0.2677
@reuniware
reuniware / FTX_scan_best_growing_assets_new.py
Created January 17, 2022 06:56
Scan best growing assets with average calculation on FTX.
# Number of threads running simultaneously is controlled with the variable maxthreads :)
import glob
import operator
import os
import sqlite3
import threading
import time
from datetime import datetime, timedelta
@reuniware
reuniware / randomgen.py
Last active November 3, 2022 19:07
Random string generator and word search
import os
import random
import time
from datetime import datetime
def log_to_results(str_to_log):
fr = open("results.txt", "a")
fr.write(str_to_log + "\n")
fr.close()
@reuniware
reuniware / tweet.js
Created July 23, 2021 13:59
NodeJS Tweet
function tweet(str) {
if (twitterEnabled === true) {
const Twitter = require('twitter');
const client = new Twitter({
consumer_key: 'MorX5xvqYCSs7IpvOxxxxxxxx',
consumer_secret: 'XtEyoEDcyFTCLjp9kF1SPFr78Jvu1hiaU5yx2mmWVAxxxxxxxx',
access_token_key: '1417457007389515787-9B0TYSJNhTm53Bv6UEjrdTxxxxxxxx',
access_token_secret: 'CVMtV8Mxutexrx9xDRJ3SdYlT3i9PfLzPrqEFxxxxxxxx'
});
@reuniware
reuniware / EuroFootToken.sol
Last active June 15, 2021 16:43
EURO FOOT TOKEN
// SPDX-License-Identifier: MIT
pragma solidity =0.6.6;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.0.0/contracts/token/ERC20/ERC20.sol";
contract EuroFoot is ERC20 {
address public owner;
@reuniware
reuniware / IUniswapV2Router01.sol
Created June 10, 2021 12:37
Full UniswapV2Router01 Smart Contract !!!
pragma solidity =0.6.6;
import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol';
import '@uniswap/lib/contracts/libraries/TransferHelper.sol';
//import './libraries/UniswapV2Library.sol';
//import './interfaces/IUniswapV2Router01.sol';
//import './interfaces/IERC20.sol';
//import './interfaces/IWETH.sol';
@reuniware
reuniware / MySuperToken.sol
Created April 21, 2021 09:16
Simplest ERC20 Token with OpenZeppelin
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
/**
* @title Standard ERC20 token