Skip to content

Instantly share code, notes, and snippets.

View anthgur's full-sized avatar

Anthony Urena anthgur

View GitHub Profile
@anthgur
anthgur / index.js
Created October 3, 2017 16:07
Example sabre-soap usage
'use strict';
const { createSession, closeSession } = require('sabre-soap');
const sabreCertUrl = 'https://sws3-crt.cert.sabre.com/';
const credentials = {
username: 'your_username',
password: 'your_password',
pcc: 'your_pseudocity_code',
(def views
{:some-view SomeView
:another-view AnotherView})
(def factories
(map om/factory (vals views)))
(defui Router
static om/Ident
(ident [this {:keys [route]}]
@anthgur
anthgur / git2types.jl
Last active December 28, 2015 22:29
A quick test I created to interact with libgit2.
type GitAtomic
val::Clong
function GitAtomic()
new(zero(Clong))
end
end
type GitRefcount
refcount_val::Clong
owner::Ptr{Void}