Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View 456789123's full-sized avatar

Christiano Reis 456789123

  • Brazil
  • 09:17 (UTC -03:00)
View GitHub Profile
@456789123
456789123 / ControleInterface.java
Last active January 28, 2016 14:51
Using a GUI control with java, I have the temperature reading with the LM35 and control of a fan that can be used in a cooling system or greenhouse.
package janela;
import java.io.IOException;
import javax.swing.JFrame;
import javax.swing.UIManager;
public class ControleInterface {
@456789123
456789123 / .bashrc
Created October 15, 2015 00:20
Configuraçã e Alias
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
@456789123
456789123 / httpd.conf
Created October 15, 2015 00:14
Configuração Apache
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
@456789123
456789123 / vimrc
Last active October 15, 2015 00:08
Configuração do VIM para o Fedora Linux. Caminho: vim /etc/vimrc .vimrc
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=ucs-bom,utf-8,latin1
endif
set nocompatible " Use Vim defaults (much better!)
set bs=indent,eol,start " allow backspacing over everything in insert mode
"set ai " always set autoindenting on
"set backup " keep a backup file
set viminfo='20,\"50 " read/write a .viminfo file, don't store more
" than 50 lines of registers
@456789123
456789123 / Regiões_Brasil.sql
Last active August 29, 2015 14:23
Estou disponibilizando um SCRIPT em sql para fins didáticos. Este SCRIPT consiste em três tabelas. Tabela de regiões do brasil, tabela dos 27 estados brasileiros e a última com todos os municípios do Brasil cada um vinculado com seu respectivos estados. Espero ajudar a galera que está estudando Banco de Dados pois é um ótimo exemplo para brincar…
/* #############################################################################
# #
# #
# Regiões do Brasil #
# #
# #
################################################################################
*/
/*
@456789123
456789123 / pessoa2.c
Created June 15, 2015 14:49
Com relação ao último programa que foi postado em C ansi, este aqui está melhorado com funções estáticas. Aqui sim está dando uma boa interpretação a Orientação a Objetos.
/*
Compilando:
DEBUG:
gcc -Wall -g pessoav2.c -DDEBUG -o pessoav2
RELEASE:
gcc -Wall -O2 pessoav2.c -o pessoav2
@456789123
456789123 / gist:96ecd6402da290399165
Created June 15, 2015 14:45
Eae galera??? Avaliem meu código em C ansi!!! Não vou explicar nada. A saída já explica tudo. Para vocês terem uma ideia, os inodes dos diretórios do linux são feito desta forma. Apreciem o código: Compilar: gcc -ansi -Wall pessoas.c -o pessoas
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define LENGTH (50)
typedef struct {
char nome[LENGTH];
char cidade[LENGTH];
char pais[LENGTH];