Skip to content

Instantly share code, notes, and snippets.

View extrawurst's full-sized avatar
💭
→☕️→👨‍💻→♥️

extrawurst

💭
→☕️→👨‍💻→♥️
View GitHub Profile
module alexa-prost
require (
github.com/aws/aws-lambda-go v1.8.0
github.com/aws/aws-sdk-go v1.15.90
github.com/ericdaugherty/alexa-skills-kit-golang v0.0.0-20181003210505-70580a479839
)
test:
image: golang:1.11
script:
- go test
test:
image: golang:1.11
cache:
paths:
- .cache
script:
- mkdir -p .cache
- export GOPATH="$CI_PROJECT_DIR/.cache"
- make test
@extrawurst
extrawurst / main.go
Last active December 15, 2018 11:43
func (h *HelloWorld) OnLaunch(ctx context.Context, request *alexa.Request,
session *alexa.Session, ctxPtr *alexa.Context,
response *alexa.Response) error {
response.SetOutputText("Welcome to the Alexa Skills Kit, you can say hello")
return nil
}
sess, err := awssession.NewSession(...)
if err != nil {
log.Fatalf("session error: %s\n", err)
return nil
}
@extrawurst
extrawurst / cloudSettings
Last active January 9, 2019 00:21
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-01-09T00:21:15.823Z","extensionVersion":"v3.2.4"}
@extrawurst
extrawurst / gist:82f9f3aa3db7e499eae7f25f6e594803
Created February 10, 2019 13:15
BuildReportTool error in batchmode
ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex
at System.String.Substring (System.Int32 startIndex, System.Int32 length) [0x00013] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
at BuildReportTool.Util.GetApproxSizeFromString (System.String size) [0x00021] in /Users/stephan/code/stack4/client/unity/stack4next/Assets/BuildReport/Scripts/Editor/Utility/BRT_Util.cs:491
at BuildReportTool.ReportGenerator.ParseSizePartsFromString (System.String editorLogPath) [0x0019a] in /Users/stephan/code/stack4/client/unity/stack4next/Assets/BuildReport/Scripts/Editor/ReportGeneration/BRT_ReportGenerator.cs:559
at BuildReportTool.ReportGenerator.GetValues (BuildReportTool.BuildInfo buildInfo, System.String buildFilePath, System.String projectAssetsPath, System.String editorAppContentsPath, System.Boolean calculateBuildSize) [0x00106] in /Users/stephan/code/stack4/client/unity/stack4next/Assets/BuildReport/Scripts/Editor/ReportGeneration/BRT_ReportGenerator.cs:1882
at BuildRe
@extrawurst
extrawurst / RunTestsBeforeBuild.cs
Created October 30, 2019 09:43
Unity TestRunnerApi to run UnitTests before each build
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
using UnityEngine;
using UnityEditor.TestTools.TestRunner.Api;
public class ResultCollector : ICallbacks
{
public ITestResultAdaptor Result { get; private set; }
public void RunFinished(ITestResultAdaptor result)
~/code/crossterm/examples/interactive-demo   tty_use  RUST_BACKTRACE=1 cargo run >> out.log  ✔  7081  18:26:02
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
Running `target/debug/interactive-demo`
thread 'main' panicked at 'Event source can not be initialized: IoError(Os { code: 22, kind: InvalidInput, message: "Invalid argument" })', /Users/stephan/code/crossterm/src/event/read.rs:30:17
stack backtrace:
0: backtrace::backtrace::libunwind::trace
at /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
1: backtrace::backtrace::trace_unsynchronized
at /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/b
@extrawurst
extrawurst / cd-1.yml
Last active April 14, 2020 11:39
GitHub actions workflow to automate hombrew app deployment
name: CD
on:
push:
tags:
- '*'
jobs:
release-osx:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2