This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apk add --no-cache curl && mkdir -p /app/storage/maxmind && curl -L -o /app/storage/maxmind/city.mmdb https://ileri.b-cdn.net/GeoLite2-City.mmdb && curl -L -o /app/storage/maxmind/country.mmdb https://ileri.b-cdn.net/GeoLite2-Country.mmdb | |
INSERT INTO "public"."plans"("id","reference","plan_name","default_price_id","amount","metadata","created_at","updated_at","deleted_at","is_default") | |
VALUES | |
(E'4590c0bb-7dc1-4ec0-abef-61eb305059d1',E'prod_RxAyUR2',E'Core',E'price_1R3GcuIuzgc0GU',3000,E'{"deck": {"analytics": {"can_view_historical_sessions": false}}, "updates": {"max_recipients": 300}}',E'2025-03-16 21:27:38.685084+00',E'2024-09-04 13:46:35.612449+00',NULL,TRUE); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useContext } from "react"; | |
import { Thread, Pin } from "@cord-sdk/react"; | |
import SupabaseImplementation from "@/implementations/supabase.implementation"; | |
import { PinType } from "@/types/collaboration.type"; | |
import GroupIdContext from "@/context/groupid.context"; | |
import { Rnd } from "react-rnd"; | |
const PinComment = (pinData: PinType) => { | |
const groupId = useContext(GroupIdContext) as string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'fs'; | |
import path from 'path'; | |
import { exec } from 'child_process'; | |
enum KnexMigrationType { | |
Id = 'uuid', | |
String = 'string', | |
Number = 'integer', | |
Float = 'float', | |
Array = 'enum', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { container } from 'tsyringe'; | |
import { RateLimiterRedis } from 'rate-limiter-flexible'; | |
import httpStatus from 'http-status'; | |
import ms from 'ms'; | |
import { ErrorResponse } from '@shared/utils/response.util'; | |
import { RedisClient } from '@shared/utils/redis/redis-client/redis-client'; | |
import { RateLimitingConfig } from '@shared/types/general.type'; | |
const redisClient = container.resolve(RedisClient).get(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use App\Repository\TransactionRepository; | |
use Closure; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Cache; | |
use Illuminate\Validation\ValidationException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Brimble Runner Deployment | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [main] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function name(): string { | |
return PaymentMethod::STRIPE; | |
} | |
protected function createPaymentIntent(string $setupIntentId, $user, $transaction): array | |
{ | |
$setupIntent = SetupIntent::retrieve($setupIntentId); | |
$paymentMethodId = $setupIntent->payment_method; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async getRepos(installationId: number, { page, limit, q }: any, git: GIT_TYPE = GIT_TYPE.GITHUB) { | |
page = Number(page); | |
limit = Number(limit); | |
const deploymentProvider = DeploymentProvider.getProvider(git); | |
let data: any; | |
if (q) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import CryptoJS from "crypto-js"; | |
class LaravelEncrypt{ | |
public key: string; | |
constructor(key: string){ | |
this.key = key; | |
} | |
public encrypt(data: string): string{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axis from 'axios'; | |
const formData = new FormData(); | |
formData.append("assigned_page", "Room page"); | |
formData.append("name", "Test Project"); | |
formData.append("media", this.state.selectedFile); | |
async function upload(){ | |
return await axios.post("<api_endpoint>", formData, { | |
headers: { |
NewerOlder