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 { Bot, Context } from "grammy"; | |
| export const bot = new Bot<Context>(process.env.TELEGRAM_BOT_TOKEN ?? ""); |
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
| #!/bin/bash | |
| NAME="stephane" | |
| last_num=$(ls scripts/${NAME}[0-9]* 2>/dev/null | sed "s/[^0-9]//g" | sort -n |$ | |
| echo $last_num | |
| if [ -z "$last_num" ]; then | |
| last_num=0 |
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": "Catch up on your bookmarked Youtube & Tiktok videos", | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "options": { | |
| "reset": false | |
| } | |
| }, | |
| "type": "n8n-nodes-base.splitInBatches", |
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
| ``` | |
| > @woym/server@ deploy /Users/waptik/labs/woym/apps/server | |
| > wrangler deploy | |
| ⛅️ wrangler 4.25.1 (update available 4.26.0) | |
| ───────────────────────────────────────────── | |
| Using redirected Wrangler configuration. | |
| - Configuration being used: "dist/woym_template_api/wrangler.json" |
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": "AI product Images", | |
| "nodes": [ | |
| { | |
| "parameters": {}, | |
| "type": "n8n-nodes-base.manualTrigger", | |
| "typeVersion": 1, | |
| "position": [ | |
| 0, | |
| 0 |
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
| { | |
| "version": "4", | |
| "specifiers": { | |
| "jsr:@libs/logger@^3.1.0": "3.1.3", | |
| "jsr:@oak/commons@1": "1.0.0", | |
| "jsr:@oak/oak@^17.1.3": "17.1.3", | |
| "jsr:@std/assert@1": "1.0.9", | |
| "jsr:@std/bytes@1": "1.0.4", | |
| "jsr:@std/bytes@^1.0.2": "1.0.4", | |
| "jsr:@std/crypto@1": "1.0.3", |
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
| <? | |
| # MIT license, do whatever you want with it | |
| # | |
| # This is my invoice.php page which I use to make invoices that customers want, | |
| # with their address on it and which are easily printable. I love Stripe but | |
| # their invoices and receipts were too wild for my customers on Remote OK | |
| # | |
| require_once(__DIR__.'/../vendor/autoload.php'); |
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
| { | |
| # replace 12 with the id of your choice | |
| # if you want for a channel the value of symbol should be "cid:channel_username" | |
| # eg: cid:fitness | |
| subjectTokens(where: {symbol: "fid:12"}) { | |
| tokenAddress: id | |
| name | |
| } | |
| } |
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
| const toBase64 = (file) => new Promise((resolve, reject) => { | |
| const reader = new FileReader(); | |
| reader.readAsDataURL(file); | |
| reader.onload = (e) => resolve(e.target.result); | |
| reader.onerror = (err) => reject(err); | |
| }); | |
| const compressBase64 = (src, quality = 0.5) => new Promise((resolve) => { | |
| const img = new Image(); | |
| img.src = src; |
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
| // I'm using deno | |
| import "https://deno.land/std@0.178.0/dotenv/load.ts"; | |
| import { green } from "https://deno.land/std@0.178.0/fmt/colors.ts"; | |
| import { itemsMenu } from './menus/example.menu.ts'; | |
| const grammy = new Bot<GrammyContext>(Deno.env.get("BOT_TOKEN")||""); // replace `BOT_TOKEN` inside `.env` file with your own telegram bot's token | |
| // attaching the menu to bot to get it to work if not we'll get the following errors inside the terminal | |
| // `Error: Cannot send menu 'bot-items-menu'! Did you forget to use bot.use() for it?` |
NewerOlder