Skip to content

Instantly share code, notes, and snippets.

View nenodias's full-sized avatar

Horácio Dias Baptista Neto nenodias

View GitHub Profile
@nenodias
nenodias / index.html
Created March 15, 2019 02:54
Teste Gauge
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Canvas</title>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
@nenodias
nenodias / ExemploSemVetor.pas
Last active April 25, 2019 22:02
Exemplo Vetor
Program Pzim ;
var
nota1, nota2, nota3, nota4: integer;
nome: string;
Begin
writeln('Digite seu nome:');
read(nome);
writeln('Digite a 1ª nota:');
read(nota1);
writeln('Digite a 2ª nota:');
@nenodias
nenodias / main.rs
Created May 31, 2019 02:43
Example Rust Input data on terminal
use std::io;
fn input(mensagem: &'static str) -> String {
println!("{}", mensagem);
let mut input: String = "".to_string();
io::stdin().read_line(&mut input).unwrap();
input.truncate(input.len() - 1);//Remove \n
input
}
@nenodias
nenodias / ajustado.py
Last active June 1, 2019 15:21
Cifra.py
import sys
ALPHABET = ' abcdefghijklmnopqrstuvwxyz'
ROOT = '3'
def decrypt(message):
m = ''
@nenodias
nenodias / index.html
Created June 7, 2019 17:19
Blog with Metho UI?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>As Dev I'll</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- For initialized after mounted -->
<!-- <meta name="metro4:init" content="false"> -->
@nenodias
nenodias / angular.html
Last active September 2, 2020 14:36
Exemplo Backbone e AngularJs
<!DOCTYPE html>
<html lang="en" ng-app="AppModule">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AngularJS</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.8.0/angular.min.js"></script>
</head>
<body >
<div ng-controller="AppController">
@nenodias
nenodias / jogo_da_velha.py
Created February 14, 2020 23:34
Jogo da Velha Python
from curses import initscr, wrapper, noecho, cbreak, endwin
from random import randint
def boas_vindas(stdscr):
stdscr.addstr(1, 1, 'Bem-vindo ao Jogo da Velha.')
stdscr.addstr(2, 1, 'Pressione q para sair ou h para obter ajuda.')
stdscr.addstr(16, 1, 'Desenvolvido por: Horácio Dias.')
stdscr.addstr(17, 1, 'Licensa Nova BSD.')
@nenodias
nenodias / README.md
Last active September 1, 2020 11:24
Java Ebook

Usar o site https://md2pdf.netlify.com/ para gerar o pdf

Introdução

Instalação

Hello World

Entrada e Saida

Tipos de Variáveis ( e operações)

Escopo e difinição de Variáveis (Blocos, modificadores public, private)

@nenodias
nenodias / web-servers.md
Created April 15, 2020 19:40 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@nenodias
nenodias / README.md
Last active December 15, 2020 02:04
Lógica de Programação e Algoritmos

Estrutura sequencial

Lógica

Fluxograma

Abstração

Comandos de entrada e saída