Skip to content

Instantly share code, notes, and snippets.

@trueroad
trueroad / pcsc-test.c
Last active March 22, 2024 12:26
PC/SC test
//
// PC/SC test
// https://gist.github.com/trueroad/ad9c222a667d5091a118196301b938a0
//
// Copyright (C) 2024 Masamichi Hosoda.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
@trueroad
trueroad / show_smf_parameters.py
Last active January 25, 2024 11:01
Show SMF (Standard MIDI File) parameters.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Show SMF (Standard MIDI File) parameters.
https://gist.github.com/trueroad/aca02ee6b36f8aee0ac7bebbdde912fc
Copyright (C) 2024 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / show_zipped_sound_file_parameters.py
Last active January 21, 2024 02:32
Show zipped sound_file_parameters.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Show zipped sound_file_parameters.
https://gist.github.com/trueroad/
Copyright (C) 2024 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / add_date_and_week.py
Last active January 18, 2024 09:59
Add date and week columns.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Add date and week columns.
https://gist.github.com/trueroad/dcbbfd4fe0dbdde547a8733922b4e248
Copyright (C) 2024 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / find_zipped_flac_groups.py
Last active January 17, 2024 10:00
Find groups of equivalent FLACs that are zipped.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Find groups of equivalent FLACs that are zipped.
https://gist.github.com/trueroad/e7c0852f2a5822df05bde9e5578743b7
Copyright (C) 2024 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / check_flac_parameters.py
Last active January 16, 2024 10:51
Check parameters of all zipped FLAC files as expected.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Check parameters of all zipped FLAC files as expected.
https://gist.github.com/trueroad/adc36da36aeb1217e7acf63d98c448a2
Copyright (C) 2024 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / check_wav_parameters.py
Last active January 16, 2024 10:45
Check parameters of all zipped WAV files as expected.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Check parameters of all zipped WAV files as expected.
https://gist.github.com/trueroad/0534d90aacf7e6101f75a47f67af0035
Copyright (C) 2024 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / find_smf_groups.py
Last active January 12, 2024 12:51
Find groups of equivalent SMFs.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Find groups of equivalent SMFs.
https://gist.github.com/trueroad/2b4214a3c033e90ee64f097a7dcccbc1
Copyright (C) 2023 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / calc_time_used.py
Last active December 17, 2023 12:25
Calc time used.
#!/usr/bin/env python3
"""
Calc time used.
https://gist.github.com/trueroad/bb4e2ac32c5006695249cb9d71488420
Copyright (C) 2023 Masamichi Hosoda.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@trueroad
trueroad / calc_weekly_from_daily.py
Last active December 17, 2023 09:47
Calc weekly totals from daily totals.
#!/usr/bin/env python3
"""
Calc weekly totals from daily totals.
https://gist.github.com/trueroad/a3558410135051bad254eb257d45cbd9
Copyright (C) 2023 Masamichi Hosoda.
All rights reserved.
Redistribution and use in source and binary forms, with or without