Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1>Hi!</h1>
<p>
There's a new email from: <%= @name %> with email: <%= @email %>.<br>
</p>
@jogam5
jogam5 / gist:7bb7a90775f215290660
Last active January 21, 2016 19:17
Forma ComproPago
<form action="https://www.compropago.com/comprobante" method="post">
<input type="hidden" name="public_key" value="TU_API_KEY">
<input type="hidden" name="order_price" value="12.00">
<input type="hidden" name="order_name" value="Home Theater HSP">
<input type="hidden" name="order_id" value="">
<input type="hidden" name="customer_name" value="">
<input type="hidden" name="customer_email" value="">
<input type="hidden" name="customer_phone" value="">
<input type="image" src="https://www.compropago.com/assets/payment-green-btn.png" border="0" name="submit" alt="Pagar con ComproPago">
</form>
skip_before_action :verify_authenticity_token, only: [:webhook] #si usas Rails4
require 'compropago'
def webhook
event_json = JSON.parse(request.body.read)
Compropago.api_key = ENV['COMPROPAGO_PUBLIC_API_KEY']
begin
Compropago::Charge.create({ product_price: event_json["total_price"],
product_name: event_json["order_number"].to_s,
Verifying my Blockstack ID is secured with the address 1NytQ9CtN8gVxsSDVzMptoPpXdsTC9g1u9 https://explorer.blockstack.org/address/1NytQ9CtN8gVxsSDVzMptoPpXdsTC9g1u9
package main
import (
"bufio"
"fmt"
"log"
"os"
)
// readLines reads a whole file into memory
set nocompatible " be iMproved, required
filetype off " required
set bs=2
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

Keybase proof

I hereby claim:

  • I am jogam5 on github.
  • I am josegabriel (https://keybase.io/josegabriel) on keybase.
  • I have a public key ASDjYJ6ehw04GRyDSoc753xwT98mVQR2eFG_UnQSpB5OhAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jogam5 on github.
  • I am josegabriel (https://keybase.io/josegabriel) on keybase.
  • I have a public key ASBEm05Qss9Dhsk25M8dh70YZC21cmVzl0a3A42XXA-C5Ao

To claim this, I am signing this object:

@jogam5
jogam5 / Docker_GO_Options.txt
Last active July 21, 2020 19:21
Create a Dockerfile for GO
# Option 1
go mod init
go build
# Option 2
export GO111MODULE=on
go mod init
go mod download
go mod vendor
Autodials (Github examples)
https://github.com/sloan58/twilio-autodialer
https://github.com/cristeab/autodialer
Build IVR with Lex
https://cogint.ai/conversational-ivr-with-amazons-lex-and-connect/
Amazon Lex Developer Resources
https://aws.amazon.com/lex/resources/
https://github.com/awslabs/aws-lex-browser-audio-capture