Skip to content

Instantly share code, notes, and snippets.

View JourneyToSilius's full-sized avatar
🎱
Focusing

JourneyToSilius

🎱
Focusing
View GitHub Profile
func Run_multicall(get_pair common.Address, client *ethclient.Client, strategy_config Strategyconfiguration) {
json := `[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"ind
# The following example is minimalist. The security policies
# and resource specifications are not meant to be used in production.
# Please refer to the operator documentation for recommendations on
# production settings.
apiVersion: planetscale.com/v2
kind: VitessCluster
metadata:
name: example
spec:
images:
# Version: 20200423: 99eb9b939b4166caa38276874ce96cf289da8317
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: etcdlockservers.planetscale.com
spec:
group: planetscale.com
names:
kind: EtcdLockserver
listKind: EtcdLockserverList
@JourneyToSilius
JourneyToSilius / ansible_provider_updated.py
Created September 24, 2020 16:50
run playbook as module
#!/usr/bin/env python
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import json
import shutil
import ansible.constants as C
from ansible.executor.task_queue_manager import TaskQueueManager
def run_bpy(self):
print(self.list_render_devices())
rgb_shade_list, processed_image = self.color_steal.color_processing_runner()
album_period = self.check_album_date()
loaded_scene_file,loaded_font = self.select_scene(album_period, rgb_shade_list)
self.change_rgb_gradient_color(rgb_shade_list)
image_to_load = self.load_album_image(processed_image)
self.apply_cover_image_to_material(image_to_load)
from technical import indicators
import talib.abstract as ta
import rtmtb.ta.rtmtb_indicators
from rtmtb.plot.autoplot.config_provider import PlotConfigProvider
from rtmtb.log import LoggerMixin
from rtmtb.plot.autoplot.indicator_parser import IndicatorParser
import copy
from itertools import chain
import collections
from finta import TA
/*
SAFETY PIG _
_._ _..._ .-', _.._(`))
'-. ` ' /-._.-' ',/
) \ '.
/ _ _ | \
| a a / |
\ .-. ;