Skip to content

Instantly share code, notes, and snippets.

View antonyalkmim's full-sized avatar

Antony Alkmim antonyalkmim

View GitHub Profile
@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 / 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 / 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 / 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 / zsh.md
Created February 20, 2017 13:27 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
Lisa Dziuba [10:01]
@artnosenko hi, here is my list, which I used when started learning Swift
1. Apple guides :pray:
https://developer.apple.com/library/content/referencelibrary/GettingStarted/DevelopiOSAppsSwift/index.html#//apple_ref/doc/uid/TP40015214-CH2-SW1
2. Stanford lectures (free!) :
https://itunes.apple.com/in/course/developing-ios-10-apps-swift/id1198467120
3. raywenderlich.com tutorials
@antonyalkmim
antonyalkmim / mapa_mental
Last active March 14, 2017 19:00
Mapa mental SmartHouse
Automacao Residencial : {
Sistema Embarcado : {
Controlar luzes,
Identificar intrusos,
Disparar Alarmes,
Identificar Chuvas,
Portao eletrônico
},
Aplicação Web / Aplicativo : {
Relatório de acessos à residencia,
@antonyalkmim
antonyalkmim / UIView+Constraints.swift
Created March 22, 2017 12:36
iOS AutoLayout Extensions with NSLayoutAnchor
// MARK - UIView + Constraints
extension UIView {
@discardableResult func topAnchor(equalTo anchor: NSLayoutYAxisAnchor, constant: CGFloat = 0) -> Self {
topAnchor.constraint(equalTo: anchor, constant: constant).isActive = true
return self
}
@discardableResult func bottomAnchor(equalTo anchor: NSLayoutYAxisAnchor, constant: CGFloat = 0) -> Self {
@antonyalkmim
antonyalkmim / files_loop.sh
Created March 22, 2017 20:32
Bash command to exec a loop by some files
for x in */*.xcodeproj; do cd “$%.x”; pod deintegrate $x; done
@antonyalkmim
antonyalkmim / main.cpp
Last active June 4, 2017 23:55
Coração da PicassoHouse - Comandos para controle dos componentes eletrônicos
#include <LiquidCrystal.h>
#include <Keypad.h>
#include <Ethernet.h>
#include "RestClient.h"
#include <PubSubClient.h>
#include <aREST.h>
#include <Servo.h>