Skip to content

Instantly share code, notes, and snippets.

View jalateras's full-sized avatar

Jim Alateras jalateras

  • Comware Australia
  • Melbourne, Australia
View GitHub Profile
@jalateras
jalateras / layout.jade
Created September 3, 2012 05:05
Testing Gist Creation
html
head
title= title
script(type="text/javascript", src='http://code.jquery.com/jquery-1.6.1.min.js')
link(rel='stylesheet', href='/stylesheets/style.css')
body
block content
@jalateras
jalateras / mymodule
Created February 7, 2014 18:47
How to prep a javascript module for node and browser
(function() {
if (typeof exports !== 'undefined') {
module.exports = (function() {
var debug = require('debug')('mymodule');
return exportModule(debug);
})();
}
else if (typeof define === 'function' && define.amd) {
define(
[
@jalateras
jalateras / Vagrantfile
Last active August 29, 2015 14:02
Vagrant Trusty and Docker
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get -yq install lxc-docker
sudo sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker
SCRIPT
/**
* @author Jim Alateras
*/
var fs = require('fs');
var path = require('path');
var map = require('map-stream');
var through = require('through2');
var debug = require('gulp-debug');
var es = require('event-stream');
/**
* @author Jim Alateras
*/
var fs = require('fs');
var stream = require('stream')
var path = require('path');
var File = require('vinyl');
var vfs = require('vinyl-fs');
var buffer = require('vinyl-buffer');
@jalateras
jalateras / vinyl-discover.js
Created August 6, 2016 08:18
This is basically some prototype code for csv tabulator and discover
const through = require('through2');
const transform = require('vinyl-transform');
const gunzip = require('gulp-gunzip');
const vfs = require('vinyl-fs');
const map = require('map-stream');
const csvParser = require('csv-parse/lib/sync');
// var csv = require('csv-stream');
const util = require('util');
const gutil = require('gulp-util');
'use strict';
const through = require('through2');
const util = require('util');
const gutil = require('gulp-util');
module.exports = function(files, options) {
if (!files || files.length === 0) {
throw new Error('Must specify at least one file to split into');
}
@jalateras
jalateras / gist:ad26873c2701685aee9952797826bca7
Last active February 2, 2017 08:16
Comware Australia | NodeJS, AWS, DevOps | Melbourne Australia | Permanent, Contract | REMOTE (Australia Only)
Looking for a software engineer with extensive experience in nodejs, aws and elasticsearch and knowledge of Ansible,
Docker and Kubernetes to help with developing and extending an audience management platform. which currently collects
in excess of 100M+ events per day. Front-end experience in VueJs or ReactJS is a bonus but not required as is a fervour
for entrepreneurialship. If you have a passion for quality and automation, can hit the ground running and work autonomously
then email me directory at jima at comware dot com dot au.
The interview process is lightweight, no code review, no testing just point me to your github account or some projects you've
worked on and let's grab a coffee, or hook up over skype for a chat. I am a big fan of the Longflow Manifesto
(https://github.com/Nax/longflow-manifesto), collaboration and knowledge sharing. Willing to pay premium for the right person