Skip to content

Instantly share code, notes, and snippets.

View amagno's full-sized avatar
🏠
Working from home

Alexandre Magno Monteiro amagno

🏠
Working from home
View GitHub Profile
@amagno
amagno / WebSocket
Last active February 8, 2019 18:43
<!DOCTYPE html>
<meta charset="utf-8" />
<title>WebSocket Test</title>
<script language="javascript" type="text/javascript">
var wsUri = "wss://sicoob-digital-notifications-homologacao.sicoobunicoob.com.br/ws?subscribe=requests";
var output;
var timer;
const ID = "WebSocket rocks";
@amagno
amagno / atividade8_2.c
Created June 2, 2017 01:29
Atividade 8 Execício 2
#include <stdio.h>
#include <stdlib.h>
int main()
{
int vetor[10], i;
for(i = 0; i < 10; i++) {
printf("digite um numero: ");
scanf("%d", &vetor[i]);
@amagno
amagno / atividade8_1.c
Last active June 2, 2017 01:22
Atividade 8 Exercício 1
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char carros[5][20];
float consumo[5], economico = 0;
int i , economicoI = 0;
#include <stdio.h>
#include <stdlib.h>
void (*registerFunction[99])();
void exercicioRegister(int index, void(*exercicio)())
{
registerFunction[index] = exercicio;

Hello World!!!

<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>ページ番号付きのページネーション</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="page-demo">
@amagno
amagno / cep-angulajs
Last active August 29, 2015 14:05
CEP API
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<title>JS Bin</title>
</head>
<body ng-app="CepApp">
<div ng-controller="SearchCepController as ctrl">
<form ng-submit="ctrl.search(ctrl.cep)">
<label>Buscar CEP: </label>
var testeModule = angular.module('testeModule', []);
testeModule.controller('TesteController', ['$scope', '$http', function($scope, $http){
$scope.nomeTeste = {};
/****
$http.get('/nomesteste')
<div class="container">
<form class="form-signin form-horizontal" method="post" action="/login">
<h2 class="">Please sign in</h2>
<div class="control-group ">
<label class="control-label" for="email">Email:</label>
<div class="controls">
<input type="text" id="email" name="email" placeholder="Email address" value="">
</div>
</div>