Skip to content

Instantly share code, notes, and snippets.

View CuyiGuaton's full-sized avatar
💭
UwU

Sergio Salinas CuyiGuaton

💭
UwU
  • Santiago, Chile
View GitHub Profile
@CuyiGuaton
CuyiGuaton / init.js
Created January 20, 2018 15:59
Mongoose os conection to AWS IOT
load('api_mqtt.js');
load('api_gpio.js');
load("api_adc.js");
load('api_timer.js');
load('api_config.js');
load('api_net.js');
let pin = 0, topic = 'my/topic';
let value = ADC.enable(0);
@CuyiGuaton
CuyiGuaton / genalg.py
Created June 17, 2017 07:34
Hello world with Genetic algorithm
# -*- coding: utf-8 -*-
"""
Hello world with Genetic algorithm
"""
import random
#Generate random string with same lenght that target
def initialization(target, letters):
string = []
@CuyiGuaton
CuyiGuaton / flat-html5-css3-login-form.markdown
Created June 11, 2017 10:06
Flat HTML5/CSS3 Login Form

Flat HTML5/CSS3 Login Form

Simple HTML5/CSS3 login form that also works as registration form. You can tweak this form further to use it as part of your web app, website or anything else.

A Pen by Aigars Silkalns on CodePen.

License.

#include <cstdlib>
#include <gmp.h>
#include <iostream>
using namespace std;
void Div2(mpz_t u, mpz_t v, mpz_t A, mpz_t B) {
mpz_t aux;
mpz_init(aux);
if (mpz_even_p(u) != 0 && mpz_even_p(v) != 0) {
mpz_tdiv_q_ui(u, u, 2);
@CuyiGuaton
CuyiGuaton / index.html
Created August 9, 2016 06:36
Show the Local Weather
<div id = "latitude">
<h4>If you can see this, is because you code is no working.</h4>
</div>