profile
viewpoint
Colin Eberhardt ColinEberhardt Scott Logic Newcastle, UK http://www.scottlogic.com Hi - I'm Colin.

ColinEberhardt/applause-button 368

A zero-configuration medium-style button for adding applause / claps / kudos to web pages and blog posts

ColinEberhardt/angular2-todo 94

A todo list implemented using Angular 2

ColinEberhardt/assemblyscript-regex 68

A regex engine for AssemblyScript

ColinEberhardt/awesome-public-streaming-datasets 67

A list of free datasets that provide streaming data

ColinEberhardt/angular2-tour-of-heroes 59

Angular 2 - Tour of Heroes - Forked to add a gulp build

ColinEberhardt/atari2600-wasm 46

An Atari 2600 emulator written in AssemblyScript compiled to WebAssembly

ColinEberhardt/angular2-goldilocks-seed 40

A seed project for Angular 2.0 / TypeScript development

ColinEberhardt/applause-button-server 32

The server-side component for the applause button

ColinEberhardt/assemblyscript-temporal 18

An implementation of TC39 temporal for AssemblyScript

ColinEberhardt/Avalon 17

A prototype binding framework for iOS - to support the MVVM pattern

push eventColinEberhardt/running-report-card

Colin Eberhardt

commit sha 8e7681f3dba536bf51b29b34ae727f442cf00660

feat: moved to GPT3 powered narrative generation

view details

Colin Eberhardt

commit sha ca14a04b166012b33dd5ac8f0e764c7bf6685705

feat: minor reporting tweaks

view details

push time in 4 hours

push eventColinEberhardt/wasmweekly

Colin Eberhardt

commit sha 7dbde6ed6b8f12b9a21b8f12e7a1b897d36ba9fb

160

view details

push time in 11 days

push eventColinEberhardt/wasmweekly

Colin Eberhardt

commit sha cee61b7e64eaa78c5d8f2f1de29f36ed4d32b8fd

160

view details

push time in 11 days

create barnchScottLogic/kdb-boothroyd

branch : feature/unsaved-changes-prompt

created branch time in 19 days

push eventColinEberhardt/running-report-card

Colin Eberhardt

commit sha b71af8716f14807dadbe1f547a2773161d231975

fix: filter out empty lat/long coordinates

view details

push time in 19 days

PullRequestReviewEvent

Pull request review commentScottLogic/kdb-boothroyd

Feature/query history

