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
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' }
];
@vernak2539
vernak2539 / config.tf
Last active October 23, 2017 10:33
terraform vsphere data source fail
data "vsphere_datacenter" "datacenter" {
name = "Sample DC"
}
@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 / 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 / snippets.cson
Created July 30, 2015 16:31
Atom Test Snippets
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
@vernak2539
vernak2539 / custom_headers.js
Created July 16, 2015 14:53 — forked from timsim00/Fuel-Node-SOAP Custom headers
Fuel-Node-SOAP - Custom headers
var callback = function(err, data) {
};
SoapClient.retrieve(
'Email',
, ['ID','Name']
, {
filter: {...}
, reqOptions: {
@vernak2539
vernak2539 / 1_setup.js
Last active August 11, 2021 08:16
Fuel-SOAP Examples
var FuelSoap = require('fuel-soap');
var options = {
auth: {
clientId: 'clientId'
, clientSecret: 'clientSecret'
}
, soapEndpoint: 'https://webservice.s6.exacttarget.com/Service.asmx' // default --> https://webservice.exacttarget.com/Service.asmx
};
var SoapClient = new FuelSoap(options);
@vernak2539
vernak2539 / markup.html
Last active August 29, 2015 14:19
Fuel UX Wizard Right-to-Left (RTL)
<section id="wizard">
<h2>Wizard</h2>
<div class="thin-box">
<!-- you need to add this class ("rtl") to .wizard -->
<div class="wizard rtl" data-initialize="wizard" id="myWizard">
<ul class="steps">
<li data-step="1"><span class="chevron"></span><span class="badge">1</span>Campaign
</li>
<li class="active" data-step="2"><span class="chevron"></span><span class="badge">2</span>Recipients
</li>
@vernak2539
vernak2539 / console_output.sh
Created December 17, 2014 10:00
Karma Problem
$ karma start
INFO [karma]: Karma v0.12.28 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
INFO [launcher]: Starting browser Chrome
WARN [launcher]: PhantomJS have not captured in 60000 ms, killing.
WARN [launcher]: Chrome have not captured in 60000 ms, killing.
WARN [launcher]: PhantomJS was not killed in 2000 ms, sending SIGKILL.
WARN [launcher]: Chrome was not killed in 2000 ms, sending SIGKILL.
INFO [launcher]: Trying to start PhantomJS again (1/2).
INFO [launcher]: Trying to start Chrome again (1/2).