Skip to content

Instantly share code, notes, and snippets.

View vivekjoshy's full-sized avatar

Vivek Joshy vivekjoshy

View GitHub Profile

Keybase proof

I hereby claim:

  • I am vivekjoshy on github.
  • I am taven (https://keybase.io/taven) on keybase.
  • I have a public key ASBNZR75jhBokOYJhxHHuzk02YOk8OuYILvQW3Mq-bTVqwo

To claim this, I am signing this object:

@vivekjoshy
vivekjoshy / ordinals.ipynb
Last active November 5, 2022 21:55
Ordinals in openskill.py explained.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Argument

  1. If and only if something has the potential to understand death, or is cared for, it has moral consideration.
  2. There are animals that don't have the potential to understand death and are not cared for.
  3. Therefore some animals don't have moral consideration.
  4. Humans and pets have the potential to understand death or are cared for.
  5. Therefore humans and pets have moral consideration.
  6. Therefore some animals don't have moral consideration while humans and pets have moral consideration.

Formal Counterpart

@vivekjoshy
vivekjoshy / pyproject.toml
Created May 16, 2020 11:10
Poetry not installiing extras defined in dev-dependencies.
[tool.poetry]
name = "fakelibrary"
version = "0.0.0"
license = "AGPL-3.0-only"
description = "A fake python libray."
authors = ["daegontaven <8206808+daegontaven@users.noreply.github.com>"]
readme = "README.md"
repository = "https://github.com/daegontaven/fakelibrary"
documentation = "https://fakelibrary.readthedocs.io"
keywords = ["poetry", "library", "fake", "system"]
@vivekjoshy
vivekjoshy / qutepart-test-result.log
Created July 19, 2019 10:18
Qutepart QtPy Test Result
(3.7.2) meredith@taylor:~/PycharmProjects/qutepart/tests$ python run_all.py
Suite created
test_1 (test_actions.Print) ... skipped 'Does not work'
test_completion_enabled (test_api.Completion) ... ok
test_threshold (test_api.Completion) ... ok
test_1 (test_api.DetectSyntax) ... qutepart: Indenter 'ada' is not finished yet. But you can do it!
ok
test_1 (test_api.InsertText) ... ok
test_2 (test_api.InsertText) ... ok
test_3 (test_api.InsertText) ... ok
import sys
import time
from PyQt5.QtCore import QThread, pyqtSignal
from PyQt5.QtWidgets import (QApplication, QDialog,
QProgressBar, QPushButton)
TIME_LIMIT = 100
class External(QThread):
import sys
import time
from PyQt5.QtWidgets import (QApplication, QDialog,
QProgressBar, QPushButton)
TIME_LIMIT = 100
class Actions(QDialog):
"""
@vivekjoshy
vivekjoshy / config.py
Created February 18, 2019 13:13
VerboseLogs created by daegontaven - https://repl.it/@daegontaven/VerboseLogs
LOG_FORMAT = "%(asctime)s %(name)-18s %(levelname)-8s %(message)s"
DATE_FORMAT = "[%Y-%m-%d %H:%M:%S %z]"
MAIN_FIELD_STYLES = {
'asctime': {
'color': 'green'
},
'levelname': {
'color': 'black',
'bold': True
@vivekjoshy
vivekjoshy / install-output.md
Last active February 2, 2019 01:02
Install output for pipenv bug report as seen in https://github.com/pypa/pipenv/issues/3497
Installing dependencies from Pipfile.lock (cbf103)…
Installing 'aiohttp'
$ ['/home/meredith/.local/share/virtualenvs/Orator-jO5XcFKu/bin/pip', 'install', '--verbose', '--upgrade', '--no-deps', '-r', '/tmp/pipenv-4f6wyya9-requirements/pipenv-nkxmmovu-requirement.txt', '-i', 'https://pypi.org/simple', '--require-hashes']
Installing 'async-timeout'
$ ['/home/meredith/.local/share/virtualenvs/Orator-jO5XcFKu/bin/pip', 'install', '--verbose', '--upgrade', '--no-deps', '-r', '/tmp/pipenv-4f6wyya9-requirements/pipenv-94x7sqjj-requirement.txt', '-i', 'https://pypi.org/simple', '--require-hashes']
Installing 'cffi'
$ ['/home/meredith/.local/share/virtualenvs/Orator-jO5XcFKu/bin/pip', 'install', '--verbose', '--upgrade', '--no-deps', '-r', '/tmp/pipenv-4f6wyya9-requirements/pipenv-q3umrtx0-requirement.txt', '-i', 'https://pypi.org/simple', '--require-hashes']
Installing 'chardet'
$ ['/home/meredith/.local/share/virtualenvs/Orator-jO5XcFKu/bin/pip', 'install', '--verbose', '--upgrade', '--no-deps', '-r', '/tmp/pipen
@vivekjoshy
vivekjoshy / vagrant-values.log
Created January 18, 2019 02:23
Output of `vagrant config --list`
git_user Your git/Gerrit username
Enter 'anonymous' for anonymous access, leave blank to manage it yourself
Current value: taven
vagrant_ram Amount of RAM (in MB) allocated to the guest VM
Specify 'auto' to automatically allocate 1/4 of your system's memory
Current value: 1536 (default)
vagrant_cores CPU cores allocated to the guest VM
All of your host system's cores are allocated by default.