This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def langids(self): | |
print "metodo langids..." | |
""" Return the USB device's supported language ID codes. | |
These are 16-bit codes familiar to Windows developers, where for | |
example instead of en-US you say 0x0409. USB_LANGIDS.pdf on the usb.org | |
developer site for more info. String requests using a LANGID not | |
in this array should not be sent to the device. | |
This property will cause some USB traffic the first time it is accessed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN; | |
-- XXX Add DDLs here. | |
DO $$ | |
DECLARE | |
mydata date; | |
BEGIN | |
SELECT INTO mydata CURRENT_DATE; | |
IF mydata = '2017-03-21' THEN | |
insert INTO log_os (codfili, codorde,codtecn, hr_log, dt_log, cd_usuario, cd_senha, nr_log,no_historico) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Mon May 22 19:19:14 BRT 2017 | |
#edit below | |
ansible-ssh-auth-type=privateKey | |
ansible-ssh-key-storage-path=keys/id_rsa.ansible | |
project.ansible-become-method=sudo | |
project.ansible-become-user=ansible | |
project.ansible-executable=/bin/bash | |
project.ansible-ssh-auth-type=privateKey | |
project.ansible-ssh-key-storage-path=keys/id_rsa.ansible | |
project.ansible-ssh-user=ansible |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute pathogen#infect() | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
"let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_auto_loc_list=2 | |
let g:syntastic_check_on_open = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE dbatez.rec_filial drop COLUMN pk_rec_filial; | |
ALTER TABLE dbatez.rec_filial ADD COLUMN pk_rec_filial bigserial UNIQUE; | |
ALTER TABLE dbatez.rec_filial ALTER COLUMN pk_rec_filial SET NOT NULL; | |
ALTER TABLE dbatez.rec_filial ALTER COLUMN pk_rec_filial SET DEFAULT nextval('dbatez.rec_filial_pk_rec_filial_seq'::regclass); | |
update dbatez.REC_FILIAL set pk_rec_filial = pk_rec_filial; | |
-- passar o ultimo elementro da sequence | |
select max(pk_rec_filial) from dbatez.rec_filial; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<math.h> | |
int main() | |
{ | |
int numero; | |
printf("Entre com um numero inteiro: "); | |
scanf("%d",&numero); | |
if (((numero % 3)==0) && ((numero % 5)==0)){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void) { | |
// declaração de variáveis | |
int contador; | |
float nota1, nota2, nota3, media; | |
for (contador = 0; contador < 3; contador ++) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
float salario; | |
char temFilhos; | |
printf("Digite o salario atual do funcionario: "); | |
scanf("%f", &salario); | |
printf("\nVoce possui Filhos? Digite 'S' ou 'N': "); | |
scanf(" %c", &temFilhos); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
void main() { | |
float nota, soma=0, media; | |
int conta; | |
for (conta = 0; conta <= 9; conta++) { | |
printf("Digite a nota: "); | |
scanf("%f", ¬a); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
/* | |
F=1,8C + 32 | |
*/ | |
void main() { | |
float soma=0; | |
int valorInicial, valorFinal, contador; | |
printf("Digite o valor da temperatura inicial: \n"); |