1622. Fancy Sequence

Write an API that generates fancy sequences using the append, addAll, and multAll operations. Implement the Fancy class: Fancy() Initializes the object with an empty sequence. void append(val) Appends an integer val to the end of the sequence. void addAll(inc) Increments all existing values in the sequence by an integer inc. void multAll(m) Multiplies all existing values in the sequence by an integer m. int getIndex(idx) Gets the current value at index idx (0-indexed) of the sequence modulo 109 + 7. If the index is greater or equal than the length of the sequence, return -1.
// We use modulo 1e9+7 as required by the problem.
// BigInt is used throughout to avoid overflow.
var Fancy = function () {
    this.arr = [];                 // Stores "neutralized" values
    this.add = 0n;                 // Global additive offset
    this.multi = 1n;               // Global multiplicative factor
    this.mod = 1000000007n;        // Modulus as BigInt
};

/**
 * Fast modular exponentiation.
 * Computes a^b % mod using binary exponentiation.
 *
 * This is used to compute modu

What is a predicate function?

A **predicate function** is a function that **returns a boolean value**—that is, it returns **`true` or `false`** depending on whether a condition is satisfied.

In other words, a predicate **tests something**.

### Simple example (JavaScript)

```javascript
function isEven(number) {
  return number % 2 === 0;
}
```

* Input: a number
* Output: `true` if the number is even, otherwise `false`

Usage:

```javascript
isEven(4); // true
isEven(5); // false
```

### Example used with array methods

P

Übergabe

MFB
Contact Persons
  Ajeet, Nuria, Mike Letsch, Jochen Mink, Fabian Kirchner, 
Specialties: 
  different environments for MFB, 
  special services SAS
Q&A Session: 1 

Hallo Fabian, wie besprochen, bzgl. des Übergabeaufwandes:

Generell gibt's nichts spezielles was nicht schon andere Devs kennen und nicht übernehmen können. Da ich schon länger im Accountig Team bin, und wir die Financing Services übernommen haben, haben die anderen Devs schon gefragt, was sie wissen mussten. Nichtdestotrotzt, i

Aethyr Prompts

# Prompt: Update Forgejo Issues, Milestones, and Timeline

## Objective

You are the project planning agent for the Aethyr project hosted on Forgejo at
`git.cleverlibre.org` in the repository `aethyr/Aethyr`. Your job is to
review the current specification, codebase, and Forgejo issue tracker, then bring the
project's implementation task tracking fully up to date with the latest specification.

The implementation task tracking is represented as **Forgejo issues** organized under
**milestones**. 

MP4をMP3に変換する

<body>
  <div>
    <h1>MP4 → MP3 変換</h1>

    <input type="file" id="fileInput" accept="video/mp4,.mp4" multiple />

    <button id="convertBtn" disabled>変換する</button>

    <div id="status"></div>

    <div id="results"></div>
    <button id="downloadAllBtn" disabled>すべてダウンロード</button>
  </div>

  <script src="https://cdn.jsdelivr.net/npm/lamejs@1.2.1/lame.min.js"></script>
  <script>
    const fileInput = document.getElementById("fileInput");
    const convertBtn = document.getElementById("conv

GPS_NEO-6M


#include <Arduino.h>
#include <TinyGPSPlus.h>

#define RX 17 // recive(RX) data from gps(TX)
#define TX 16 // send(TX) data to gps(RX)

HardwareSerial gpsSerial(2);
TinyGPSPlus gps;

void setup()
{
  Serial.begin(115200);
  gpsSerial.begin(9600, SERIAL_8N1, RX, TX); // 9600 bits per second -> 104us = 1 bit
}

void loop()
{
  while (gpsSerial.available())
  {
    gps.encode(gpsSerial.read());
  }

  if (gps.location.isValid())
  {
    Serial.print("Latitude: ");
    Ser

Ascend Starter CSS - 2026



/* =========================================================
   IMPORTS
   ========================================================= */



/* =========================================================
   Variables (Design System)
   colors, fonts, spacing, radius, motion
   ========================================================= */
