Skip to content

Instantly share code, notes, and snippets.

@domdoescode
domdoescode / request.test.js
Created March 12, 2014 12:38
Request test
request(
{ url: 'http://google.co.uk'
, method: 'GET'
}, function (error, response, body) {
if (error) {
logger.error(error)
return callback(error)
}
// Do some things
@domdoescode
domdoescode / gist:afb228fee3ea80f8f594
Last active August 29, 2015 14:01
Sunday World Handover

Watermarking

The work within admin has been completed on this in the feature/watermarked-images branch, however there was one area that needed some consideration.

For the images to be watermarked on the front end, a new endpoint in darkroom-api is required. This endpoint would also be required so that permanently watermarking an image would replace the existing image with a watermarked one.

Cxense

They have provided code which has been styled themselves, which is currently within master as an admin widget cxenseRecommended. I've been in contact with Andy Kelly (andykellydk on Skype) regarding next steps, which is allowing them to index the whole site, and also them creating another widget for the site. I can make an introduction via email, Andy is the best person to discuss next steps with.

Keybase proof

I hereby claim:

  • I am domudall on github.
  • I am domudall (https://keybase.io/domudall) on keybase.
  • I have a public key ASBMUap5KrWtZMtVZ0OMiCzp3QsPSu4JVWOqX-dO_mDpZgo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am domdoescode on github.
  • I am domdoescode (https://keybase.io/domdoescode) on keybase.
  • I have a public key ASBU2Tljs4PEAcU1l_UNdENFfmrO7Oa2t3RWOJtpiE-CUAo

To claim this, I am signing this object:

@domdoescode
domdoescode / compare.md
Created October 22, 2024 14:33
Compare Drizzle, TypeORM, and Prisma. I want to use it as both an ORM and migration tool in GitLab CI. Also show some examples of queries including selects with joins, inserts, updates, and deletes

Overview of Drizzle, TypeORM, and Prisma

Each of these tools offers ORM (Object-Relational Mapping) functionality, as well as migration capabilities, but they differ in their philosophy, performance, and how they handle migrations. Below is a comparison tailored for a GitLab CI environment:

1. Drizzle ORM

  • Philosophy: Drizzle ORM focuses on simplicity and type-safety with a minimalistic approach. It is written in TypeScript and offers a SQL-like querying experience.
  • Migration: Drizzle has built-in migration capabilities, allowing you to create and run migrations programmatically. It is highly flexible and fits well into CI/CD pipelines.
  • Performance: Lightweight with a focus on being fast and minimal.
  • Pros: