Skip to content

Instantly share code, notes, and snippets.

View randybb's full-sized avatar
🐧

Roman Priesol randybb

🐧
  • Slovakia, Hviezdoslavov
  • 01:25 (UTC +02:00)
View GitHub Profile
require 'prawn'
require 'prawn/layout'
Prawn::Document.generate("table-test.pdf") do
headers = ["Course", "Grade", "Comments"]
data = [["Home Room", "A+", "Great work!"],
["Home Room", "A+", "Great work!"],
["Home Room", "A+", "Great work!"],
["Home Room", "A+", "Great work!"],
["Home Room", "A+", "Great work!"]]
@kevinold
kevinold / prawn_term_sheet.rb
Created October 22, 2009 19:25 — forked from mileszs/prawn_term_sheet.rb
Testing Prawn PDF generation
#!/usr/bin/ruby -w
#
# Testing Prawn PDF generation
require 'rubygems'
require 'prawn'
require 'prawn/layout'
require 'prawn/format'
class TermSheet < Prawn::Document
@treybean
treybean / prawn_handler_rails_3.rb
Created August 12, 2010 22:22
Prawn Handler for Rails 3
# in config/initializers
module ActionView
module Template::Handlers
class Prawn < Template::Handler
include ActionView::Template::Handlers::Compilable
self.default_format = Mime::PDF
def compile(template)
@tmcw
tmcw / disconnect.rb
Created July 22, 2011 04:06
bulk-export run data from Garmin Connect
#!/usr/bin/env ruby
## disconnect
# ./disconnect.rb -u yourusername
#
# This is a command-line utility for the bulk-downloading of run data from
# the connect.garmin.com web application, which has lackluster export
# capabilities.
#
@pklaus
pklaus / brother_ql - Related and Unrelated Software.md
Last active August 21, 2023 11:38
brother_ql - Related and Unrelated Software
@IdrisCytron
IdrisCytron / MakerUNOSIM7600GPS.ino
Last active April 5, 2024 14:57
Arduino Device Tracker Using GSM GPS SIM7600E Module
/*
Project: Arduino GSM GPS Device Tracker
Board: Maker Uno
GSM: SIM7600E
GPS: SIM7600E
Library:
- Adafruit FONA
*/
#include <SoftwareSerial.h>
// Must disable logging if using logging in main.cpp or in other custom components for the
// __c causes a section type conflict with __c thingy
// you can enable logging and use it if you enable this in logger:
/*
logger:
level: DEBUG
esp8266_store_log_strings_in_flash: False
*/
//#define APE_LOGGING
@sekcompsci
sekcompsci / Comparison Espressif ESP MCUs.md
Last active July 23, 2024 20:41 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison chips (SoCs) table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6. Forked from @fabianoriccardi

Comparison chips (SoCs) table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December
@jnimmo
jnimmo / wican-ioniq28kw.yaml
Last active July 1, 2024 22:05 — forked from mukowman/wican.yaml
ESPHome configuration for the Ioniq EV 28kw with the MeatPi WiCAN interface
substitutions:
device_name: car
charging_voltage_threshold: '13.0'
low_voltage_threshold: '12.0'
low_voltage_sleep_duration: 30min
deep_sleep_duration: 3min # 5 * 60000
first_boot_run_duration: '300000'
abrp_key: !secret abrp_key
abrp_token: !secret abrp_token
hotspot1_ssid: !secret hotspot1_ssid
@BartMassey
BartMassey / github-unghost.sh
Last active June 4, 2024 15:11
Mark all notifications as read ("Ghost notification" remover)
#!/bin/sh
# Mark all notifications as read, including "ghost" notifications.
# Works on Linux, requires a "classic" auth token be present in `~/.github-oauthtoken`
# and also that `gh` is installed. You could presumably use `gh auth login` instead
# if you want to authenticate that way.
#
# Works for me, use at your own risk.
#
# https://github.com/orgs/community/discussions/6874
# https://docs.github.com/en/rest/activity/notifications?apiVersion=2022-11-28#mark-notifications-as-read