Skip to content

Instantly share code, notes, and snippets.

View antonyalkmim's full-sized avatar

Antony Alkmim antonyalkmim

View GitHub Profile
@antonyalkmim
antonyalkmim / zsh.md
Created February 20, 2017 13:27 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@antonyalkmim
antonyalkmim / css_separado.css
Last active December 7, 2016 12:01
Trechos de codigos para TCC
body { background-color: #0000FF;}
h1 { color:#00FF00; }
a { color: #FFFFFF; }
p {background-color: #ffFF00;}
h1, p { text-transform: uppercase; }
/* Exemplo com ID */
#topico { background-color: #000000; }
/* Exemplo de classes */
@antonyalkmim
antonyalkmim / estados-cidades.json
Created October 20, 2016 16:07 — forked from letanure/estados-cidades.json
JSON estados cidades
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@antonyalkmim
antonyalkmim / mvvm
Created October 13, 2016 15:39 — forked from denisnazarov/mvvm
iOS ReactiveCocoa/MVVM Resources
## Collection of posts/videos I've found useful while researching mvvm
https://speakerdeck.com/jspahrsummers/code-reuse-with-mvvm
http://cocoasamurai.blogspot.com/2013/03/basic-mvvm-with-reactivecocoa.html
http://www.teehanlax.com/blog/model-view-viewmodel-for-ios/
http://martinfowler.com/eaaDev/PresentationModel.html
http://twocentstudios.com/blog/2014/06/08/on-mvvm-and-architecture-questions/
@antonyalkmim
antonyalkmim / main.cpp
Last active November 28, 2016 23:27
Picasso Core
//Portas correspondentes aos servos
#define MOTOR_1 4 //MIN:0 - MAX:180
#define MOTOR_2 5 //MIN:0 - MAX:180
#define MOTOR_3 9 //MIN:10 - MAX:70
#define MOTOR_4 13 //MIN:80 - MAX:180
#define MOTOR_VAR 2 //constante somada a cada ciclo para mover cada motor
#include <Servo.h>
@antonyalkmim
antonyalkmim / binarysearch.m
Last active September 25, 2016 19:40
Algoritmos de busca e ordenação implementados no OCTAVE/MATLAB
function ret = binarysearch(el,vet)
inf = 1;
sup = numel(vet);
while(inf <= sup)
meio = idivide(sup + inf, 2);
if(el == vet(1, meio))
ret = meio;
return;
#include <Servo.h>
Servo motor;
int pos;
void setup(){
motor.attach(6);
motor.write(0);
}
@antonyalkmim
antonyalkmim / Results+Rx.swift
Created July 24, 2016 05:11 — forked from fpillet/Results+Rx.swift
turn Realm auto-updating Results into an RxSwift Observable sequence
//
// Results+Rx.swift
//
// Make Realm auto-updating Results observable. Works with Realm 0.98 and later, RxSwift 2.1.0 and later.
//
// Created by Florent Pillet on 12/02/16.
// Copyright (c) 2016 Florent Pillet. All rights reserved.
//
import Foundation
@antonyalkmim
antonyalkmim / display.hpp
Last active June 16, 2016 23:21
Arduino - Display LCD
/*
* Enviar caracteres e comandos ao LCD com via de dados de 8 bits.
* c é o dado e cd indica se é instrução ou caractere (0 ou 1).
**/
void cmd_LCD(unsigned char c, char cd);
/* Inicialização do LCD com via de dados de 8 bits */
void inic_LCD_8bits();
/* Escrita no LCD – dados armazenados na RAM */
void escreve_LCD(char *c);
/* Escrita no LCD – dados armazenados na FLASH */
@antonyalkmim
antonyalkmim / ADC.hpp
Last active June 13, 2016 23:26 — forked from anonymous/ADC.hpp
Arduino - Conversor Analogico/Digital
/*
* ADC.hpp
*
* Created on: 06/06/2016
* Author: puc
*/
#include <avr/io.h>