This file contains 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 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 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 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 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 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 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 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 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: { |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Editable shit</title> | |
<style type="text/css"> | |
#edit {background-color:#FFFF99;} | |
</style> | |
<script type="text/javascript"> | |
function saveEdits() { |
NewerOlder