This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ fujifilm_auto_settings-0.2 | |
Apply Fujifilm film simulations, in-camera crop mode, and dynamic range. | |
Copyright (C) 2022 Bastian Bechtold <[email protected]> | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or | |
(at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
sys.path.append(os.path.dirname(os.path.realpath(__file__))+'/transplant') | |
from transplant_master import Matlab, TransplantError | |
from IPython.display import HTML, Image, display | |
from IPython import get_ipython | |
_matlab = Matlab() | |
def matlab(line, cell=None): | |
global _matlab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env fish | |
function cd -d "change directory, and activate virtualenvs, if available" | |
# first and foremost, change directory | |
builtin cd $argv | |
# find a parent git directory | |
if git rev-parse --show-toplevel >/dev/null ^/dev/null | |
set gitdir (realpath (git rev-parse --show-toplevel)) | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
from cffi import FFI | |
ffi = FFI() | |
ffi.cdef(""" | |
typedef enum pa_stream_direction { | |
PA_STREAM_NODIRECTION, | |
PA_STREAM_PLAYBACK, | |
PA_STREAM_RECORD, | |
PA_STREAM_UPLOAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\Bastian\Miniconda3\python.exe download.py "poly files/na_ca_manitoba.poly" | |
C:\Users\Bastian\Miniconda3\python.exe download.py "poly files/na_ca_quebec.poly" | |
C:\Users\Bastian\Miniconda3\python.exe download.py "poly files/na_ca_newfoundland-and-labrador.poly" | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A simple limiter | |
from sounddevice import Stream, CallbackStop | |
from time import sleep | |
from numpy import array, random, zeros | |
import matplotlib.pyplot as plt | |
################################### Constants ################################## | |
fs = 44100 # Hz |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.