result = cq.Workplane("XY" ).box(3, 3, 3)
This file contains 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 | |
# Path to the access log file | |
ACCESS_LOG="access.log" | |
# Path to the file that will store unique IP addresses | |
IP_LIST="ip_list.txt" | |
# Function to extract IP addresses and add them to the IP list | |
extract_ips() { |
This file contains 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
//@version=5 | |
indicator(title="SatDrainageSystem", shorttitle="SDS", overlay=true, timeframe="", timeframe_gaps=true) | |
x = 117569600000 | |
primedistance = 0.15 / 100 | |
normalclose = close | |
tsince = timestamp("28 Nov 2012 00:00") | |
tbarclose = time_close | |
tdiffms = tsince - tbarclose | |
fullhalvings = math.floor(tdiffms / x) |
This file contains 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
# The imports of the FreeCAD library | |
import os | |
from os.path import exists as file_exists | |
import sys | |
FREECADPATH = 'C:/Program Files/FreeCAD 0.19/bin/' | |
sys.path.append(FREECADPATH) | |
FREECADPATH = 'C:/Program Files/FreeCAD 0.19/lib/' | |
sys.path.append(FREECADPATH) | |
import PySide2 | |
import six |
This file contains 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 | |
username="xxxx" | |
password="xxxx" | |
# Update and get required packages | |
apt-get update && apt-get -y upgrade | |
apt-get -y purge | |
apt-get install -y lftp sshfs |
This file contains 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
""" | |
To install: | |
# python requirements | |
$ pip install click selenium | |
# for headless chrome | |
$ brew install chromedriver | |
To use: | |
$ python capture.py https://revsys.com revsys.png |
This file contains 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 | |
import pandas as pd | |
import datetime as dt | |
import seaborn as sns | |
import matplotlib.pyplot as plt | |
import ccxt | |
from dateutil import relativedelta | |
import numpy as np | |
sns.set(style = 'ticks', context = 'talk') |
This file contains 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 | |
import pandas as pd | |
import datetime as dt | |
import seaborn as sns | |
import matplotlib.pyplot as plt | |
import ccxt | |
sns.set(style = 'ticks', context = 'talk') | |
plt.style.use("dark_background") |
This file contains 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
""" | |
Example of how calculations on the secp256k1 curve work. | |
secp256k1 is the name of the elliptic curve used by bitcoin | |
see http://bitcoin.stackexchange.com/questions/25382 | |
""" | |
p = 2**256 - 2**32 - 977 |
NewerOlder