Skip to content

Instantly share code, notes, and snippets.

German Viscuso germanviscuso

Block or report user

Report or block germanviscuso

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
@germanviscuso
germanviscuso / README.md
Created May 13, 2019
Use VS Code as diff tool, git diff tool and git editor
View README.md

code --diff file1.cs file2.cs

git config --global diff.tool vscode git config --global difftool.vscode.cmd "code --wait --diff $LOCAL $REMOTE"

git config --global core.editor "code --wait"

@germanviscuso
germanviscuso / es-ES.json
Created Apr 3, 2019
Alexa Skills Basic: Intent Chaining
View es-ES.json
{
"interactionModel": {
"languageModel": {
"invocationName": "feliz cumple",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
@germanviscuso
germanviscuso / README.md
Last active Apr 30, 2019
DynamoDB connection from an Alexa skill
View README.md

Alexa Skill Persistence with DynamoDB

This document covers how to use Dynamo DB persistence in your Alexa skill using a direct connection the AWS SDK rather than using the ASK SDK persistence adapter (you can see how to use the adapter here).

Setup w/ ASK CLI

About

This readme assumes you have your developer environment ready to go and that you have some familiarity with CLI (Command Line Interface) Tools, AWS, and the ASK Developer Portal.

@germanviscuso
germanviscuso / es-ES.json
Last active Mar 16, 2019
Technovation Workshop (Fact es-ES)
View es-ES.json
{
"interactionModel": {
"languageModel": {
"invocationName": "curiosidades del universo",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
@germanviscuso
germanviscuso / audioconv.sh
Last active Feb 3, 2019
Audio file conversion for Alexa skills
View audioconv.sh
# Convert audio to SSML compatible mp3
ffmpeg -i <input-file> -ac 2 -codec:a libmp3lame -b:a 48k -ar 16000 <output-file.mp3>
# Normalize audio
ffmpeg -i <input-file.mp3> -af loudnorm=I=-14:TP=-3:LRA=11:print_format=json -b:a 48k -ar 16000 <output-file.mp3>
# Do both at the same time
ffmpeg -i <input-file.mp3> -ac 2 -codec:a libmp3lame -af loudnorm=I=-16:TP=-3:LRA=11:print_format=json -b:a 48k -ar 16000 <output-file.mp3>
View Detect display and APL support
function supportsDisplay(handlerInput) {
// returns true if the skill is running on a device with a display (Echo Show, Echo Spot, etc.)
// Enable your skill for display as shown here: https://alexa.design/enabledisplay
return handlerInput.requestEnvelope.context &&
handlerInput.requestEnvelope.context.System &&
handlerInput.requestEnvelope.context.System.device &&
handlerInput.requestEnvelope.context.System.device.supportedInterfaces &&
handlerInput.requestEnvelope.context.System.device.supportedInterfaces.Display &&
handlerInput.requestEnvelope.context.System.device.supportedInterfaces.hasOwnProperty('Alexa.Presentation.APL');
}
@germanviscuso
germanviscuso / en-US.json
Created Jan 2, 2019
Alexa Skill Basics: Reminders API using the Request library
View en-US.json
{
"interactionModel": {
"languageModel": {
"invocationName": "demo of reminders",
"types": [
],
"intents": [
{
"name": "AMAZON.CancelIntent",
@germanviscuso
germanviscuso / en-US.json
Last active Feb 20, 2019
Alexa Skill Basics: Global Persistence with the DynamoDB persistence adapter or the S3 Persistence adapter
View en-US.json
{
"interactionModel": {
"languageModel": {
"invocationName": "global persistence demo",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
@germanviscuso
germanviscuso / README.MD
Created Dec 31, 2018
Enable type checking on Visual Studio Code
View README.MD
@germanviscuso
germanviscuso / script.sh
Created Dec 30, 2018
Manage multiple versions of Python (Mac OSX)
View script.sh
brew install pyenv
cd
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
pyenv install -l | grep -ow [0-9].[0-9].[0-9]
pyenv install 3.7.1
pyenv versions
pyenv local 3.7.1
pyenv global 3.7.1
python -V
You can’t perform that action at this time.