Skip to content

Instantly share code, notes, and snippets.

View fernandozamoraj's full-sized avatar

Fernando Zamora fernandozamoraj

View GitHub Profile
@fernandozamoraj
fernandozamoraj / simple-exampe-angularjs.html
Last active August 29, 2015 14:00
Simplest Example of angular.js
<!doctype html>
<html ng-app="myApp">
<head>
<title>Simple Example of Angular.js</title>
</head>
<body>
<h1>Events</h1>
<div ng-controller="eventController">
/*
* grunt-backup
* https://github.com/igorzoriy/grunt-backup
*
* Copyright (c) 2013 Igor Zoriy
* Licensed under the MIT license.
*/
//copy does not work
'use strict';
/*
* This Gruntfile.js works with the following versions of the packages
*
* "grunt": "^0.4.5",
* "grunt-backup": "^0.1.1",
* "grunt-contrib-copy": "^0.5.0"
*
* This task copies all files including subdirectories and their files from
* C:/temp1/src/ into C:/temp1/dest/
*
@fernandozamoraj
fernandozamoraj / pubnub_demo.html
Created October 9, 2014 20:59
Simple Example for Pubnub messagin
<!DOCTYPE html>
<!-- open up this same page in two instances of the brower that way you can see the message pop up in the other instances of the browser-->
<!-- make sure to add the jquery.js file to the same location as this file -->
<!-- Author: Fernando Zamora 9 October 2014 -->
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Home</title>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" />
<title>You Title Goes Here</title>
<style>
body{
background-image: url('./pics/carousel/image_3.jpg');
@fernandozamoraj
fernandozamoraj / beat_buzzer_ard_sketch
Created January 12, 2015 00:41
Beat with Buzzer - Arduino Sketch
/*
Copied my first sketch from the blink sketch and modified it 11Jan2015- Fernando
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the Uno and
Leonardo, it is attached to digital pin 13. If you're unsure what
pin the on-board LED is connected to on your Arduino model, check
the documentation at http://arduino.cc
@fernandozamoraj
fernandozamoraj / gist:530ee4e4fd0d5d413dbb
Last active August 29, 2015 14:14
fzj_msg_sender_arduino
/*
fzj_msg_sender
converts bytes into binary digits and sends them out
by Fernando Zamora
*/
const int MAX_MESSAGE_BIT_SIZE = 128; //nice even sixteen bytes of data
const int MAX_MESSAGE_CHAR_SIZE = 16; //nice even sixteen bytes of data
const int DELAY = 1;
@fernandozamoraj
fernandozamoraj / gist:9dcb7cb1801c99a2220a
Created February 3, 2015 22:36
smallest_universal_kata
import java.util.Random;
public class SnippyMain {
public static void main(String args[]){
System.out.println("Hello World");
SnippyMain snippy = new SnippyMain();
String who = "";
@fernandozamoraj
fernandozamoraj / jumpingavatar
Created March 12, 2015 03:36
jump simple game
function Avatar(scene){
var JUMP_FORCE = 14;
var sprite = new Sprite(scene, "./img/image.png", 150, 150);
var jumping = false;
sprite.init = function(){
this.setSpeed(0);
};
@fernandozamoraj
fernandozamoraj / getlinks
Last active September 13, 2015 21:21
get links from a url