Skip to content

Instantly share code, notes, and snippets.

View fernandozamoraj's full-sized avatar

Fernando Zamora fernandozamoraj

View GitHub Profile
@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
<!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 / 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>
/*
* 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/
*
/*
* grunt-backup
* https://github.com/igorzoriy/grunt-backup
*
* Copyright (c) 2013 Igor Zoriy
* Licensed under the MIT license.
*/
//copy does not work
'use strict';
@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">
@fernandozamoraj
fernandozamoraj / SimplWriteAndDisplayToMongo.js
Created June 13, 2012 00:18
A simple example using of how to write and then read with mongoosejs
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
function start(){
console.log("Request handler 'start' was called.");
}
function upload(){
console.log("Request handler 'upload' was called.");
}