Skip to content

Instantly share code, notes, and snippets.

View jankeesvw's full-sized avatar

Jankees van Woezik jankeesvw

View GitHub Profile
@peterc
peterc / audio_messages_to_mp3.rb
Last active March 27, 2018 08:19
Download audio messages from a Telegram channel or chat and turn them into a single MP3
require 'dotenv'
Dotenv.load
require 'telegram/bot'
require 'json'
require 'open-uri'
token = ENV['TELEGRAM_TOKEN']
files = []
Telegram::Bot::Client.run(token) do |bot|
@jcieslar
jcieslar / selectize_spec.rb
Created March 19, 2015 16:33
Capybara and selectize
page.execute_script("$('.selectize-input input').val('ber')")
sleep 0.5
page.execute_script("$('.selectize-input input').keyup()")
sleep 0.5
page.execute_script("$('.full-name').mousedown()")
# https://github.com/brianreavis/selectize.js/blob/master/src/selectize.js
@suweller
suweller / Emoji-etiquette.md
Last active December 25, 2022 23:20
Bring flavour to your pull-requests using Emoji!

Whitespace fish - 🐟

fish

The ultimate humiliation. Given for not adhering to whitespace guidelines.

Emoji cop - 👮

cop

For using the wrong Emoij