Skip to content

Instantly share code, notes, and snippets.

View jwaldrip's full-sized avatar
:octocat:

Jason Waldrip jwaldrip

:octocat:
View GitHub Profile
@jwaldrip
jwaldrip / hvac_pause.yaml
Last active April 29, 2022 16:12 — forked from raffy-ops/hvac_pause.yaml
HA HVAC Pause Blueprint
# ver 1.2
blueprint:
name: HVAC Pause
description: Pauses HVAC when windows/doors open; resumes last state once closed
domain: automation
input:
climate_device:
description: Climate entity used for climate control.
import React, { ComponentType, ComponentProps } from "react";
import { useFormField, FormFieldOptions, FormFieldArgs } from "./form-field";
import {
useFormToggle,
FormToggleArgs,
FormToggleOptions
} from "./form-toggle";
import { useFormSubmit, FormSubmitArgs } from "./form-submit";
import { useFormValue, FormValueOptions, FormValueArgs } from "./form-value";
@jwaldrip
jwaldrip / cloudSettings
Last active June 23, 2020 23:05
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-06-23T23:05:04.150Z","extensionVersion":"v3.4.3"}
$ yarn start
yarn run v1.13.0
$ yarn build
$ mkdir -p dist && ncp ../common/assets ./dist/assets
$ cross-env NODE_ENV=production webpack --progress
Hash: 5b4024d273a9f6f3ef47
Version: webpack 4.28.4
Time: 4630ms
Built at: 01/14/2019 2:26:25 PM
Asset Size Chunks Chunk Names

Keybase proof

I hereby claim:

  • I am jwaldrip on github.
  • I am jwaldrip (https://keybase.io/jwaldrip) on keybase.
  • I have a public key ASB6W8NFe3_tMW7Kg7tbtXoqJOj37Bi99nMDHYD9SwpK_wo

To claim this, I am signing this object:

@jwaldrip
jwaldrip / login.test.js
Last active July 6, 2018 04:08
POC for PageOx
import LoginScreen from "./login-screen-object";
import BasicInfoScreen from "./basic-info-screen-object";
const loginScreen = new LoginScreen();
const basicInfoScreen = new BasicInfoScreen();
describe("login screen", () => {
it("should be be deeplinkable", async () => {
await loginScreen.open();
await expect(loginScreen.element).toBeVisible();
// @flow
async function fetchLanguage(lang: string, fields: Array<string>) {
await response = fetch({
method: "POST",
headers: {
"content-type": "application/json"
},
body: JSON.stringify({
query: `
query FetchLanguage($lang: String!) {
api_1 | Request: POST /graphql
api_1 | ** (exit) an exception was raised:
api_1 | ** (Ecto.ConstraintError) constraint error when attempting to insert struct:
api_1 |
api_1 | * unique: user_emails_address_index
api_1 |
api_1 | If you would like to convert this constraint into an error, please
api_1 | call unique_constraint/3 in your changeset and define the proper
api_1 | constraint name. The changeset has not defined any constraint.
api_1 |
Verifying my Blockstack ID is secured with the address 1NcAh1UNm3mem7uH6wLg35AEyYTn2PJiTB https://explorer.blockstack.org/address/1NcAh1UNm3mem7uH6wLg35AEyYTn2PJiTB
@jwaldrip
jwaldrip / linkless_middleware.cr
Created February 17, 2018 18:08
A Linkless Middleware Example
require "http"
module Middleware
struct Chain
alias Link = Middleware | HTTP::Handler | HTTP::Handler::Proc
@links: Array(Link) = [] of Link
def initialize(links)
links.each do |link|