This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
class Employee: | |
def __init__(self, name, number): | |
self._name = name | |
self._number = number | |
#employee = Employee("Mike", "123") | |
#print(employee._name, employee._number) | |
class Supervisor(Employee): | |
def __init__(self, name, number, annual_salary, bonus): |
class Person: | |
def __init__(self, name, address, phone): | |
self._name = name | |
self._address = address | |
self._phone = phone | |
#boy = Person("Jake", "123 Main Street", "123-456-7890") | |
#print(boy._name, boy._address, boy._phone) | |
class Customer(Person): |
# | |
# example using recursion, but output is reversed | |
# | |
def print_stars_desc(n): | |
print(str(n) + " stars: " + (n * "*")) | |
if n > 1: | |
print_stars_desc(n - 1) | |
print("") |
# prompt: | |
# Joe's Automotive performs the following routine maintenance services: | |
# + Oil change - $30.00 | |
# + Lube job - $20.00 | |
# + Radiator flush - $40.00 | |
# + Transmission flush - $100.00 | |
# + Inspection - $35.00 | |
# + Muffler replacement - $200.00 | |
# + Tire rotation - $20.00 | |
# Write a GUI program with check buttons that allow the user to select any or all of these services. |
# resources: | |
# + https://www.tutorialspoint.com/python/python_gui_programming.htm | |
# + https://www.tutorialspoint.com/python/tk_radiobutton.htm | |
# + https://www.tutorialspoint.com/python/tk_entry.htm | |
from Tkinter import * | |
window = Tk() | |
# |
Leverage an existing open source website to publish your own.
Note: your website content will be available to the public.
#!/bin/bash | |
# download to your desktop, then run with: bash ~/Desktop/my_mac_script.sh | |
echo "Hello, $USER." | |
sleep 2 | |
echo "The current time is: $(date)." | |
sleep 2 | |
echo "You are running this script from within the following folder:" | |
sleep 2 |