Skip to content

Instantly share code, notes, and snippets.

View giljr's full-sized avatar
💭
Full Stack Developer with a degree in Computer Engineering.

Gilberto Oliveira Jr giljr

💭
Full Stack Developer with a degree in Computer Engineering.
View GitHub Profile
// Test program for LED matrix, Simple PONG game
// 8x8 Matrix is connected using a 74HC138 multiplexer
// on PIN 2,3 and 4 controlling the collumns
// The rows are controlled (sourced) by PIN 5-12
//
// In a timer interrupt (timer2, 1kHz) the display routine is
// called, outputting the global imageMem buffer.
//
// one paddle (potentiometer) is connected to Analog input 0
// autoplay can be defined for a static demo.
/*
Project name:
05 #kidSerie - Adafruit-IO Meets ESP8266, Arduino & MIT App Inventor 2 (Awesome Smart Phone App!)
Flavour IV
Hex File: _05_kidSerie_sketch_04.Adafruit_Forth_Try.ino
Revision History:
20161029:
- from github adafruit/Adafruit_MQTT_Library
https://github.com/adafruit/Adafruit_MQTT_Library/blob/master/examples/mqtt_esp8266/mqtt_esp8266.ino
https://learn.adafruit.com/mqtt-adafruit-io-and-you/intro-to-adafruit-mqtt
<!doctype html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<!--<script type="text/javascript" src="./jquery311.js"></script> -->
<script type="text/javascript" src="https://github.com/adafruit/io-issues/releases/download/mqttjs/mqtt.js"></script>
<!-- <script type="text/javascript" src="./mqtt.js"></script> -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Crosshair : MonoBehaviour {
// Use this for initialization
void Start () {
//hide the mouse cursor
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Soldier : MonoBehaviour {
private GameObject mEnemy;
// Use this for initialization
void Start () {
//Move to the left
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Soldier : MonoBehaviour {
private GameObject mEnemy;
public float RightTime = 1.0f;
public float ShootTime = 1.0f;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyController : MonoBehaviour {
public Soldier[] enemies;
// Use this for initialization
void Start () {
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Soldier : MonoBehaviour {
private GameObject mEnemy;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyController : MonoBehaviour {
public Soldier[] Enemies;
// Use this for initialization
void Start () {
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameController : Singleton<GameController>
{
protected GameController() { } // guarantee this will be always a singleton only - can't use the constructor!