Skip to content

Instantly share code, notes, and snippets.

@tommyct614
tommyct614 / boom hunter pro
Created March 7, 2024 04:14 — forked from matquykyo811/boom hunter pro
boom hunter pro
title = 'Boom Hunter Pro'
stitle = 'Boom Pro'
version = ' 1.022'
indicator(title=title + version, shorttitle=stitle, overlay=false, timeframe='')
theme = 'Dark' //, "Theme:", options=["Dark", "Light"], group = "Main Settings", inline = "main")
showfib = input.bool(defval=false, title='Show Fibonacci Lines?', group='Main Settings', inline='main2')
showentry = input.bool(defval=true, title='Show Entry and Exit Points?', group='Main Settings')
square = input.bool(true, title='Square Line?', group='Main Settings')
showdboom = input.bool(true, title='Show Downward Boom Line?', group='Main Settings')
showlongs = input.bool(true, title='Show Long Entries?', group='Main Settings')
@tommyct614
tommyct614 / freebitco Multiplay script.js
Created October 22, 2022 15:51 — forked from makaAnarchy/freebitco Multiplay script.js
freebitco.in best script to play Multiply BTC with 63% win chance
// ==UserScript==
// @name Best algorithm to play Multiply odd 1.5 win chance 63% (NOT FOR LOW BALANCE)
// @description Play with higher chance , READ FIRST
// @include https://freebitco.in/*
// @copyright 2020, makaaymen@gmail.com
// @namespace AnarchyHS
// ==/UserScript==
bconfig = {
@tommyct614
tommyct614 / TorPrivoxyPython.md
Created June 30, 2022 12:53 — forked from DusanMadar/TorPrivoxyPython.md
A step-by-step guide how to use Python with Tor and Privoxy

A step-by-step guide how to use Python with Tor and Privoxy

Latest revision: 2021-12-05.

Tested on Ubuntu 18.04 Docker container. The Dockerfile is a single line FROM ubuntu:18.04. Alternatively, you can simply run docker run -it ubuntu:18.04 bash.

NOTE: stopping services didn't work for me for some reason. That's why there is kill $(pidof <service name>) after each failed service <service name> stop to kill it.

References

@tommyct614
tommyct614 / gist:904b05bf75de4d21669bfa4058f79c2e
Created October 5, 2021 04:21 — forked from 345161974/gist:63573abdf1dc9c303d6740fb29496657
Python Code for adding posts to WordPress remotely
import urllib
from wordpress_xmlrpc import Client, WordPressPost
from wordpress_xmlrpc.methods import posts
import xmlrpclib
from wordpress_xmlrpc.compat import xmlrpc_client
from wordpress_xmlrpc.methods import media, posts
import os
########################### Read Me First ###############################
'''
------------------------------------------In DETAIL--------------------------------
@tommyct614
tommyct614 / lagint.py
Created February 23, 2018 05:04
python code for lagrange interpolation
import numpy as np
import matplotlib.pyplot as plt
rawData = np.loadtxt("inputData.dat")
x = rawData.transpose()[0]
y = rawData.transpose()[1]
xnew = np.loadtxt("x.dat")
ynew = np.zeros(len(xnew))
@tommyct614
tommyct614 / sineInput.py
Created February 23, 2018 04:34
code to generate sine values from 0 to pi/2
import numpy as np
x = np.linspace(0,np.pi/2, 100)
y = np.zeros(len(x))
x1 = np.zeros(100)
for i in range(len(x)):
y[i] = np.sin(x[i])
print(y)
import numpy as numpy
"""This program takes a series
and checks for convergence value
of 1/n!"""
currSum = 1.0
t = 1e-3 # tolerance
prevSum = 0
perDiff = 1.0
n = 0
seriesTerm = 1.0
import numpy as np
import matplotlib.pyplot as plt
xmin = 0 #xmin and xmax can be changed for different intervals
xmax = 2*(np.pi) #np.pi is the value of pi in numpy
N = 201
x = np.linspace(xmin,xmax,N)
y = np.zeros(len(x))
@tommyct614
tommyct614 / polyfit.py
Last active December 31, 2017 06:53
Fit a polynomial with Python
import numpy as np
import matplotlib.pyplot as plt
#Importing tools required
rawData = np.loadtxt("data.dat")
x=rawData.transpose()[0]
y=rawData.transpose()[1]
#Reads input from data.dat file and transposes columns into rows