Skip to content

Instantly share code, notes, and snippets.

View jimmyjames's full-sized avatar

Jim Anderson jimmyjames

View GitHub Profile
info:
title: Device API
description: Device API.
version: v20170916.0.1.385-SNAPSHOT-PREVIEW
schemes:
- https
basePath: /
produces:
- application/json
securityDefinitions:
openapi: 3.0.0
servers:
- url: //petstore.swagger.io/v2
description: Default server
- url: //petstore.swagger.io/sandbox
description: Sandbox server
info:
description: >
This is a sample server Petstore server.

Keybase proof

I hereby claim:

  • I am jimmyjames on github.
  • I am jimmyjames (https://keybase.io/jimmyjames) on keybase.
  • I have a public key whose fingerprint is E279 BCA9 14E0 1CC5 7D69 C190 1C95 51D2 41DC F0D0

To claim this, I am signing this object:

/**
* Async HTTP Examples
*
* Copyright 2016 SmartThings
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
/**
* mode input tests
*
* Copyright 2016 james anderson
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
definition(
name: "My First SmartApp",
namespace: "mygithubusername",
author: "Peter Gregory",
description: "This is my first SmartApp. Woot!",
category: "My Apps",
iconUrl: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png",
iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png",
iconX3Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png")
@jimmyjames
jimmyjames / execute-in-time-range.groovy
Created March 29, 2016 01:20
Example SmartApp that shows how to restrict execution to only happen between a user-specified time range
definition(
name: "execute-in-time-window",
namespace: "smartthings",
author: "SmartThings",
description: "Example for executing a SmartApp only within a specified time window",
category: "",
iconUrl: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png",
iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png",
iconX3Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png")
/**
* Collections Fun
*
* Copyright 2016 james anderson
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@jimmyjames
jimmyjames / variable-inputs.groovy
Last active December 29, 2015 17:42
testing dynamic inputs
/**
* dynamic pages
*
* Copyright 2015 james anderson
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
/**
* runin test
*
* Copyright 2015 james anderson
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*