Skip to content

Instantly share code, notes, and snippets.

View hydrocat's full-sized avatar

Hydrocat hydrocat

View GitHub Profile
@hydrocat
hydrocat / 0.py
Created April 6, 2016 20:58
Projeto de LFAD
#coding:latin
"""Autômatos finitos.
Desenvolvido para a disciplina de Linguagens Formais, Autômatos e Computabilidade.
UTFPR-CM (2015-2)
Professor: Marco Aurélio Graciotto Silva
Aluno:Felipe V. Ramos
RA:1061461
Aluno:Vitorio M. P. Cilia
RA:1648756
"""
@hydrocat
hydrocat / decimal2binary.c
Created September 15, 2015 04:05
Quick print decimal in binary using C
#include <stdio.h>
#include <stdlib.h>
int main(int argc,char* argv[] )
{
int n = atoi(argv[1]);
int i=0;
for(; i < sizeof( int ) * 8 ; i++, n <<= 1 )
{