Skip to content

Instantly share code, notes, and snippets.

View acolin's full-sized avatar

Arnoldo Rodriguez Colin acolin

View GitHub Profile
" ---------------------------------------------------------------------------
" General
"---------------------------------------------------------------------------
set history=1000 " lots of command line history
set cf " error files / jumping
set ffs=unix,dos,mac " support these files
set isk+=_,$,@,%,#,- " none word dividers
set viminfo='1000,f1,:100,@100,/20
set modeline " make sure modeline support is enabled
set autoread " reload files (no local changes only)
// in the Gemfile
gem 'handlebars_assets'
// in hb_helpers.js.coffee
Handlebars.registerHelper 'humanize', (str) ->
str.replace(/_/g, ' ')
// application.js
//= require jquery
//= require jquery_ujs

Skydrop API - Guía básica de integración

Lista de envíos disponibles

###Tipos de vehículos:

Código Descripción
scooter Cualquier tipo de motocicleta
car Autos tipo sedan
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://54.191.139.107/api/v2/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
<?php
$request = new HttpRequest();
$request->setUrl('http://54.191.139.107/api/v2/orders');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders(array(
'postman-token' => '39854a92-b45c-429d-d68b-17cf1c522be1',
'cache-control' => 'no-cache',
'authorization' => 'abcdefghijk',
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://54.191.139.107/api/v2/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
<?php
$request = new HttpRequest();
$request->setUrl('http://54.191.139.107/api/v2/orders');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'postman-token' => '72790ff2-fc6e-6077-60d6-547bd112996d',
'cache-control' => 'no-cache',
'content-type' => 'application/json'
<?php
$request = new HttpRequest();
$request->setUrl('http://54.191.139.107/api/v2/shipping_rates');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'postman-token' => '1bbbe833-ee3b-4075-a024-ebe4f8bae2de',
'cache-control' => 'no-cache',
'content-type' => 'application/json'
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://54.191.139.107/api/v2/shipping_rates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
@acolin
acolin / .bash_profile
Created June 10, 2015 20:17
additional bash autocomplete and colors OS X
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac