Skip to content

Instantly share code, notes, and snippets.

View thejeff77's full-sized avatar

thejeff77

  • Mission Lane
  • United States
View GitHub Profile
@adam-ra
adam-ra / alexa_conversation_sample_utterances.txt
Last active March 1, 2019 14:23
Example contents of sample utterances for a conversational skill based on WhateverIntent
WhateverIntent {headache|Text}
WhateverIntent {I feel pain in my lower back|Text}
@adam-ra
adam-ra / alexa_conversation_intent_schema.json
Last active February 28, 2019 21:51
Alexa intent schema to force one catch-it-all intent
{
"intents": [
{
"slots": [
{
"name": "Text",
"type": "AMAZON.LITERAL"
}
],
"intent": "WhateverIntent"

Note

Apple will reject apps that are using private url schemes (Ugh, Apple....) if they are pretty much obvius. Some apps are rejected and others are not, so, be aware of this issue before implementing any of those URL's in your app as a feature.

Updates

  • [UPDATE 4] iOS 10 update: apparently settings now can be reached using App-Pref instead of prefs
  • [UPDATE 3] For now you just can use url schemes to open your apps's settings with Swift 3.0 (Xcode 8). I'll keep you informed when OS preferences can be reached
  • [UPDATE 2] The openURL() method of UIApplication is now deprecated. You should use application(_:open:options:) instead
  • [UPDATE 1] Not yet tested in iOS 10. It will fail because of policies changes in URL scheme handling.
@mikepfeiffer
mikepfeiffer / gist:3851e3bd95591e0675aa4c76cd57635f
Created May 16, 2016 17:42
AWS Lambda Function to Start an EC2 Instance
var AWS = require('aws-sdk');
exports.handler = function(event, context) {
var ec2 = new AWS.EC2({region: 'us-east-1'});
ec2.startInstances({InstanceIds : ['i-0114833f8ffc9151c'] },function (err, data) {
if (err) console.log(err, err.stack);
else console.log(data);
context.done(err,data);
});
};
@steipete
steipete / openssl-build.h
Last active May 30, 2023 11:34
Updated script that builds OpenSSL with Bitcode enabled (tested with Xcode 7.0b3)
#!/bin/bash
# This script downlaods and builds the iOS and Mac openSSL libraries with Bitcode enabled
# Credits:
# https://github.com/st3fan/ios-openssl
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh
# Peter Steinberger, PSPDFKit GmbH, @steipete.
set -e
@nathanpalmer
nathanpalmer / fish_prompt.fish
Last active June 24, 2018 18:49
Mercurial & Git prompt using the Fish shell
## Requires
## hg prompt : http://stevelosh.com/projects/hg-prompt/
## fish : http://fishshell.com/
## mercurial : http://mercurial.selenic.com/
## git : http://git-scm.com/
set -g __fish_hg_prompt_color "cyan"
set -g __fish_hg_prompt_color_status "cyan"
# check only on startup if the "hg prompt" extension is installed