This file contains 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
#!/bin/bash - | |
#=============================================================================== | |
# | |
# FILE: createPythonProject.sh | |
# | |
# USAGE: ./createPythonProject.sh | |
# | |
# DESCRIPTION: Create a new Python project | |
# | |
# VERSION: 1.8 |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
''' | |
MIT License | |
Copyright (c) 2016-2024 Bodo Schönfeld | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software | |
and associated documentation files (the "Software"), to deal in the Software without restriction, |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
""" | |
Download and unzip a ZIP file | |
Version: 1.0 | |
Python 3.7+ | |
Date created: May 12th, 2021 | |
Date modified: - |
This file contains 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
//: # Introduction to CALayer | |
//: (Xcode 9 and Swift 4) | |
import UIKit | |
import PlaygroundSupport | |
//: From Apples's Support Documentation: | |
//: | |
//: > The CALayer class manages image-based content and allows you to perform animations on that content. Layers are often used to provide the backing store for views but can also be used without a view to display content. | |
//: |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
''' | |
Author: @niftycode | |
Version: 1.3 | |
Python 3.10 | |
Date created: February 14th, 2018 | |
Date modified: December 1st, 2021 |
This file contains 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
-- Backup data using rsync | |
-- Version 1.0 | |
-- Create a List Menu | |
set usbList to {"1b", "1c"} | |
set usbList to choose from list usbList with prompt "Bitte ein Sicherungsziel auswählen:" default items {"1b"} | |
-- If the user cancels the process, a dialog is displayed | |
if usbList is false then | |
beep |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
""" | |
Create a second window (QWidget) | |
Version: 1.0 | |
Python 3.8+ | |
Date created: July 15th, 2021 | |
Date modified: - |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
""" | |
Traffic Accidents in Kiel, Germany | |
Python 3.6 | |
last edited: May 19th, 2021 | |
The data is provided by the City of Kiel, Germany | |
https://www.kiel.de/ |
This file contains 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/python3 | |
# -*- coding: utf-8 -*- | |
""" | |
kiel_unfaelle.py | |
version: 1.3 | |
last edited: June 19th, 2021 | |
The data is provided by the City of Kiel, Germany: | |
http://kiel.de/rathaus/statistik/open_data/index.php?id=de-sh-kiel_gesetze_justiz_strassenverkehsunfaelle_verkehrstote_verletzte_fahrerflucht | |
""" |
This file contains 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
package de.niftycode; | |
import org.json.JSONArray; | |
import org.json.JSONObject; | |
import java.net.URI; | |
import java.net.http.HttpClient; // < New in Java 11, can also handle HTTP/2 requests! | |
import java.net.http.HttpRequest; | |
import java.net.http.HttpResponse; |
NewerOlder