Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

#!/usr/bin/python
# Copyright (c) 2016, Gordon JC Pearce <gordon@gjcp.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
@endolith
endolith /.gitignore
Last activeSeptember 20, 2024 00:21
I tried to plot AGI on the Chatbot Arena Elo scale by comparing to "both bad" and "tie" votes
*.json
*checkpoint.ipynb
@endolith
endolith /README.md
Last activeAugust 28, 2025 16:20
Qalculate keyboard shortcut with AutoHotkey

Finally Qalculate has been ported to Windows. Now we can do unit-aware calculations inline, in any document, with AutoHotkey, similar toMonster.ahk but with units.

Instructions:

  1. InstallQalculate
  2. InstallAutoHotkey
  3. Add qalc.exe to your PATH. I useRapid Environment Editor for this.
  4. Run qalc.ahk
@endolith
endolith /whisper_transcribe.py
CreatedMarch 27, 2023 02:33
Transcribe a long audio recording using OpenAI Whisper API
"""
Break up a long recording to fit within the Whisper API's limits, with some
overlap, so no words are missed, and then feed to OpenAI Whisper API to
transcribe it to .txt file. Written by endolith and ChatGPT-4.
"""
importopenai
importmath
importos
importsubprocess
@endolith
endolith /db_to_gpx.py
CreatedSeptember 9, 2022 01:08
Maprika sqlite database to GPX track converter
"""
WrittenbyGPT3fromthisEnglishprompt (withonetweaktotheprompt,toget
thetimestampparametertonoterrorout,andPEP8fixes):
----
1.Openasqlitedatabasewithanamelike`2022-07-17 17.48.19.db`or
`2021-04-11 08.44.16.db`
2.Insideisatablecalled`locations`,withheaders [LOCTYPEINTEGER,
TIMESTAMPBIGINT,LATITUDEREAL,LONGITUDEREAL,ALTITUDEREAL,ACCURACY
@endolith
endolith /estimated_variance_of_estimated_probability.py
Last activeDecember 13, 2023 18:20
Confirm the formula for estimating the variance of an estimated probability. (Trying to understand error bars forhttps://github.com/endolith/elsim/issues/13)
"""
Confirm the formula for estimating the variance of an estimated probability.
Created on Fri May 27 11:06:43 2022
"""
importnumpyasnp
deffunc(x):
"""
@endolith
endolith /FIR_filter_NN.py
Last activeMay 13, 2025 16:20
Neural network learning FIR filter
"""
Train a neural network to learn an FIR filter.
Created on Fri Aug 3 15:00:40 2018
"""
fromtensorflow.keras.modelsimportSequential
fromtensorflow.keras.layersimportDense
fromtensorflow.keras.callbacksimportCallback
importnumpyasnp
fromscipyimportsignal
NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp