Skip to content

Instantly share code, notes, and snippets.

View dctremblay's full-sized avatar

David Côté-Tremblay dctremblay

View GitHub Profile
@dctremblay
dctremblay / bash-telegram-bot.sh
Last active June 26, 2024 02:29
Bash Telegram Bot : Send and receive messages in realtime (long polling). Shipped with a simple API wrapper. Usage: adapting recvUpdate() and other stuff to your needs.
#!/bin/bash
# Title: Starter Bash Telegram Bot
# Version: 0.1-alpha
# Date: 2024-06-12
# License: Unlicense
# Author: dctremblay@dasio.ca
#
# Telegram Bot API Documentation:
# https://core.telegram.org/bots/api#making-requests
@macrat
macrat / README.md
Last active May 20, 2024 01:15
ChatGPT on Vim

ChatGPT on Vim

This is just a experimental code. Not for practical use.

More useful version is on macrat/askgpt.vim.

  1. Place autoload-chatgpt.vim to ~/.vim/autoload/chatgpt.vim.

  2. Write this to your vimrc:

@alexandream
alexandream / pretty-printer.scm
Created October 10, 2013 01:18
Simple scheme pretty printer in Guile.
#!/usr/bin/guile -s
!#
(use-modules (ice-9 pretty-print))
(define args (command-line))
(if (< (length args) 2)
(begin
(display "Not enough parameters, need a file name.")
(newline))