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 SwiftUI | |
import Combine | |
| |
struct FlightBookingView: View { | |
@ObservedObject var model: FlightBookingViewModel | |
var body: some View { | |
NavigationView { | |
Form { | |
DatePicker(selection: $model.departureDate, in: model.departureDateRange, displayedComponents: .date) { |
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
#!/usr/local/bin/python3 | |
import os | |
import subprocess | |
import json | |
from os.path import expanduser | |
home = expanduser("~") | |
track = 'reasonml' | |
projects = ['protein-translation', 'armstrong-numbers', 'change', 'rna-transcription', 'space-age', 'bob', 'anagram', 'accumulate', 'run-length-encoding', 'minesweeper', 'hello-world', 'leap', 'isogram', 'raindrops', 'acronym', 'word-count', 'allergies', 'all-your-base', 'pangram', 'binary-search'] |
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
#!/usr/bin/env python3 | |
import os | |
# 1. Save this file in /home/ethos/monitor.py on your ethOS | |
# 2. Change permission to make it executable | |
# chmod 0755 /home/ethos/monitor.py | |
# 3. Run crontab | |
# # crontab -e | |
# 4. Schedule a cron task to execute every 5 minutes | |
""" |