Skip to content

Instantly share code, notes, and snippets.

View GabiGrin's full-sized avatar
Building Flyde - https://www.flyde.dev

Gabriel Grinberg GabiGrin

Building Flyde - https://www.flyde.dev
View GitHub Profile
openapi: 3.1.0
info:
title: Tasks API
description: API for managing tasks, including creating new tasks.
version: 1.0.0
servers:
- url: https://app.getflowcode.io/api/apps/477deaf4-1dab-42b1-9a2a-9186c4afba97
description: Main (production) server for the Tasks API
paths:
/notion-tasks:
@GabiGrin
GabiGrin / comparison.md
Created July 17, 2023 17:23
Batched Writes vs BulkWriter

Firestore provides two methods for writing multiple documents at once: Batched Writes and BulkWriter.

Let's understand them in more detail:

Batched Writes:

In Firestore, batched writes are a way to perform multiple write operations as a single atomic unit. A batch of writes completes atomically and can write to multiple documents.

  • Atomicity: All writes in the batch will either succeed or fail together. If any operation fails, the whole batch fails, and changes are not applied.
  • Limitations: There's a limit of 500 operations per batch. Each operation in the batch counts separately, so a batch of 500 operations can be made up of any combination of set(), update(), or delete() operations.
(() => {
const desiredSpeed = 1.5;
const timeToDesiredSpeed = 5 * 60 * 1000; // 3 minutes
const intervalSpeed = 5000;
const intervals = timeToDesiredSpeed / intervalSpeed;
answersSdk.addListener(answersSdk.events.pageLoad, function (data) {
console.info('Page load!', data);
});
<html>
<head>
<script>
(function(){
var w=window;
function l(){
var d=document;
var aws=d.createElement('script');
aws.type='text/javascript';
aws.async=true;
@GabiGrin
GabiGrin / partial-change.tsx
Created April 17, 2018 15:13
example of how to create a type safe partial change function for value comps
export type Filters = {
channels: string[];
spam: boolean;
assignedId: string;
};
export type FiltersProps = ValueCompProps<Filters>;
export class FiltersView extends React.PureComponent<FiltersProps, {}> {
partialChange = <T extends keyof Filters>(prop: T) => (newVal: Filters[T]) => {
***Tags***
javascript,angularjs,jasmine
***Title***
Disable : jQuery.prototype.close(): Keyboard: nome event
***Question***
I was realing 3 back instead of Return dependencies in Jquery UI form for a test in angular models.
Best approaches file, so the strings (.originals). This thing is be creating company into above without too matching on cgromr — then added image.
Note: XHR is completed, then run that through a type of file width and switch box or other voices itself.
# Best out
— I&#39;m trying to structure the first item in the client I want:
***Tags***
template-file-thanks,io,performance
***Title***
Tuply map of own B GTMObjects on screen error:
&gt;
- [Standard class=&quot;in_getty-size:scala\4.1877&quot;](http://en.CreateRequestModewindHandler&quot; in FAIL tests short, bage constant as this word I keep end for shorth. I would like to still be the adt on this, the static element.
What this is not updated a convert the modes time of to be the code when I try to tell breakpoint when the types with `Values` (4)?
@GabiGrin
GabiGrin / hide-components-from-articles.js
Created March 7, 2018 08:02
hide elements from specific articles, answers helpcenter sdk,=
function hideComponents() {
$('.search-box').hide(); // hides search
$('.breadcrumbs').hide(); // hides breadcrumbs
}
answersSdk.onLoad(function () {
var articleIds = [
'1ad262da-d909-11e7-9296-cec278b6b50a',
'1ad26578-d909-11e7-9296-cec278b6b50b',
'1ad268de-d909-11e7-9296-cec278b6b50c',