Skip to content

Instantly share code, notes, and snippets.

View SpiralOutDotEu's full-sized avatar
🤯
If ZK hasn't profoundly shocked you, you haven't understood it yet

Nikos Koumbakis SpiralOutDotEu

🤯
If ZK hasn't profoundly shocked you, you haven't understood it yet
View GitHub Profile
@SpiralOutDotEu
SpiralOutDotEu / elgafar-1.env
Last active September 22, 2022 18:41
Stargaze network parameters
export CHAIN_ID="elgafar-1"
export TESTNET_NAME="elgafar-1"
export FEE_DENOM="ustars"
export STAKE_DENOM="ustars"
export GENESIS_URL="https://raw.githubusercontent.com/CosmWasm/testnets/master/malaga-420/config/genesis.json"
export RPC="https://rpc.elgafar-1.stargaze-apis.com:443"
@SpiralOutDotEu
SpiralOutDotEu / index.html
Created May 2, 2022 12:16
Python Script Inside HTML
<html>
<head>
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.min.js"></script>
<py-env>
- numpy
- matplotlib
</py-env>
</head>
@SpiralOutDotEu
SpiralOutDotEu / remove_wrong_jpeg.py
Created September 13, 2020 18:18
python script to identify those fault jpg images in a directory.
import glob
import os
import re
import logging
import traceback
filelist=glob.glob("/path/to/*.jpg")
for file_obj in filelist:
try:
<annotation>
<folder>VOC2009</folder>
<filename>2007_000027.jpg</filename>
<source>
<database>The VOC2007 Database</database>
<annotation>PASCAL VOC2007</annotation>
<image>flickr</image>
</source>
<size>
<width>486</width>
@SpiralOutDotEu
SpiralOutDotEu / gist:12ce0c55126c3b9003d214ee123bbe5d
Created March 22, 2020 17:59
convert video so that works with DaVinci Resolve in linux
ffmpeg -i <input> -c:v mpeg4 -force_key_frames "expr:gte(t,n_forced*1)" -c:a pcm_s16le <output>.mov
{"format": "graph-model", "generatedBy": "1.15.0", "convertedBy": "TensorFlow.js Converter v1.5.2", "userDefinedMetadata": {"signature": {"inputs": {"image_tensor:0": {"name": "image_tensor:0", "dtype": "DT_UINT8", "tensorShape": {"dim": [{"size": "-1"}, {"size": "-1"}, {"size": "-1"}, {"size": "3"}]}}}, "outputs": {"detection_multiclass_scores:0": {"name": "detection_multiclass_scores:0", "dtype": "DT_FLOAT", "tensorShape": {"dim": [{"size": "-1"}, {"size": "100"}, {"size": "4"}]}}, "num_detections:0": {"name": "num_detections:0", "dtype": "DT_FLOAT", "tensorShape": {"dim": [{"size": "-1"}]}}, "raw_detection_scores:0": {"name": "raw_detection_scores:0", "dtype": "DT_FLOAT", "tensorShape": {"dim": [{"size": "-1"}, {"size": "-1"}, {"size": "4"}]}}, "detection_boxes:0": {"name": "detection_boxes:0", "dtype": "DT_FLOAT", "tensorShape": {"dim": [{"size": "-1"}, {"size": "100"}, {"size": "4"}]}}, "detection_scores:0": {"name": "detection_scores:0", "dtype": "DT_FLOAT", "tensorShape": {"dim": [{"size": "-1"}, {"siz
import os
def get_files(folder):
for item in os.listdir(folder):
full_item = os.path.join(folder, item)
if os.path.isfile(full_item):
yield full_item
elif os.path.isdir(full_item):
yield from get_files(full_item)
@SpiralOutDotEu
SpiralOutDotEu / git-clearHistory
Created September 24, 2019 15:01 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git
@SpiralOutDotEu
SpiralOutDotEu / pypi-cheatsheet.md
Last active September 23, 2019 19:43 — forked from audreyfeldroy/pypi-release-checklist.md
My PyPI Release Checklist

build

python3 setup.py sdist bdist_wheel

travis encrypt

travis encrypt my_password --add deploy.password

bump2version