+import {+  DetailsList,+  IColumn,+  IconButton,+  Panel,+  SelectionMode,+  Stack,+} from "@fluentui/react";+import React, { FC, ReactNode } from "react";++interface QueryHistoryProps {+  history: string[];+  show: boolean;+  onDismiss: () => void;+}++const QueryHistory: FC<QueryHistoryProps> = ({+  history = [],+  show = false,+  onDismiss,+}: QueryHistoryProps) => {+  const items = history.map((q) => {+    return {+      query: q.substr(0, 100),+      actions: ["copy"],+    };+  });++  const columns = [+    {+      key: "query",+      name: "Query",+      fieldName: "query",+      minWidth: 100,+      maxWidth: 200,+      isResizable: false,+    },+    {+      key: "actions",+      name: "",+      fieldName: "actions",+      minWidth: 10,+      maxWidth: 100,+      isResizable: false,+    },+  ];++  const copyQuery = (query: string) => {+    navigator.clipboard.writeText(query);+    onDismiss();+  };++  const historyActions = {+    copy: (index: number) => (+      <IconButton+        iconProps={{ iconName: "copy" }}+        key="copy"+        onClick={() => copyQuery(history[index])}+      />+    ),+  };++  const renderHistoryEntry = (+    item?: any,+    index?: number,+    column?: IColumn+  ): ReactNode => {+    if (!column || !item) return <></>;++    return (+      <>+        {column.key === "query" ? (+          <>+            <Stack verticalAlign="center" style={{ height: "100%" }}>+              {item.query}

How about using a Text component so that an ellipsis is displayed on overflow?

https://developer.microsoft.com/en-us/fluentui#/controls/web/text

OiNutter

comment created time in 19 days

PullRequestReviewEvent

startedNjerschow/openai-api

started time in 21 days

PR opened Njerschow/openai-api

feat: allow the specification of a model for fine tuned completion

When using a fine-tuned model, you specify a model rather than an engine - see:

https://beta.openai.com/docs/guides/fine-tuning/use-a-fine-tuned-model

This adds support for a model parameter, e.g.

  const gptResponse = await openai.complete({
    model: "curie:MODEL-ID",
    prompt
  });
+8 -4

0 comment

3 changed files

pr created time in 21 days

push eventColinEberhardt/openai-api

Colin Eberhardt

commit sha 1ceb29c708c37e7caf52483f67911cc7f2ae3709

feat: allow the specification of a model for fine tuned completion

view details

push time in 21 days

fork ColinEberhardt/openai-api

A tiny client module for the openAI API

fork in 21 days

issue commentColinEberhardt/applause-button

Applause Button WordPress Plugin

Very nice - thanks @bhadaway :-)

bhadaway

comment created time in 24 days

issue commentColinEberhardt/applause-button

Applause Button WordPress Plugin

That's awesome - thanks @bhadaway

bhadaway

comment created time in a month

push eventColinEberhardt/wasmweekly

Colin Eberhardt

commit sha 3620c542ac27689cc5b27ff10e1b0b7b7c6ab07d

159

view details

push time in a month

issue commentScottLogic/kdb-boothroyd

Add a view that shows the query history

That's a tricky one. My thoughts are ...

  1. Click on an entry and it replaces the existing editor contents - this is a bit 'yuck' and unexpected for the user
  2. Click on an entry and it runs the query without replacing the editor contents - not a bad idea, but how to then edit the query again?
  3. Click on an entry and it runs the query and replaces the editor contents - same issue as (1)
  4. Click on an entry and it just copies it to the clipboard - I kind of like this one, perhaps have a small toast notification that says "copied to clipboard"
  5. An entry has option buttons for copy, replace and run - I like this one too, but could be a little cluttered.

I'm erring towards (4) for the simplicity, it gives the user the option to do whatever they want (and easily too), without having to write too much code :-)

ColinEberhardt

comment created time in a month

issue commentScottLogic/kdb-boothroyd

Add a license

My bad - should have added one sooner. Added an Apache 2.0 license

gyorokpeter

comment created time in a month

push eventScottLogic/kdb-boothroyd

Colin Eberhardt

commit sha 325add8f48515d64543e7b4cfb21706dda044662

chore: update package lockfile

view details

Colin Eberhardt

commit sha 96bd97ca98dbb7da1e763895f0e0a437fb8ae453

chore: add Apache 2.0 licence

view details

push time in a month

PR merged ScottLogic/kdb-boothroyd

Add an Apache 2.0 License

fixes #94

+371 -5

0 comment

3 changed files

ColinEberhardt

pr closed time in a month

issue closedScottLogic/kdb-boothroyd

Add a license

This is required before we can start onboarding. Ideally this should be a permissive license like Apache 2.0.

closed time in a month

gyorokpeter

PR opened ScottLogic/kdb-boothroyd

Add an Apache 2.0 License

fixes #94

+371 -5

0 comment

3 changed files

pr created time in a month

create barnchScottLogic/kdb-boothroyd

branch : license

created branch time in a month

startedchrisprice/d3fc-webgl-hathi-explorer

started time in a month

push eventColinEberhardt/d3fc-webgl-hathi-explorer

Colin Eberhardt

commit sha bc16986f23c435b537677754ecf686309ed8acb6

Fixed link

view details

push time in a month

issue commentColinEberhardt/applause-button

Applause Button WordPress Plugin

You're paying about $40/month for AWS? I assume it automatically scales with demand? How many sites do you think you can support before you'll see a significant increase in cost?

Yes, the whole back end is elastic, the more people use it, the more it scales. I have various alerts that occur if i get a sudden (and costly) spike.

Some current stats:

  • pages using the applause button - 19,984
  • the number of 'get clap count' requests per day ~100,000
  • the number of 'update clap count' requests per day ~500

Not bad for $40/month!

I agree, having them centralised in a more open way than they are now would be a better solution. The problem is, with this amount of traffic and data, you're unlikely to find something free that can openly host it.

Perhaps I should periodically upload a data dump to GitHub?

I do worry that if this gets seriously popular, i.e. any top-100 site starts using it, the costs will seriously rack up!

bhadaway

comment created time in 2 months

issue commentColinEberhardt/applause-button

Decentralizing the Counts

you get hit by a bus

😱

Just FYI, the back-end for this service is hosted on AWS, using DynamoDB for persistence, and a number of Lambda functions for the logic. It's all pretty simple. The code is open source here:

https://github.com/ColinEberhardt/applause-button-server

It would be relatively easy to set up your own back-end. The repo currently deploys to dev / prod on each commit:

https://github.com/ColinEberhardt/applause-button-server/blob/master/.circleci/config.yml

bhadaway

comment created time in 2 months

issue closedColinEberhardt/applause-button

Wordpress

Hello! Is there a way to use this code for wordpress as a plugin? Thanks a lot

closed time in 2 months

zadesign

issue commentColinEberhardt/applause-button

Applause Button WordPress Plugin

That's fantastic, thanks for the heads-up.

One small request, can you please add a link to the OpenCollective page for this project? The server costs are funded by donation, I'd hope the Wordpress users would also contribute :-)

https://opencollective.com/applause-button

bhadaway

comment created time in 2 months

more