This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # define true and false values as function application. f(a,b): a is true, f(a,b): b is false | |
| true = lambda a: lambda b: a | |
| false = lambda a: lambda b: b | |
| # define a number `n` as a function `f` applied n times. 0 == f is called no times | |
| _0 = lambda f: lambda x: x | |
| # given a number we can get the next one or previous one with function application | |
| succ = lambda n: lambda f: lambda x: f(n(f)(x)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| c=lambda a: lambda b: a | |
| d=lambda n: lambda f: lambda x: f(n(f)(x)) | |
| e=lambda n: lambda f: lambda x: n(lambda a: lambda b: b(a(f)))(lambda y: x)(lambda y: y) | |
| g=lambda a,b: lambda f: lambda x: a(f)(b(f)(x)) | |
| h=lambda a,b: lambda f: lambda x: a(b(f))(x) | |
| i=lambda a,b: b(e)(a) | |
| j=lambda n: n(lambda x: lambda a: lambda b: b)(c) | |
| k=d(lambda f: lambda x: x) | |
| l=d(k) | |
| m=d(l) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import binascii | |
| import json | |
| import sys | |
| # This is a temporary fix for this github issue: https://github.com/home-assistant/core/issues/127601 | |
| # Instructions: | |
| # 1. MAKE A BACKUP OF YOUR HOMEASSISTANT. This changes system files. | |
| # 2. Share your credentials using the ios app. You should make the apple thread credentials your preferred network. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://${ip}/httpapi.asp?command=%@ | |
| https://${ip}/httpapi.asp?command=%@ | |
| https://${ip}/httpapi.asp?command=%@:%@ | |
| https://${ip}/httpapi.asp?command=%@:%d | |
| https://${ip}/httpapi.asp?command=%@setTimezoneEx:%@:%d:%@ | |
| https://${ip}/httpapi.asp?command=Cast:DisableUsageReport | |
| https://${ip}/httpapi.asp?command=Cast:EnableCast | |
| https://${ip}/httpapi.asp?command=Cast:EnableUsageReport | |
| https://${ip}/httpapi.asp?command=EQChangeFX:http://moddevices.com/plugins/caps/Eq10HP | |
| https://${ip}/httpapi.asp?command=EQChangeFX:http://moddevices.com/plugins/caps/Eq4p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Put this into .git/hooks/prepare-commit-msg and mark it as executable | |
| # This hook will prepend JIRA ticket numbers to your commit messages. It works with -m and with the plain `git commit`. | |
| # This expects your branches to be in one of these formats: | |
| # 1. `(feature|bug|fix)/JIRA-XXX-some-description` | |
| # 2. `(feature|bug|fix)/JIRA-XXX` | |
| # 3. `JIRA-XXX-some-description` | |
| # 4. `JIRA-XXX` |