Skip to content

Instantly share code, notes, and snippets.

View david-ohmg's full-sized avatar

Dave C david-ohmg

  • On Hold Media Group
  • Phoenix, AZ
  • 20:35 (UTC -07:00)
View GitHub Profile
@david-ohmg
david-ohmg / ConvertFile.java
Created October 12, 2024 21:39
Convert PCM audio file to CCITT u/Law for use on most VoIP platforms
package JWaveToCCITT;
import javax.sound.sampled.*;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
public class ConvertFile {
String filePath;
String fileDest;
@david-ohmg
david-ohmg / deck_of_cards.py
Last active October 13, 2024 07:35
Create standard 52 card deck of cards; shuffle; deal cards based on num players, max and min hand sizes; refresh and shuffle and re-deal
"""
DECK OF CARDS
DAVE CRANDELL 2024
52-CARD DECK DEFINED AS DICT
IMAGES FROM https://tekeye.uk/playing_cards/svg-playing-cards
"""
class CardSuit:
SPADES = 'Spades'