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 / 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 / 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 / mismatch.js
Last active December 20, 2015 12:59
detect name or birth mismatch
var http = require('http');
var modelNames = {'RadExam': 4, 'PathExam': 1, 'LabResult': 8/*, 'Patient': 1*/ };
// var modelNames = {'RadExam': 2, 'PathExam': 2, 'LabResult': 2, 'Patient': 1 };
// var rootUrl = 'illum-qa-india.softek.local:8080/solr/';
var rootUrl = 'illum-index-prod:8080/solr/';
var modelNames = {'RadExam': 4, 'PathExam': 1, 'LabResult': 8, 'Patient': 1 };
fs.readFile('file.txt', function (err, contents) {
//do something useful with contents
});
$contents = file_get_contents("file.txt");
@dynajoe
dynajoe / io.rb
Created May 1, 2013 01:50
File IO in ruby
contents = File.read "file.txt"
@dynajoe
dynajoe / io.cs
Last active December 16, 2015 20:29
File IO in C#
var contents = File.ReadAllText("file.txt");
@dynajoe
dynajoe / nodekc.md
Last active December 16, 2015 07:48 — forked from adunkman/nodekc.md

Next Meetup: Tuesday, April 16

  • Hack and Tell (another group|sucky npm packages)

Topics:

  • What's new in node 0.10 (and why isn't it 1 yet?) - 0
  • native bindings - 0
  • how do you create blocking javascript - 1
  • Hosting node.js on production windows - 1
    • node.js on azure
  • Cross-meetup meeting (game group?) - 0
@dynajoe
dynajoe / topics
Created February 8, 2013 05:50
NodeKC meeting topics
# Next Meetup: Tuesday, january 15
# Topics:
- connect/express middleware - 3
- non-http networks - 8 - DUN DUN DUN
- Torrent
- UDP
- Multicast (Frank)
- XMPP (XTENSIBLE MESSAGING AND PRESENCE PROTOCOL)
- Serial
@dynajoe
dynajoe / Smoking-12.8.12.json
Created December 8, 2012 23:56
Smoking Data 12/8/12
[{"time":1354996461089,"temp":"176"},{"time":1354996463121,"temp":"175"},{"time":1354996465152,"temp":"175"},{"time":1354996467183,"temp":"176"},{"time":1354996469215,"temp":"175"},{"time":1354996471246,"temp":"176"},{"time":1354996473278,"temp":"176"},{"time":1354996475310,"temp":"176"},{"time":1354996477342,"temp":"176"},{"time":1354996479374,"temp":"176"},{"time":1354996481405,"temp":"175"},{"time":1354996483437,"temp":"177"},{"time":1354996485468,"temp":"176"},{"time":1354996487516,"temp":"176"},{"time":1354996489547,"temp":"176"},{"time":1354996491563,"temp":"176"},{"time":1354996493594,"temp":"176"},{"time":1354996495627,"temp":"176"},{"time":1354996497658,"temp":"177"},{"time":1354996501721,"temp":"176"},{"time":1354996503752,"temp":"176"},{"time":1354996507816,"temp":"176"},{"time":1354996511879,"temp":"177"},{"time":1354996513912,"temp":"176"},{"time":1354996515943,"temp":"177"},{"time":1354996517975,"temp":"177"},{"time":1354996520021,"temp":"177"},{"time":1354996522037,"temp":"177"},{"time":1354996