Skip to content

Instantly share code, notes, and snippets.

View dynajoe's full-sized avatar

Joe Andaverde dynajoe

  • Temporal Technologies
  • United States
View GitHub Profile
@dynajoe
dynajoe / extended.js
Last active August 29, 2015 14:01
Extending Objects
var EventEmitter = require('events').EventEmitter;
var MyNewEmitter = function () {
EventEmitter.call(this);
var that = this;
setInterval(function () {
that.emit('myEvent');
}, 1000);
};
@dynajoe
dynajoe / talk-proposals.md
Created August 31, 2014 03:19
Talk Proposals

JavaScript in detail

This talk is geared toward developers with a basic to intermediate understanding of JavaScript. It will be a whirlwind tour of the most commonly misunderstood concepts of JavaScript including closures, variable hoisting, the this keyword, and prototypal inheritance. You'll leave this talk with a more thorough understanding of JavaScript and be well prepared to write applications that take advantage of the great power of expression that JavaScript provides.

Creating a Node.js clone starting with int main()

This talk will provide knowledge about the internals of Node.js that you cannot get anywhere else. You will leave with a more thorough understanding about the Node.js event loop and how asynchronous I/O is handled. We will integrate the two most important projects that make Node.js possible (Google V8 and libuv) to build a Node.js clone. Using this clone, we will create a simple TCP server to handle HTTP requests from JavaScript.

How I built an automated meat smoker on Ardui

@dynajoe
dynajoe / index.html
Created December 26, 2014 06:19
Same Game in HTML
<html>
<head>
<script type="text/javascript">
window.onload = function () {
var canvas = document.getElementById('game-canvas');
var context = canvas.getContext("2d");
context.fillStyle = "#0000FF";
var radius = 30;
var x = 250;
@dynajoe
dynajoe / gist:446b041b6a388cb6a769
Last active August 29, 2015 14:25 — forked from simonmorley/gist:d16261a1b45e28af6455
Google Cloud Compute Create Snapshot with Rotate
#!/bin/ruby
require 'json'
require 'time'
require 'syslog'
class Snapshot
def initialize()
@format = 'json'
@dynajoe
dynajoe / speakerbio.md
Created January 25, 2012 22:11 — forked from smerchek/speakerbio.md
My Speaker Bio

Scott graduated from Kansas State University in 2010 and has worked at Softek Solutions ever since. At Softek, Scott is regarded as a talented and multi-faceted team member. He has experience with many aspects of software development from server side to client facing. He's always interested in learning and seeking out knowledge on how new technologies can be applied to his interests in analytics, data visualization, and search. Outside of software, Scott enjoys reading, cycling, running, spending time with his wife, and working toward a triathlon this year.

@dynajoe
dynajoe / gist:1696239
Created January 28, 2012 23:24
initial meeting

In order for me to have a good idea of who will be attending the event please #rsvp to @nodekc before each meeting. Our meetings will be held at snow and company (Just off I35 in downtown KC) monthly or bi-weekly depending on interest. If you have a laptop please bring it wireless internet is provided.

The NodeKC user group will be focusing on open source node projects. We'll work collaboratively on projects that the group determines to be interesting and challenging. Our first project, however, has already been determined for sake of a quick start. This project idea will be announced and developed further at the first meetup.

We'll break into two groups and work toward a similar goal on the project after the first meeting. These groups will have a set of user stories to accomplish before the next meetup. At the following meeting we'll review each of the groups code and determine which codebase to merge into the main github branch. We can also selectively choose parts of each of the groups work. Note that

@dynajoe
dynajoe / gist:1696433
Created January 29, 2012 00:33 — forked from smerchek/gist:1696321
initial meeting

In order for me to have a good idea of who will be attending the event please #rsvp to @nodekc before each meeting. If you're not a twitter user just shoot an e-mail to me (joe [hat] nodekc.org). Our meetings will be held at snow and company (Just off I35 in downtown KC) monthly or every other week, depending on interest. If you have a laptop please bring it (wireless internet will be provided).

The NodeKC user group will focus on building open source node projects. We'll work collaboratively on projects that the group determines to be interesting and challenging. Our first project, however, has been pre-determined for the sake of a quick start. This project idea will be announced and developed further at the first meetup.

We'll break into two groups and work toward a similar goal on the project after the first meeting. These groups will have a set of user stories to accomplish before the next meetup. At the following meeting we'll review each of the groups code and determine which codebase to merge into

@dynajoe
dynajoe / gist:3422212
Created August 22, 2012 04:05
Final Notes - NodeKC - 21 Aug 12
Ideas!
Workshop for node.js and javascript
https://github.com/nodekc/workshop
Node knockout
(1) 1. Desktop clients in node.js and javascript

These instructions work for the Raspberry Pi running Raspbian (hard float) and create a hardware optimized version of NodeJS for the Raspberry PI, (and include a working install and NPM!!!):

  1. Install Raspbian - http://www.raspberrypi.org/downloads

  2. Install the necessary dependecies:

sudo apt-get install git-core build-essential
@dynajoe
dynajoe / pingserver.js
Created November 3, 2012 21:45
Ping Server
var net = require('net');
var http = require('http');
var lastKey = "";
var sockets = [];
var netServer = net.createServer(function (socket) {
sockets.push(socket);
var removeClient = function () {