Skip to content

Instantly share code, notes, and snippets.

View PiepsC's full-sized avatar

Pieps PiepsC

View GitHub Profile
@drichardson
drichardson / reset.ps1
Last active November 18, 2021 23:03
Powershell Reset - Remove horizontal scrollbar and clear
function reset {
Set-Buffer-Width-To-Screen-Width
Clear-Host
}
function Set-Buffer-Width-To-Screen-Width {
$h = Get-Host
$ui = $h.UI.RawUI
$bufferSize = $ui.BufferSize
$windowSize = $ui.WindowSize
@mabdrabo
mabdrabo / sound_recorder.py
Created January 28, 2014 23:05
Simple script to record sound from the microphone, dependencies: easy_install pyaudio
import pyaudio
import wave
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 44100
CHUNK = 1024
RECORD_SECONDS = 5
WAVE_OUTPUT_FILENAME = "file.wav"
@Y4suyuki
Y4suyuki / print_anim.py
Created October 3, 2013 06:22
python script which print animation on console
import time
import sys
animation = "|/-\\"
for i in range(100):
time.sleep(0.1)
sys.stdout.write("\r" + animation[i % len(animation)])
sys.stdout.flush()