Skip to content

Instantly share code, notes, and snippets.

@leonardopaffi
leonardopaffi / arc-style.ini
Created November 21, 2018 09:31
Arc Theme for WXMaxima 18.02
fontEncoding=0
[Style]
fontname=
[Style/Background]
color=rgb(64, 69, 82)
[Style/Highlight]
color=rgb(0, 255, 255)
[Style/TextBackground]
color=rgb(255, 255, 255)
[Style/CellBracket]
@X-Raym
X-Raym / wavfile.py
Last active November 6, 2020 15:04 — forked from josephernest/wavfile.py
wavfile.py (enhanced): now moved to https://github.com/X-Raym/wavfile.py !!
# wavfile.py (Enhanced)
# Date: 20180430_2335 Joseph Basquin
#
# Mod by X-Raym
# Date: 20180706_1558
# * add log parameter for read function
# * return 'success' at end of write
# * renamed variables to avoid conflict with python native functions
# * correct bytes error
# * correct write function
@josephernest
josephernest / wave.py
Last active March 24, 2022 17:23
wave.py (enhanced)
# wave.py (Enhanced)
# Date: 2018/04/30 Joseph Ernest
#
# URL: https://gist.github.com/josephernest/e3903ba30b820cd199500e50f145a11f
# Source: Lib/wave.py
#
# Added:
# * IEEE support
# * 24 bit support
# * cue + loops markers support
@fjf2002
fjf2002 / btrfs-undelete
Last active March 29, 2021 22:12 — forked from Changaco/btrfs-undelete
btrfs-undelete
#!/bin/bash
# btrfs-undelete
# Copyright (C) 2013 Jörg Walter <[email protected]>
# Copyright (C) 2018 Franz-Josef Faerber <[email protected]>
# This program is free software; you can redistribute it and/or modify it under
# the term of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or any later version.
@patoorio
patoorio / .gitignore
Last active August 24, 2021 23:13 — forked from endolith/readme.md
Continuous wavelet analysis by Roger Fearick
*.pyc
@pachadotdev
pachadotdev / 00-install-intel-mkl-64bit
Last active February 4, 2021 07:59
Install Intel MKL (64 bit) on Ubuntu 17.10
# Option 1: Use apt-get
# keys taken from https://software.intel.com/en-us/articles/installing-intel-free-libs-and-python-apt-repo
cd ~/GitHub/r-with-intel-mkl/
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
sudo sh -c 'echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list'
sudo apt-get update && sudo apt-get install intel-mkl-64bit
@jwhiting
jwhiting / gist:74953e9462acd6059f070e366053ce48
Last active July 23, 2018 19:01
Modified ReaperJS oscilloscope with beat sync retrig feature
desc:Oscilloscope Meter (Cockos)
//tags: analysis scope meter
//author: Cockos (modified by JSW)
/*
Copyright (C) 2007 Cockos Incorporated
License: LGPL - http://www.gnu.org/licenses/lgpl.html
*/
slider1:view_msec=100<1,2000,1>-view size (ms)
slider2:view_maxdb=0<-450,36,.1>-vzoom
@rosemichaele
rosemichaele / calkin_wilf_sequence.py
Last active May 7, 2021 20:57
Use a generator function for the Calkin-Wilf sequence to determine where in the sequence a given rational number lies.
def calkin_wilf_sequence(number):
def fractions():
from fractions import Fraction
i = Fraction(1/1)
while True:
yield [i.numerator, i.denominator]
i = Fraction(1 / (2*int(i) - i + 1))
gen = fractions()
res = 0
@IzzySoft
IzzySoft / ff57_addons.md
Last active October 14, 2024 18:54
Firefox 57+ Addon Compatibility / Replacements

Mozilla is doing it again: detering the addon developers who once made it „big“ (last time was when they forced them from XUL to their new „stable API“ for „long-time compatibility“ – which then proved to change as often as the XUL did before). So again, many of them are „jumping boat“, as they a) have no time to migrate to the new WebExtensions, b) WebExtensions don't offer the APIs required to perform the tasks needed by their addon, c) WebExtensions not even being ready yet (with just a couple of weeks left to the deadline, the API is still changing and far from being completed).

I won't start a rant on „if I wanted a browser that looks like Chrome (Aurora with FF29), behaves like Chrome (only signed addons via a central store), and now feels like Chrome, I'd use Chrome“. Of course that's true, and having to re-configure ~80% of the browser of course lets me consider changing to a different browser (certainly not Chrome, though). But first let's look where we stand (comments, additions and suggestions wel

@ferrihydrite
ferrihydrite / wavfile.py
Last active May 2, 2019 17:05 — forked from josephernest/wavfile.py
wavfile.py (enhanced)
# wavfile.py (Enhanced)
# Date: 2017/01/11 Joseph Basquin
#
# URL: https://gist.github.com/josephernest/3f22c5ed5dabf1815f16efa8fa53d476
# Source: scipy/io/wavfile.py
#
# Added:
# * read: also returns bitrate, cue markers + cue marker labels (sorted), loops, pitch
# See https://web.archive.org/web/20141226210234/http://www.sonicspot.com/guide/wavefiles.html#labl
# * read: 24 bit & 32 bit IEEE files support (inspired from wavio_weckesser.py from Warren Weckesser)