openpgp4fpr:BB87E90E3A03BA98FD1E7C43BF20545FD5122D5D
This file contains 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
homeassistant: | |
customize: !include customize.yaml | |
auth_providers: | |
# Don't require login on local network | |
- type: trusted_networks | |
trusted_networks: | |
- 192.168.1.0/24 | |
- 2001:xxxx:xxxx::/64 | |
- fe80::/10 | |
allow_bypass_login: true |
This file contains 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
const sectorOptions = [ | |
'academia', | |
'media', | |
'business', | |
'public-service', | |
'international', | |
'non-profit', | |
]; | |
const expertiseOptions = [ |
This file contains 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
Verifying that +floppy76 is my blockchain ID. https://onename.com/floppy76 |
This file contains 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
@output = [] | |
companyreader.each_with_index do |row, row_index| | |
# Check the line has a postcode | |
next if row['RegAddress.PostCode'].blank? | |
postcode = Postcode(row['RegAddress.PostCode'],db) | |
next unless postcode.current? | |
lines = [row['RegAddress.AddressLine1'], row['RegAddress.AddressLine2'], row['RegAddress.PostTown'], row['RegAddress.County']] | |
I hereby claim:
- I am floppy on github.
- I am floppy (https://keybase.io/floppy) on keybase.
- I have a public key whose fingerprint is FD95 A574 673E CCB9 4A26 7169 DAB8 61E4 501F 794C
To claim this, I am signing this object:
This file contains 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
1234 | [email protected] | ||
---|---|---|---|
Alice | 5 | [email protected] |
I'm trying to write a CSV-compatible diff for git, using word-diff, so that I can see things like added columns easily.
In .gitattribues I've added:
*.csv diff=csv
And in .git/config I've added:
[diff "csv"]
This file contains 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
ESC="\033" # This is the escape sequence | |
NO_COLOR="$ESC[0m" | |
IRED="$ESC[1;31m" # ANSI color code for intense/bold red | |
IGRN="$ESC[1;32m" # ANSI color code for intense/bold green | |
# From http://railstips.org/blog/archives/2009/02/02/bedazzle-your-bash-prompt-with-git-info/ | |
# I had to change 'git-symbolic-ref' to 'git symbolic-ref' | |
function parse_git_branch { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo " ["${ref#refs/heads/}"]" # I wanted my branch wrapped in [], use () or <> or whatever |
This file contains 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 ruby | |
# ArrayExt shows how to extend Array to support activerecord-style | |
# filter chaining. | |
class ArrayExt | |
# When we create the ArrayExt, we store the actual array | |
# we want to operate on internally | |
def initialize(finder) |
NewerOlder