Skip to content

Instantly share code, notes, and snippets.

View EdgarOrtegaRamirez's full-sized avatar
📝
​Learning!

Edgar Ortega EdgarOrtegaRamirez

📝
​Learning!
  • Barranquilla, Colombia
  • 20:23 (UTC -05:00)
View GitHub Profile
@EdgarOrtegaRamirez
EdgarOrtegaRamirez / Dockerfile
Created March 11, 2020 14:48
Docker Image – Ruby 2.6.2 / Alpine Linux 3.9
FROM ruby:2.6.2-alpine3.9
LABEL Version 2.6.2
LABEL Name Ruby-Node-Browsers
RUN gem install bundler -v 1.17.3 \
&& gem cleanup all
RUN apk add --no-cache --update \
bash \
build-base \
"""
This sample demonstrates an implementation of the Lex Code Hook Interface
in order to serve a sample bot which manages orders for flowers.
Bot, Intent, and Slot models which are compatible with this sample can be found in the Lex Console
as part of the 'OrderFlowers' template.
For instructions on how to set up and test this bot, as well as additional samples,
visit the Lex Getting Started documentation http://docs.aws.amazon.com/lex/latest/dg/getting-started.html.
"""
import math
@EdgarOrtegaRamirez
EdgarOrtegaRamirez / gist:159716f83dc74c14813e20787228c1ca
Created August 31, 2020 20:49
Install lib v8 v3 therubyracer
Works in macOS Catalina v10.15.x
$ brew install [email protected]
$ bundle config build.libv8 --with-system-v8
$ bundle config build.therubyracer --with-v8-dir=$(brew --prefix [email protected])
$ bundle install
@EdgarOrtegaRamirez
EdgarOrtegaRamirez / payload.json
Created May 10, 2022 18:52
Github Actions Context Payload for Push Event
{
"payload":{
"after":"65aeff1fc085e1e369533de9f59b2754c5bb20b1",
"base_ref":null,
"before":"77a9bae00f0d6996e0883ce6d23f2778c6a2ee25",
"commits":[
{
"author":{
"email":"[email protected]",
"name":"First Last",
@EdgarOrtegaRamirez
EdgarOrtegaRamirez / google-api-deno.ts
Created September 29, 2022 14:00
Google API Deno Example
import { Content as ShoppingAPI, auth } from "https://googleapis.deno.dev/v1/content:v2.1.ts";
const merchantId = BigInt(124123123);
const serviceAccountConfig = await Deno.readTextFile("./service-account.json");
const credentials = auth.fromJSON(JSON.parse(serviceAccountConfig));
const shoppingAPI = new ShoppingAPI(credentials);
const response = await shoppingAPI.productsList(merchantId, {})
console.log(response);