Taken from StackExchange
Thanks to LangLangC
For temperature and other improvements see https://gist.github.com/cdleon/d16e7743e6f056fedbebc329333d79df
Taken from StackExchange
Thanks to LangLangC
For temperature and other improvements see https://gist.github.com/cdleon/d16e7743e6f056fedbebc329333d79df
| #pragma once | |
| #include <functional> | |
| #include <unordered_map> | |
| #include <string> | |
| #include <mutex> | |
| #include <sstream> | |
| #include <locale> | |
| #include <cstdlib> | |
| #include <algorithm> |
| """ | |
| Validación de cédula dominicana en Python por: Freddy Rondon | |
| """ | |
| def validar_cedula(cedula): | |
| # La cédula debe tener 11 dígitos | |
| cedula = cedula.replace('-','') | |
| if len(cedula)== 11: | |
| if (int(cedula[0:3]) < 122 and int(cedula[0:3]) > 0 or int(cedula[0:3]) == 402): | |
| suma = 0 |
| // Filename: HttpServer.cs | |
| // Author: Benjamin N. Summerton <define-private-public> | |
| // License: Unlicense (http://unlicense.org/) | |
| using System; | |
| using System.IO; | |
| using System.Text; | |
| using System.Net; | |
| using System.Threading.Tasks; |
| <!-- layout file --> | |
| <% if current_user %> | |
| Welcome <%= current_user.username %>. Not you? <%= link_to "Log out", logout_path %> | |
| <% else %> | |
| <%= link_to "Sign up", signup_path %> or <%= link_to "log in", login_path %>. | |
| <% end %> |