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
#!/usr/bin/env python | |
"""A simple utility to restore file creation and modification | |
dates back to their original values from EXIF. | |
This script requires exif module to be installed or the exif | |
command line utility to be in the path. | |
To function correctly under windows this script needs win32file and | |
win32con modules. Otherwise it will not be able to restore the creation |
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
// Use on https://www.nasdaq.com/market-activity/stocks/alsn/dividend-history | |
// for example. | |
// Disclaimer - Not intented or guaranteed for official tax purposes. YMMV | |
jQuery('.dividend-history__row').each(function(i, e) { | |
jQuery(e).children().eq(0).on('click', function() { | |
console.log(this.textContent + ' qualified? held 61 days within '); | |
let exdiv = new Date(this.textContent); | |
let dt = exdiv; | |
dt.setDate(dt.getDate() - 60); | |
console.log(dt.toDateString()); |
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
class MuLawConversionProvider : IWaveProvider | |
{ | |
private SampleToWaveProvider16 _sourceBuffer; | |
private WaveFormat _theformat; | |
public MuLawConversionProvider(SampleToWaveProvider16 SrcBuffer, WaveFormat theformat) | |
{ | |
_sourceBuffer = SrcBuffer; | |
_theformat = theformat; |