Skip to content

Instantly share code, notes, and snippets.

👋
Yo yo yo

Alex Vernacchia vernak2539

👋
Yo yo yo
Block or report user

Report or block vernak2539

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View got parallel limit example.js
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 Oct 23, 2017
terraform vsphere data source fail
View config.tf
data "vsphere_datacenter" "datacenter" {
name = "Sample DC"
}
@vernak2539
vernak2539 / paket-init.js
Created Apr 26, 2016
Simple gulp task for initializing paket
View paket-init.js
// 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 Nov 10, 2015
Promises and Callbacks
View callback-execution.js
'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 Jul 30, 2015
Atom Test Snippets
View snippets.cson
# 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 Jul 16, 2015 — forked from timsim00/Fuel-Node-SOAP Custom headers
Fuel-Node-SOAP - Custom headers
View custom_headers.js
var callback = function(err, data) {
};
SoapClient.retrieve(
'Email',
, ['ID','Name']
, {
filter: {...}
, reqOptions: {
@vernak2539
vernak2539 / 1_setup.js
Last active Apr 5, 2019
Fuel-SOAP Examples
View 1_setup.js
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 Aug 29, 2015
Fuel UX Wizard Right-to-Left (RTL)
View markup.html
<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>
View console_output.sh
$ 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).
@vernak2539
vernak2539 / fuelux-datepicker-3.0-examples.html
Last active Aug 29, 2015
Fuel UX Datepicker 3.0 Examples
View fuelux-datepicker-3.0-examples.html
<!--
///////////////////////////////////////////////////////////////////////
// These examples apply to Fuel UX v3.0
// If you're looking for Fuel UX v2.* please checkout the examples here
// - https://gist.github.com/vernak2539/7589085
/////////////////////////////////////////////////////////////////////////
-->
<!-- standard markup of datepicker -->
<div class="datepicker dropdown" id="myDatepicker">
<div class="input-append">
You can’t perform that action at this time.