:root {

  /* Colors */
  --color-muted: #6b7280;
  --color-white: #ffffff;
  --color-border: #cacaca;

  /* Typography - only use this if you plan to import fonts

Ascend Starter CSS - 2026



/* =========================================================
   IMPORTS
   ========================================================= */



/* =========================================================
   Variables (Design System)
   colors, fonts, spacing, radius, motion
   ========================================================= */
:root {

  /* Colors */
  --color-muted: #6b7280;
  --color-white: #ffffff;
  --color-border: #cacaca;

  /* Typography - only use this if you plan to import fonts

3296. Minimum Number of Seconds to Make Mountain Height Zero

You are given an integer mountainHeight denoting the height of a mountain. You are also given an integer array workerTimes representing the work time of workers in seconds. The workers work simultaneously to reduce the height of the mountain. For worker i: To decrease the mountain's height by x, it takes workerTimes[i] + workerTimes[i] * 2 + ... + workerTimes[i] * x seconds. For example: To reduce the height of the mountain by 1, it takes workerTimes[i] seconds. To reduce the height of the mountain by 2, it takes workerTimes[i] + workerTimes[i] * 2 seconds, and so on. Return an integer representing the minimum number of seconds required for the workers to make the height of the mountain 0.
/**
 * @param {number} mountainHeight
 * @param {number[]} workerTimes
 * @return {number}
 */
var minNumberOfSeconds = function (mountainHeight, workerTimes) {

    const H = mountainHeight;

    // If there's only one worker, the formula is direct:
    // time = t * (1 + 2 + ... + H) = t * H(H+1)/2
    if (workerTimes.length === 1) {
        const t = workerTimes[0];
        return t * (H * (H + 1) / 2);
    }

    // Sort workers so the fastest ones are processed first.
    // This allows ear

Ultrasonic HC-R04_setup

// in setup()
  pinMode(TRIG, OUTPUT);
  pinMode(ECHO, INPUT);

  digitalWrite(TRIG, LOW);
  delay(1000);

// in loop()
  digitalWrite(TRIG, LOW);
  delayMicroseconds(2);

  digitalWrite(TRIG, HIGH);
  delayMicroseconds(10);
  digitalWrite(TRIG, LOW);

  duration = pulseIn(ECHO, HIGH);
  distance = duration / 58.0;
  meter = distance / 100.0;

🦑 Git - Collaboration sur un repo Github

# Git : Collaborer efficacement sur un même repo

## 1. Récupérer les branches de ses collaborateurs

Quand tes collaborateurs pushent directement sur ton repo (pas un fork), leurs branches sont sur `origin`.

### Récupérer toutes les branches distantes

```bash
git fetch origin
```

### Récupérer une seule branche spécifique

```bash
git fetch origin nom-de-la-branche
```

### Lister les branches distantes disponibles

```bash
git branch -r
```

### Basculer sur une branche d'un collaborateur

Rails - Cloudflare - Video Uploads Blocked

### Background
* In production environments using Cloudflare (business plan), video uploading 
performed by Rails can be blocked (page may load `No internet connection`) for
files larger than 100 MB.
* To verify if Cloudflare is the issue and not Nginx:
  * Check nginx for the following option: `client_max_body_size 500M;`
    * Usually within the `server {}` block 
  * Check the following logs:
    * `tail -f /var/log/nginx/error.log`
    * `tail -f /var/log/nginx/access.log`
    * If nothings 

How to shows difference introduced in a commit?

git log --patch
git log -p
git log -p app/\(features\)/beacon-money-account/info/free-activation/components/FreeActivationHero.tsx
git log -p ec60ac4 #using commit hash

# or using https://github.com/jonas/tig
tig

ayvens api

curl --location 'https://api.ayvens.com/rms/carmarket/b2c/vehicleads/' \
--header 'x-Ald-Subscription-Key: 6b2007dc3a864fcea99040d8c3e72a69' \
--header 'x-country: fr' \
--header 'User-Agent: Mozilla/5.0' \
--header 'x-partner: ald'

you can add filters if needed

arvals api

search for 
locationCount --> 525
registrationNumber
previousSalePriceGross
previousSalePriceNet
freeCarBenefit

16990
https://autoselect.arval.fr/voitures-occasion/offer/toyota-corolla-hybride-122h-dynamic-business-stage-academy-129192
23990
https://autoselect.arval.fr/voitures-occasion/offer/toyota-corolla-hybride-140h-active-130002

Developer Exercise

var EquipmentBookingUtils = Class.create();
EquipmentBookingUtils.prototype = {

    checkBooking: function(equipmentId, equipmentType, startTime, endTime) {

        var result = {
            booked_by: "",
            approver: ""
        };

        var gr = new GlideRecord('u_equipment_booking');
        gr.query();

        while (gr.next()) {

            if (gr.u_equipment == equipmentId && gr.u_status != 3) {

                if (startTime > gr.u_start_time && startTime