Ensure that Cursor is not running before making any changes.
I hereby claim:
- I am salman0ansari on github.
- I am salman0ansari (https://keybase.io/salman0ansari) on keybase.
- I have a public key ASB4PMtSFcqEpJjAWM3aAr62yjkO5V3f0Yk6NHChBx2oEQo
To claim this, I am signing this object:
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
// https://x.com/cneuralnetwork/status/1831989042826629546 | |
const digits = "4137894711755904"; | |
let sum = []; | |
digits.split("").map((digit, index) => { | |
if (index % 2 === 0) { | |
const double = +digit * 2; | |
if (double > 9) { | |
let pushItem = String(double) |
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
--- | |
swagger: "2.0" | |
info: | |
description: | | |
This is a swagger defenition for [Telegram bot API](https://core.telegram.org/bots/api). | |
version: "3.6" | |
title: Telegram Bot API | |
host: api.telegram.org | |
schemes: | |
- https |
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
#!/bin/bash | |
check_storage() { | |
# Get the disk usage percentage | |
usage=$(df -h --output=pcent / | tail -n 1 | tr -d ' %') | |
if [ "$usage" -ge 70 ]; then | |
return 0 | |
else | |
return 1 | |
fi |
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, { useEffect } from 'react'; | |
import { Space, Table, Tag } from 'antd'; | |
import type { ColumnsType } from 'antd/es/table'; | |
import { atom, useAtom } from 'jotai' | |
import { currentTableData } from './atoms'; | |
interface DataType { | |
Id: string; | |
Jid: string; | |
Name: 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 chromium from '@sparticuz/chrome-aws-lambda'; | |
export const GenerateBuffer = async (content) => { | |
try { | |
const puppeteer = chromium.puppeteer; | |
const browser = await puppeteer.launch({ | |
args: chromium.args, | |
executablePath: await chromium.executablePath, | |
}); | |
console.log('We have a browser', browser); |
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
package main | |
import ( | |
"crypto/rsa" | |
"crypto/sha256" | |
"crypto/x509" | |
"encoding/base64" | |
"encoding/pem" | |
"fmt" | |
"io/ioutil" |
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 declare(strict_types=1); | |
require __DIR__ . '/../vendor/autoload.php'; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\Exception\GuzzleException; | |
use GuzzleHttp\RequestOptions; | |
// ==================== // |
NewerOlder