Skip to content

Instantly share code, notes, and snippets.

View vernak2539's full-sized avatar
๐Ÿ‘‹
Yo yo yo

Alex Vernacchia vernak2539

๐Ÿ‘‹
Yo yo yo
View GitHub Profile
@vernak2539
vernak2539 / callback-execution.js
Last active November 10, 2015 20:42
Promises and Callbacks
'use strict';
var TestConstructor = require('./test-module');
var Testing = new TestConstructor();
Testing.doSomething(function(err, data) {
// oh im done. an async process has happened
});
@vernak2539
vernak2539 / paket-init.js
Created April 26, 2016 11:31
Simple gulp task for initializing paket
// You've installed paket in your repo, but the .exe file isn't there, just paket.bootstraper.exe
// This sample can be used by gulp to make sure others working on your project can get setup correctly
var gulp = require('gulp');
gulp.task('paket:init', [], function(callback) {
var paket = spawn('./.paket/paket.bootstrapper.exe', []);
var log = function(msg) {
msg = msg.toString('utf8');
@vernak2539
vernak2539 / config.tf
Last active October 23, 2017 10:33
terraform vsphere data source fail
data "vsphere_datacenter" "datacenter" {
name = "Sample DC"
}
const got = require('got');
const { parallelLimit } = require('async');
const body = { feature: 'my_feature', other: 'yes' };
const bodies = [
{ feature: 'my_feature', other: 'yes' },
{ feature: 'my_feature3', other: 'yes' },
{ feature: 'my_feature2', other: 'yes2' }
];