Skip to content

Instantly share code, notes, and snippets.

View hminaya's full-sized avatar
🎯
Focusing

Hector Minaya hminaya

🎯
Focusing
View GitHub Profile
@hminaya
hminaya / palindrome-mono.cs
Created April 22, 2013 22:52
Ejemplo en C# (para correr con mono) de como sacar un palindromo
using System;
using System.IO;
using System.Diagnostics;
using System.Collections.Generic;
using System.Linq;
namespace palindrome
{
class MainClass
{
@hminaya
hminaya / capicua2.py
Last active December 16, 2015 18:59 — forked from imiric/capicua2.py
#!/usr/bin/env python
def is_palindrome(num):
return str(num) == str(num)[::-1]
def closest_higher(target, collection) :
"""Return the closest number to `target` in `collection`
that is higher than `target`"""
return max((target - i, i) for i in collection if (target - i) < 0)[1]
@hminaya
hminaya / palindrome-two.rb
Last active December 16, 2015 19:00
Segundo ejemplo en ruby
count = 0
File.open("seed.txt") do |f|
while line = f.gets
one, two = line.split(" ").map(&:to_i)
while (one <= two) do
one += 1
muestra = one.to_s
@hminaya
hminaya / pal.cs
Last active December 17, 2015 10:09 — forked from jose-gomez/gist:5495370
namespace PalindromeGist
{
struct Program
{
public static bool Espalindromo(string word)
{
char[] origin = word.ToCharArray();
for (int i = 0; i < word.Length; i++)
{
if (origin[i] != origin[(origin.Length - 1) - i])
@hminaya
hminaya / backenddev.md
Last active September 20, 2020 21:25
meSuma - Backend Developer (python)

##Backend python developer

Hey,

Here at meSuma we are looking to fill an in-house position for a backend developer. We are looking for someone who can learn quickly, is very skilled and passionate about coding in general. You’d be working with a wide stack of technologies, including but not limited to: python, flask, pyramid, go, grunt, mongodb, postgresql.

We are a young startup and are open to remote work for the right person. In this position you’d be reporting directly to the CTO and joining an existing team of developers working on this project.

###Where do I apply?

###Home Screen

  • Cambiar la imagen (logo.png) que esta en el Splash por otra.
  • Cambiar el texto/color/tamaño/tipo de letra de "Connect To General"
  • Agregar una imagen en la parte inferior relativo a Xamarin Dev Days

###Chat Screen

  • Cambiar la imagen de fondo de la pantalla
  • La imagen de los mensajes que usted envía en Android debe ser el Robot de Android y en iOS una manzana
  • La imagen de los mensajes que usted recibe debe ser de un minion
  • La imagen de los mensajes que usted recibe no debe ser encerrada en un circulo, debe ser un cuadrado.

Instrucciones Hands On Lab - Xamarin DevDays Santiago

Pantalla de Clientes (Customer)

(1) Actualmente muestra el nombre de la compañía y el nombre del cliente. Uno esta en Gris oscuro y otro en gris claro. Debe cambiar ambos colores. El nombre de la compañía debe ser negro y el del cliente azul.

(2) Cuando se le da click al nombre del cliente se muestra una pantalla de detalle donde se muestra: Contact, Phone, Address. Deben cambiarse los títulos por Full Name, Emergency Number y Work

Pantalla de Productos (Products)

(3) Seleccionar un Tipo de Producto, Seleccionar una Categoría, esto mostrara un listado de Productos. Favor color un separado Rojo entre nada producto.

@hminaya
hminaya / DestinationPageViewModel.cs
Last active May 3, 2017 23:41
PRISM - Navigation Service
public class DestinationPageViewModel
{
INavigationService _navigationService;
public DestinationPageViewModel(INavigationService navigationService)
{
BackCommand = new DelegateCommand(OnBack);
_navigationService = navigationService;
@hminaya
hminaya / App.xaml.cs
Created May 3, 2017 23:44
PRISM - App.xaml.cs
using Xamarin.Forms;
using Prism.Unity;
using Prism.Mvvm;
namespace Diplomado
{
public partial class App : PrismApplication
{
public App()
{
@hminaya
hminaya / DestinationPageViewModelWithParams.cs
Created May 3, 2017 23:47
PRISM - DestinationPageViewModelWithParams
public class DestinationPageViewModel
{
INavigationService _navigationService;
public DestinationPageViewModel(INavigationService navigationService)
{
BackCommand = new DelegateCommand(OnBack);
_navigationService = navigationService;