profile
viewpoint
Bradley Mackey bradleymackey UK bradleymackey.com iOS and Web Full Stack | WWDC Scholar | Trying Bug Bounty Hunting | a bit of a perfectionist

bradleymackey/advent-of-code-19 1

Follow along as I solve AOC '19 as 'Swiftly' as possible ➡️

bradleymackey/AVCamSwift 1

The Swift version of Apple demo project AVCam( https://developer.apple.com/library/ios/samplecode/avcam/introduction/intro.html )

bradleymackey/c-basics 1

Overview of some C fundamentals

bradleymackey/2018 0

Student submissions for the WWDC 2018 Scholarship

bradleymackey/awesome-advent-of-code 0

A collection of awesome resources related to the yearly Advent of Code challenge.

bradleymackey/ccs-l3-coursework-2018 0

Skeleton code repository for COMP3402/COMP3411 coursework

bradleymackey/CodableFirebase 0

Use Codable with Firebase

bradleymackey/configs 0

🔨 Boring configuration files.

bradleymackey/deep_qa 0

A deep NLP library, based on Keras / tf, focused on question answering (but useful for other NLP too)

issue openedfirebase/firebase-tools

Emulator export does not export auth

<!-- DO NOT DELETE validate_template=true template_path=.github/ISSUE_TEMPLATE/bug_report.md -->

<!-- Thank you for contributing to the Firebase community!

Think you found a bug?

Yeah, we're definitely not perfect! Please use this template and include a minimal repro when opening the issue. If you know how to solve the issue, please create a Pull Request, and we'd be happy to review it!

Have a feature request?

Great, we love hearing how we can improve our products! However, do not use this template to submit a feature request. Please submit your feature requests to: https://firebase.google.com/support/contact/bugs-features/

Have a usage question?

We get lots of those and we love helping you, but GitHub is not the best place for them and they will be closed. Please take a look at the guide first: https://firebase.google.com/docs/cli/

If the official documentation doesn't help, try asking through our official support channel: https://firebase.google.com/support/

Additional locations to check for solutions or assistance from the community:

  • Stack Overflow: https://stackoverflow.com/
  • Firebase Slack Community: https://firebase.community/

Please avoid duplicate posting across multiple channels! -->

[REQUIRED] Environment info

<!-- What version of the Firebase CLI (firebase-tools) are you using? Note that your issue may already be fixed in the latest versions. The latest version can be found at https://github.com/firebase/firebase-tools/releases -->

<!-- Output of firebase --version -->

firebase-tools: 8.14.0

<!-- e.g. macOS, Windows, Ubuntu -->

Platform: macOS

[REQUIRED] Test case

<!-- Provide a minimal, complete, and verifiable example (http://stackoverflow.com/help/mcve) -->

firebase emulators:start --export-on-exit="./my-local-dump"

Add a user to the Auth emulator then exit by sending a SIGINT.

firebase emulators:start --import="./my-local-dump"

The auth user we just created is gone.

[REQUIRED] Steps to reproduce

<!-- Provide the steps needed to reproduce the issue with the above test case. -->

See above.

[REQUIRED] Expected behavior

<!-- What is the expected behavior? -->

Auth users added in the emulator is saved.

[REQUIRED] Actual behavior

<!-- Run the command with --debug flag, and include the logs below. -->

The user is lost, it is not saved in the emulator export.

created time in 3 days

startedjgm/pandoc

started time in 6 days

push eventbradleymackey/configs

Bradley Mackey

commit sha 425ea187ecf8073182338d13e3273a3ba41250a6

yats recommended

view details

push time in 7 days

push eventbradleymackey/configs

Bradley Mackey

commit sha 7dcf8726e572c8e81d054a40f5cf5ff9505c088d

use yats for vim syntax

view details

push time in 7 days

push eventbradleymackey/configs

Bradley Mackey

commit sha 2b130abc8b457eb3918dc550e49731a9ec39c50d

ctrl-n toggle NERDTree

view details

push time in 7 days

push eventbradleymackey/configs

Bradley Mackey

commit sha 763750b8791208e663646f7c3fe35c4e5661a93d

use vim dev icons

view details

push time in 7 days

startedHerringtonDarkholme/yats.vim

started time in 7 days

push eventbradleymackey/configs

Bradley Mackey

commit sha ed377f95e08695a1719aeafe1990758e9919a403

better organise, prettier command for coc-prettier

view details

push time in 8 days

push eventbradleymackey/configs

Bradley Mackey

commit sha f1e4e8d204d3d2144af3444d93c1181ed6c10631

remove legacy, ensure coc-prettier formats on save

view details

push time in 8 days

push eventbradleymackey/configs

Bradley Mackey

commit sha 1a963f9658c8e54077e4ec0d39592b99570ce7f5

disable rainbow by default

view details

push time in 9 days

push eventbradleymackey/configs

Bradley Mackey

commit sha 85fdb688349cf99d90292b095a58d0c2a01f6d9e

update rainbow colors

view details

push time in 9 days

push eventbradleymackey/turbo-boost-disable

Bradley Mackey

commit sha 9598bd2a54c298363accf772bb71d5bd7267d640

update readme more concise git branch explanation

view details

push time in 9 days

push eventbradleymackey/configs

Bradley Mackey

commit sha bceb9f4d7ee4a0346116f0311876e66029540ee6

update README

view details

push time in 9 days

push eventbradleymackey/configs

Bradley Mackey

commit sha 1d92b1b4c5757bd4bcd0e1b86886568d586b3bcf

update README

view details

push time in 9 days

push eventbradleymackey/configs

Bradley Mackey

commit sha 96af34cf11cf1c20eb78f53c808b8d34cd8a836b

add vim color entry

view details

push time in 9 days

push eventbradleymackey/configs

Bradley Mackey

commit sha 14250020034b9d7b4beef845c81f5a09a4e0551c

update README

view details

push time in 9 days

startedchriskempson/base16-vim

started time in 9 days

push eventbradleymackey/configs

Bradley Mackey

commit sha 3a49068c0fbc2bf88694c4762471520f228cfa3c

more universal color support

view details

push time in 9 days

push eventbradleymackey/configs

Bradley Mackey

commit sha 3dfd7b47a3b9eb6ccac0f6bb8db6913b8806deab

much improved color scheme

view details

push time in 9 days

push eventbradleymackey/configs

Bradley Mackey

commit sha 71f1d6281b7f98d4c119602f84609f67c4c00186

base16 for vim background

view details

push time in 10 days

push eventbradleymackey/configs

Bradley Mackey

commit sha 68905cb31e560d4725929cfbd0b0346a1b0ef0bd

remove ale, no js fold

view details

push time in 10 days

push eventbradleymackey/configs

Bradley Mackey

commit sha 0316c2952329e8c4f26d93643da88174fd5b2c26

change comment color

view details

push time in 12 days

push eventbradleymackey/configs

Bradley Mackey

commit sha 6be4c2205a5b76d6316601ab2e26aa1b01b74399

hack

view details

push time in 14 days

startedcure53/XSSChallengeWiki

started time in 18 days

startedpry0cc/cloud-ranges

started time in 18 days

starteddchakro/turbo-boost-manager

started time in 21 days

startedobheda12/GitDorker

started time in 22 days

startedkrisk/fuse-swift

started time in 24 days

startedsource-foundry/Hack

started time in a month

push eventbradleymackey/configs

Bradley Mackey

commit sha f3955c27fd80c7eee7e537fee8f00c37c84481e6

just Hack, not Nerd Font

view details

push time in a month

push eventbradleymackey/configs

Bradley Mackey

commit sha 5bc89db08dcba4a2d318a2f8cffe3024f6db9977

system font hack nerd, looks better imo

view details

push time in a month

push eventbradleymackey/configs

Bradley Mackey

commit sha f7b54e6a8296837b2e7732d5f518c05262077857

system font menlo

view details

push time in a month

startedattaswift/Deque

started time in a month

push eventbradleymackey/configs

Bradley Mackey

commit sha 8bfea51b118c816e5262fbf38a8b089bfccc7bc4

no status on the left

view details

push time in a month

push eventbradleymackey/configs

Bradley Mackey

commit sha 0754bf1d3de4f4866841f8d93f8f0c06ba0d3c52

remove fastlane binding

view details

push time in a month

push eventbradleymackey/configs

Bradley Mackey

commit sha da117bdae3d30cf2d6759734ff8355a75dc5f186

add another fastlane alias

view details

push time in a month

push eventbradleymackey/turbo-boost-disable

Bradley Mackey

commit sha 7ecc876ac49b10f2659e239efad6e64f23eb60af

[README] branch update

view details

push time in a month

delete branch bradleymackey/turbo-boost-disable

delete branch : master

delete time in a month

create barnchbradleymackey/turbo-boost-disable

branch : main

created branch time in a month

push eventbradleymackey/turbo-boost-disable

Bradley Mackey

commit sha bfd3e2ffa0e0cd6c4d9eaf2288341943be6b7d8e

[README] primary branch is now main

view details

push time in a month

delete branch bradleymackey/advent-of-code-19

delete branch : master

delete time in a month

create barnchbradleymackey/advent-of-code-19

branch : main

created branch time in a month

delete branch bradleymackey/configs

delete branch : master

delete time in a month

create barnchbradleymackey/configs

branch : main

created branch time in a month

push eventbradleymackey/configs

Bradley Mackey

commit sha cce837fb37df841864915b7f50d15a031eed99e0

rename default branch name (main), requires git 2.28

view details

push time in a month

startedwilsonfreitas/awesome-quant

started time in a month

startedkillercup/cargo-edit

started time in a month

push eventbradleymackey/advent-of-code-19

Bradley Mackey

commit sha a3f9513fc8b177cfbcc1769742fa3fb099242719

notes on performance

view details

push time in a month

startedytdl-org/youtube-dl

started time in 2 months

push eventbradleymackey/advent-of-code-19

Bradley Mackey

commit sha 50efa2faa713d741ec66b5ad72dd67466847e71f

add README info on running

view details

push time in 2 months

push eventbradleymackey/advent-of-code-19

Bradley Mackey

commit sha f73057eca35fed4e546a2068f600ef8c8094da5e

cleaner day 3 solution parsing

view details

Bradley Mackey

commit sha 3bdbd5ce770263be11829595969b92922d84d442

nextInstruction private

view details

Bradley Mackey

commit sha eeed443b25b96a89f2f4e4fd5ae3bb220d913bbd

clearer parameter parsing in Intcode

view details

Bradley Mackey

commit sha 87a448399f111b99cacdc5c462f33ce88d8f8c3a

always inline load/store in Intcode model

view details

push time in 2 months

push eventbradleymackey/advent-of-code-19

Bradley Mackey

commit sha 43a036ee576f3cd0ca904cb5ef795dd850352884

Consistent exit code on arg error

view details

push time in 2 months

push eventbradleymackey/advent-of-code-19

Bradley Mackey

commit sha b41115e7a57686546d82b40ce2519ed2a04fcdc1

Update README.md

view details

push time in 2 months

startedfxm90/GradientLoadingBar

started time in 2 months

push eventbradleymackey/awesome-advent-of-code

Bradley Mackey

commit sha c4840832fa728d68641dba1b9c334d36e2c12138

Add Swift contribution

view details

push time in 2 months

fork bradleymackey/awesome-advent-of-code

A collection of awesome resources related to the yearly Advent of Code challenge.

fork in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha f90675f62f687e844520f206195e24500dabfb38

fix bad wrapping behaviour

view details

push time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 1e9fe508dd114a07e1f03f13b69fd53f2d6ec8c6

[vim] add <CR> note

view details

push time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 59520127385fea378698c492982567c4bf0980b2

pug support

view details

push time in 2 months

startedfirebase/firebase-tools

started time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha ddf53b216515a6b663d31aa31a891038db1c60ae

easier spelling highlight

view details

push time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha fca15b74c63ddcb6bf3a7737ab9011197ae5617b

errors are now more visible, especially on strings

view details

push time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 203c5c1b5d3a1c45e84bab60bc3b9a831bfd2175

better config for crlf

view details

push time in 2 months

startedziligy/ConfettiView

started time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 778168ecc1352274c89ad0f5215edfa21b80ad97

NERDTree show hidden files

view details

push time in 2 months

startedianyh/Amethyst

started time in 2 months

issue commentfirebase/firebase-js-sdk

@firebase/testing Firestore GeoPoint is not compatible with "firebase-admin" GeoPoint.

Thanks for the info, this is unfortunate that this is the case though. It makes testing security rules with existing TypeScript data models a tad more difficult.

bradleymackey

comment created time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha cf0891cbc7a013cf5f5d3dd1518ee4b3171254d4

yank to system clipboard, commit some vim stuff

view details

push time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha b656a6361ab0907a72e3d373a90f639400a71cf4

vim cursorline

view details

push time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 418e302e50fe65e44e4b26cb30050b1a79992296

Ctrl+A for tmux, Ctrl+J to exit vim

view details

push time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha fefce56106ba0e333037916fb9c8e55d8a389873

[zsh] alias for going to parent

view details

push time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha c2dc247e43b4420c9dc49f5bbc7efa2c8279e89e

use nvim as vimdiff tool

view details

push time in 2 months

issue openedfirebase/firebase-js-sdk

@firebase/testing Firestore GeoPoint is not compatible with "firebase-admin" GeoPoint.

<!-- Step 1 [READ THIS] --> <!-- Are you in the right place?

  • For issues or feature requests related to the code in this repository file a Github issue.
    • If this is a feature request make sure the issue title starts with "FR:".
  • For general technical questions, post a question on StackOverflow with the firebase tag.
  • For general Firebase discussion, use the firebase-talk google group.
  • For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel. -->

<!-- Step 2 -->

[REQUIRED] Describe your environment

  • Operating System version: macOS 10.15.6
  • Browser version: N/A
  • Firebase SDK version: @firebase/testing v0.20.11
  • Firebase Product: firestore

<!-- Step 3 -->

[REQUIRED] Describe the problem

Two seemingly identical GeoPoint types are provided from firebase-admin (for production) and @firebase/testing (for testing). The two GeoPoints are not compatible - we can't put a firebase-admin GeoPoint in a @firebase/testing database and vice versa.

Trying to place a firebase-admin GeoPoint into a test Firestore database created with @firebase/testing results in the error:

Error [FirebaseError]: Function DocumentReference.set() called with invalid data. Unsupported field value: a custom object (found in field home in document some/location)

A bit of manual type introspection (with util.inspect) reveals that the internal structure of these GeoPoint types differs, but ideally these would be compatible. For example, consider a GeoPoint at latitude 10, longitude 10.

@firebase/testing Geopoint:

GeoPoint { _lat: 10, _long: 10 }

firebase-admin GeoPoint:

GeoPoint { _latitude: 10, _longitude: 10 }

Steps to reproduce:

<!-- What happened? How can we make the problem occur? This could be a description, log/console output, etc. -->

Create a test Firestore database with @firebase/testing.

Try to insert a GeoPoint created from firebase-admin into the test database. The operation fails with the error message provided above.

Relevant Code:

<!-- Reproduce the issue on StackBlitz and provide your forked URL or give us some sample code below -->

    import * as firebase from "@firebase/testing";
    import { firestore as firebaseAdminFirestore } from "firebase-admin";

    const makeDocReferencesIfNeeded = (data: any) => {
    for (const docPath in data) {
        const doc = data[docPath];
        for (const key in doc) {
            const value = doc[key];
            if (typeof value === "string" && value.startsWith("path:/")) {
                doc[key] = current.admin.doc(value.substr(5));
            }
        }
     }
   };

    it("can set a 'firebase-admin' geopoint in the database", async () => {
            const admin = firebase.initializeAdminApp({
                projectId: "some-project-id",
            });
            const db = admin.firestore();

            const geopoint = new firebaseAdminFirestore.GeoPoint(10, 10);
            const util = require("util");
            console.log(util.inspect(geopoint));

            const database = {};
            database["some/location"] = { 
                home: geopoint,
            };
            makeDocReferencesIfNeeded(database);
            try {
                for (const key in database) {
                    // all we need is to set data without error
                    const ref = admin.doc(key);
                    await ref.set(data[key]);
                }
                assert.ok(true);
            } catch (error) {
                console.error(error);
                assert.fail();
            }
        });

created time in 2 months

push eventbradleymackey/vim-firestore

Bradley Mackey

commit sha c96a8018f9ce7b64c3046402eb804a3b775f5e49

Attempt fix regex

view details

push time in 2 months

push eventbradleymackey/vim-firestore

Bradley Mackey

commit sha 177c749d86ac20552d46a5767778233539ffa0a3

Fix service regex

view details

push time in 2 months

push eventbradleymackey/vim-firestore

Bradley Mackey

commit sha 64711bed1b1b4d6dec6ec492f6be614e45f0b3df

Generic service support Rules services are not exclusive to `cloud.firestore`, e.g. `firebase.storage` is used for storage rules (possibly more in the future). Includes support for one or more path components e.g. `cloud.vision.power.database`.

view details

push time in 2 months

fork bradleymackey/vim-firestore

A syntax / code completion plugin for Firestore Security Rules.

fork in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 791bad1a37e88683dc03372697e9f7f539fcdf85

improved colors

view details

push time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 4a4cc3e242340d6cee85caf72cd9728da1d6119f

color changes and improvements

view details

push time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha e46a4b65099875972f77419e61a77da888462f5c

more tmux history

view details

push time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha a0fc2fdf4eec955b8b6657636eecdf695a6df10b

more tmux history

view details

push time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 6dc45abd9ba0cd92ba70b5c8f074978ea8ad7a66

better ts highlighting

view details

push time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha e7bfd3c259b67cd1ec04dd7fd167fdf3f494d3ee

vim-firestore natively supports all rules files now!

view details

push time in 2 months

issue commentdelphinus/vim-firestore

Support 'let' binding syntax.

Thanks for the great repo!

bradleymackey

comment created time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha f276ace7e8c88e489fd456d5cf557b4f01de89d1

80 textwidth

view details

push time in 2 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 314370dd4b592ce0b0f3e797da999ff287bba2f4

do not autocomplete square brackets

view details

push time in 3 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 078985b26c64be589081ab245d0b70879c7872b2

do not autocomplete square brackets

view details

push time in 3 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 3247a1ebbd27f575c023139d464105841c7a9f9e

fzf only git files

view details

push time in 3 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 8493a8719835ea03b51946a4742d0b98aec2905c

fzf only git files

view details

push time in 3 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 38047a60457978eaa263a5bc35f01ff30c7a4fdd

zsh vim mode

view details

push time in 3 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 0509370de865b690f9b3f5ff21eab59a01165989

move tmux hostname to right

view details

push time in 3 months

push eventbradleymackey/configs

Bradley Mackey

commit sha eca8b2726a46414db93c096a70f8219c066f0e47

further update tmux status

view details

push time in 3 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 0d79746a766879f37e3f730873bade0964f657e7

update tmux config

view details

push time in 3 months

create barnchbradleymackey/vim-firestore

branch : support-let

created branch time in 3 months

PR opened delphinus/vim-firestore

Support *.rules

In addition to firestore.rules, this syntax also applies to storage.rules and will possibly support others in the future.

+1 -1

0 comment

1 changed file

pr created time in 3 months

push eventbradleymackey/vim-firestore

Bradley Mackey

commit sha 6ec639d262b04cb18fab309a021cce4bedd00642

Support *.rules In addition to `firestore.rules`, this syntax also applies to `storage.rules` and will possibly support others in the future.

view details

push time in 3 months

fork bradleymackey/vim-firestore

A syntax / code completion plugin for Firestore Security Rules.

fork in 3 months

push eventbradleymackey/configs

Bradley Mackey

commit sha 71edfcd729eab3e7afb71fa4a805a826958a2ae0

better leader mappings

view details

push time in 3 months

issue openeddelphinus/vim-firestore

Support 'let' binding syntax.

*.rules files now allow for local variable declarations via let bindings in functions. This is currently recognised as a syntax error.

created time in 3 months

startedrethinkdb/rethinkdb-rs

started time in 3 months

more