Skip to content

Instantly share code, notes, and snippets.

View NekoTashi's full-sized avatar

Christopher Rubio Márquez NekoTashi

View GitHub Profile
# Classifier
y = [0;0;0;0;1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0];
# Imagen
x = [0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0;0;0;0;0;0;1;1;1;0;0;0;0;1;1;1;0;0;0;0;0];
# 3 layers
theta1 = (rand(400, 401)*2)-1;
theta2 = (rand(400, 401)*2)-1;
theta3 = (rand(27, 401)*2)-1;
<html>
<head>
<style type="text/css">
body {
font-family: sans-serif;
font-size: 14px;
}
</style>
<title>Google Maps JavaScript API v3 Example: Places Autocomplete</title>
ACTIVITY_LENGUAGE_CHOICE = (
('español', 'Español'),
('english', 'English'),
)
class UserProfile(models.Model):
# relations
user = models.OneToOneField(User)
################ LOGEO #####################
usshorario.ddns.net:8080/auth/login [POST]
HEADER:
Content-Type: application/json; charset=utf-8
BODY:
{
"username": "17.304.391-0",
"password": "password"
}
@NekoTashi
NekoTashi / ospf-frame-relay-auth.txt
Created April 20, 2015 01:48
N1WAN.docx - Correo - Certamen 1 - Nicolas Montero - OSPF - Frame Relay - Auth
! -------------Frame Relay-------------
! R1
int loopback 0
ip add 1.1.1.1 255.255.255.0
no shut
int s0/0/0
enc frame
no shut
@NekoTashi
NekoTashi / correcto.py
Created May 12, 2015 00:10
Un correcto culiao penca pal colega y la conchetumare.
# -*- coding: utf-8 -*-
from __future__ import print_function
sufix_noun_singular_plural = {
'a': 'as', 'b': 'bes', 'c': 'cs', 'd': 'des', 'e': 'es', 'f': 'fs',
'g': 'gs', 'i': 'is', 'j': 'jes', 'k': 'ks', 'l': 'les', 'm': 'ms',
'n': 'nes', 'o': 'os', 'p': 'ps', 'r': 'res', 's': 'es', 't': 'ts',
'u': 'us', 'v': 's', 'x': 'xes', 'z': 'ces'
}
@NekoTashi
NekoTashi / contour.py
Last active August 29, 2015 14:21
Intento fallido de capturar el contorno de una imagen
# -*- coding: utf-8 -*-
from PIL import Image
from PIL import ImageFilter
# Get an image
image = Image.open('images/image.jpg')
# Get the contour
image = image.filter(ImageFilter.CONTOUR)
# views.py
from itertools import izip_longest
# ...
jugadores = list(izip_longest(jugador_l, jugador_v, fillvalue=None))
# ...
# template.html
# ...
{% for vs_jugadores in jugadores %}
{% if vs_jugadores.0 %}{{ vs_jugadores.0 }}{% endif %}
mascara 25 = 255.255.255.128
mascara 29 = 255.255.255.248
# Configurar Vlan 30 y 40 en switch SW1
enable
conf t
vlan 30
name MKT
vlan 40
name ING
@NekoTashi
NekoTashi / json_schedule.json
Created September 16, 2015 18:34
Formato json del horario de los alumnos.
[
{
"classroom_number": "A405 ",
"created": "2015-08-07T03:46:03.102790Z",
"day": "LU",
"id": 7,
"journal": "BESPA",
"modified": "2015-08-07T03:46:03.109032Z",
"module": 1,
"name": "INTELIGENCIA DE NEGOCIOS",