Skip to content

Instantly share code, notes, and snippets.

View zrhans's full-sized avatar

Hans Rogério Zimermann zrhans

View GitHub Profile
@zrhans
zrhans / switch_case_with_if_else.py
Created October 17, 2023 02:57 — forked from duducp/switch_case_with_if_else.py
Switch case with if/else
def function1():
print("Case 1 selected")
def function2():
print("Case 2 selected")
def default():
print("Value default")
def switch(case):
@zrhans
zrhans / switch_case_dict_functions.py
Created October 17, 2023 02:57 — forked from duducp/switch_case_dict_functions.py
Switch case using dict functions
def function1():
print("Case 1 selected")
def function2():
print("Case 2 selected")
def default():
print("Value default")
if __name__ == "__main__":
@zrhans
zrhans / index.html
Created October 15, 2019 02:34 — forked from alyssaq/index.html
HTML5 skeleton template
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>App</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script charset="utf-8" src="js/app.js"></script>
<link rel="stylesheet" href="css/app.css" />
</head>
<body>
@zrhans
zrhans / Download_HidroWeb.py
Created February 15, 2017 00:44 — forked from JeanFavaretto/Download_HidroWeb.py
HidroWeb Baixar séries históricas, download, obtenção, aquisição, Estações, Pluviométricas, Pluviometria, Fluviométricas, Fluviometria, Precipitação, Vazão, Cotas, baixar varias estações. Este script, Python HidroWeb, foi criado para automatizar o procedimento de aquisição de dados das estações do portal: http://hidroweb.ana.gov.br/
# -*- coding: utf-8 -*-
"""
___________________________-> Python - Hidroweb <-______________________________
Autor: Arthur Alvin 25/04/2015
afmalvim@gmail.com
Modificação: Jean Favaretto 16/07/2015
jeanfavaretto@gmail.com
# Add the Oracle JDK Repos
UBUNTU_VERSION=precise
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu ${UBUNTU_VERSION} main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu ${UBUNTU_VERSION} main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
DEBIAN_FRONTEND="noninteractive" apt-get update
# Accept the Oracle License
echo "oracle-java7-installer shared/accepted-oracle-license-v1-1 boolean true" > /tmp/oracle-license-debconf
/usr/bin/debconf-set-selections /tmp/oracle-license-debconf