Skip to content

Instantly share code, notes, and snippets.

View AliSajid's full-sized avatar
🏠
Working from home

Ali Sajid Imami AliSajid

🏠
Working from home
View GitHub Profile
{"label":"Build","message":"Succeeded","schemaVersion":1,"color":"green","namedLogo":"apple"}
@AliSajid
AliSajid / charx-badges.md
Last active April 13, 2023 05:34
charx Build Badges

Github gist to keep track of charx build status.

@AliSajid
AliSajid / gainful_key-badges.md
Last active February 25, 2023 17:32
gainful_key release status badges

Github gist to keep track of Gainful Key build status.

@AliSajid
AliSajid / IPTMNet-CLI.md
Last active June 29, 2023 05:34
IPTMNet-CLI Rust Status Badges

Github gist to keep track of IPTMNet-CLI build status.

@AliSajid
AliSajid / HelloRLTK-badges.md
Last active November 28, 2022 05:54
HelloRLTK Status Badges

Github gist to keep track of HelloRLTK build status.

nox > Running session pre-commit
nox > Re-using existing virtual environment at .nox/pre-commit.
nox > python -m pip install --constraint=.nox/pre-commit/tmp/requirements.txt black darglint flake8 flake8-bandit flake8-bugbear flake8-docstrings flake8-rst-docstrings pep8-naming pre-commit pre-commit-hooks pyupgrade reorder-python-imports
nox > pre-commit run --all-files --show-diff-on-failure
prettier.................................................................Passed
Check for added large files..............................................Passed
Check Toml...............................................................Passed
Check AST................................................................Passed
Check docstring first....................................................Passed
check that executables have shebangs.................(no files to check)Skipped
compound avg sdev slog10 slog2
(1Ar,7as,10as,10br)-1a,5-Dimethyl-8-methylidene-2,3,6,7,7a,8,10a,10b-octahydrooxireno[9,10]cyclodeca[1,2-b]furan-9(1ah)-one 0.47815416666666666 0.03812036301231241 1.4188429723177225 4.713294331975734
(3-Isopropoxyphenyl)(1-((5-methyl-1-propyl-1H-pyrazol-4-yl)methyl)piperidin-3-yl)methanone 0.455278125 0.0615820495609313 1.2105458610939064 4.0213463061174615
(R)-(-)-Jq1 enantiomer 0.45915395833333333 0.037146575136812285 1.4300812214121454 4.750626987379841
(S)-(-)-BAY K 8644 0.4886260416666667 0.09193673392281695 1.036510928739864 3.4432147748387467
(Z) Fluvoxamine 0.5166354166666667 0.07531315332193739 1.1231291683374804 3.730954338487754
1-(5-Isoquinolinesulfonyl)piperazine 0.48005 0.05024202218910774 1.2989328890181375 4.314961657402559
10-{3-[4-(2-Chloroethyl)piperazin-1-yl]propyl}-2-(trifluoromethyl)-10H-phenothiazine 0.43467333333333336 0.05472705355918444 1.2617979331371139 4.191602004158984
10-DEBC 0.5306095833333333 0.04501764409606879 1.3466172366311255 4.4733656314
Jan 02 01:50:15 turing systemd-coredump[29245]: Process 29237 (node) of user 1000 dumped core.
Stack trace of thread 29237:
#0 0x00007f3aa68fb46f _ZN4node17ContextifyContext4InitEPNS_11EnvironmentEN2v85LocalINS3_6ObjectEEE (>
#1 0x00007f3aa68fb443 _ZN4node14InitContextifyEN2v85LocalINS0_6ObjectEEENS1_INS0_5ValueEEENS1_INS0_7>
#2 0x00000000008dcca3 n/a (/home/banseljaj/.nvm/versions/node/v10.15.0/bin/node)
#3 0x0000000000b5faef n/a (/home/banseljaj/.nvm/versions/node/v10.15.0/bin/node)
#4 0x0000000000b60659 n/a (/home/banseljaj/.nvm/versions/node/v10.15.0/bin/node)
#5 0x000010a676b5be1d n/a (n/a)
# Define the factorize function
def factorize(number):
factors = [i, int(n/i) for i in range(1, 1+number/2) if number % i == 0]
return set(sorted(factors))
# Define the printing function
def print_factors(factor_array):
for n in factor_array:
print("{} is a factor".format(n))
@AliSajid
AliSajid / calculator.py
Created January 28, 2017 16:03
An elegant solution to a trivial exercise
import math
# Define the Square function
def square(n):
return n * n
# Define the Cube function
def cube(n):
return n ** 3