Skip to content

Instantly share code, notes, and snippets.

@bastibe
bastibe / limiter_python.py
Created October 11, 2015 10:58
A simple limiter in Python
# 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
@gizmaa
gizmaa / Plot_Examples.md
Last active April 12, 2024 14:18
Various Julia plotting examples using PyPlot
@appakz
appakz / countLOC.ps1
Created January 25, 2012 03:13
Quick and dirty powershell script for counting lines in each file of a folder
#Quick and dirty PS script for counting lines of code in a directory. Output is dumped to a simple CSV file.
#Note that this script doesn't count blank lines.
#Parameters:
# path - the path containing the code files (note that the script will recurse through subfolders
# outputFile - fully qualified path of the file to dump the CSV output
# include (Optional) - file mask(s) to include in the count (deafults to *.*)
# exclude (Optional) - file mask(s) to exclude in the count (defaults to none)
# Example (count lines in target path including *.cs but excluding *.designer.cs)
# .\countLOC.ps1 -path "C:\code\MyProject" -outputFile "C:\code\loc.csv" -include "*.cs" -exclude "*.designer.cs"
param([string]$path, [string]$outputFile, [string]$include = "*.*", [string]$exclude = "")