- [23andMe][1] (10% off any Kit)
- [Acorns][2]
- [Ancestry][3] (15% off $99 Kit)
- [Brave][4]
- [Coinbase][5]
- [Dollar Shave Club][6] ($5 Starter Set)
- [Hulu][7] (2 Free Weeks)
- [Kiva][8]
- [Kobo][9] (Free Audiobooks Trial)
- [Kobo][10] ($5 off First eBook Purchase)
๐
This file contains hidden or 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
| from PIL import Image | |
| import numpy | |
| def color_diff(color1, color2): | |
| return numpy.sum((color1 - color2) ** 2) ** 1/2 | |
| def hsv(rgb): | |
| hue = numpy.array(rgb) / 255 | |
| value_index = numpy.argmax(hue) | |
| value = hue[value_index] |
This file contains hidden or 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
| import speech_recognition as sr | |
| from pydub import AudioSegment | |
| import os | |
| AudioSegment.converter = r"C:\Users\Jeremy Grifski\AppData\Roaming\JetBrains\PyCharmCE2020.1\scratches\ffmpeg.exe" | |
| r = sr.Recognizer() | |
| for i, filename in enumerate(os.listdir('audio')): | |
| sound = AudioSegment.from_mp3(f'audio/{filename}') | |
| sound.export(f"dump/{filename[:-4]}.wav", format="wav") |
This file contains hidden or 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
| /** | |
| * A bicycle consists of a chain assembly, a handle assembly, and a frame. | |
| * This class can be used to simulate a bicycle. | |
| */ | |
| public class Bicycle { | |
| private BrakeAssembly brakeAssembly; | |
| private ChainAssembly chainAssembly; | |
| private HandleAssembly handleAssembly; | |
| /** |
This file contains hidden or 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
| public static void tryToWin(int num) { | |
| num++; | |
| if (num >= 6) { | |
| System.out.print("You're a winner"); | |
| } | |
| System.out.print("You lose"); | |
| } |