Skip to content

Instantly share code, notes, and snippets.

View BernardoGO's full-sized avatar

Bernardo Augusto Godinho de Oliveira BernardoGO

  • Pontifical Catholic University of Minas Gerais
  • Belo Horizonte - Brazil
View GitHub Profile
#!/bin/sh
echo small-
if diff /home/bernardo/Downloads/pa2/server/input_small.txt /home/bernardo/Projects/redes2/input_small.txt >/dev/null ; then
echo Same
else
echo Different
fi
echo medium-
if diff /home/bernardo/Downloads/pa2/server/input_medium.txt /home/bernardo/Projects/redes2/input_medium.txt >/dev/null ; then
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include "message.h"
#include <cstring>
#include <arpa/inet.h>
#include <errno.h>
#include <netdb.h>
bernardo@bernardo-P650SE-A:~$ uname -a
Linux bernardo-P650SE-A 3.19.0-31-generic #36~14.04.1-Ubuntu SMP Thu Oct 8 10:21:08 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
bernardo@bernardo-P650SE-A:~$ sh get-acpi-info.sh
Dumping ACPI tables...
[sudo] password for bernardo:
Intel ACPI Component Architecture
ACPI Binary Table Extraction Utility version 20140214-64 [Mar 29 2014]
Copyright (c) 2000 - 2014 Intel Corporation
@BernardoGO
BernardoGO / gist:430742263e3fc828f461
Created February 26, 2015 01:50
PIC16F628A Blink on xc8
/******************************************************************************/
/* Files to Include */
/******************************************************************************/
//by: BernardoGO
#if defined(__XC)
#include <xc.h> /* XC8 General Include File */
#elif defined(HI_TECH_C)
#include <htc.h> /* HiTech General Include File */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
namespace XMLSK
{
///by: Bernardo Godinho <bernardo.godinho.oliveira@gmail.com>
static class XMLhl
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace Reflect
{
///by: Bernardo Godinho <bernardo.godinho.oliveira@gmail.com>
class ReflectionValues