Skip to content

Instantly share code, notes, and snippets.

View pony012's full-sized avatar

Alan Andrés Sánchez Castro pony012

View GitHub Profile
// .sNMMMMMNds+-`
// `/hMMMMMMMMMMMMMMmho/-`
// -sNMMMMMMMMMMMMMMMMMMMMMNdy.
// .+dNMMMMMMMMMMMMMMMMMMMMMMMMN+
// .+hNMMMMMMMMMMMMMMMMMMMMMMMMMMN:
// `/hNMMMMMMMMMMMMMMMMMMMMMMMMMMMMN-
// ./yNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
// `.+hNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN`
// .+hmNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm
// `.-:hNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMs
                                                 .sNMMMMMNds+-`             
                                              `/hMMMMMMMMMMMMMMmho/-`       
                                            -sNMMMMMMMMMMMMMMMMMMMMMNdy.    
                                         .+dNMMMMMMMMMMMMMMMMMMMMMMMMN+     
                                      .+hNMMMMMMMMMMMMMMMMMMMMMMMMMMN:      
                                   `/hNMMMMMMMMMMMMMMMMMMMMMMMMMMMMN-       
                                ./yNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+        
                            `.+hNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN`        
                         .+hmNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm         

`.-:hNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMs

def largest_element(elements):
pass
// function to display number of posts.
function getPostViews($postID){
$count_key = 'post_views_count';
$count = get_post_meta($postID, $count_key, true);
if($count==''){
delete_post_meta($postID, $count_key);
add_post_meta($postID, $count_key, '0');
return "0 View";
}
return $count.' Views';
                                                 .sNMMMMMNds+-`             
                                              `/hMMMMMMMMMMMMMMmho/-`       
                                            -sNMMMMMMMMMMMMMMMMMMMMMNdy.    
                                         .+dNMMMMMMMMMMMMMMMMMMMMMMMMN+     
                                      .+hNMMMMMMMMMMMMMMMMMMMMMMMMMMN:      
                                   `/hNMMMMMMMMMMMMMMMMMMMMMMMMMMMMN-       
                                ./yNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+        
                            `.+hNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN`        
                         .+hmNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm         

`.-:hNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMs

#Práctica 1 ###Cliente/Servidor

No importa nada de los núcleos (funciona de forma tramposa).

Cliente prepara mensaje

/*Cliente*/
byte msg[]; //Solicitud empaquetada (nombre, codop)
send(idDst, msg);
#include <iostream>
#include <vector>
using namespace std;
class Cliente
{
public:
int id;
string nombre;
;;;(compile-file "ltk")
(load "ltk")
(defpackage :gui
(:use :common-lisp :ltk)
(:export #:main)
)
(in-package :gui)
#include <windows.h>
#include <math.h>
#include <GL/glut.h>
#define WIDTH 400
#define HEIGHT 300
#define STEP 13
int buff[WIDTH][HEIGHT];
#!/usr/bin/env python
# -*- coding: utf-8 -*-
class Automata:
def __init__(self, s = None):
W = 48
E = 20
self.W = W
self.E = E