Skip to content

Instantly share code, notes, and snippets.

View randybb's full-sized avatar
🦎

Roman Priesol randybb

🦎
  • Slovakia, Hviezdoslavov
  • 09:20 (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 March 10, 2026 21:36
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>
@danvy
danvy / WSL2-Net-Fix.ps1
Created September 5, 2020 21:04
Reset your WSL network connection trying to fix WSL2 media disconnected error
# Check these threads before proceeding:
# https://github.com/microsoft/WSL/discussions/5857
# https://github.com/microsoft/WSL/issues/5821
if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) {
$CmdLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments
Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CmdLine
Exit
}
# Restart the Host Network Service
Restart-Service -Force -Name hns
// this gist is no longer needed,
// see https://github.com/glmnet/esphome-components/blob/main/docs/arduino_port_extender.md
// for up to date information
@sekcompsci
sekcompsci / Comparison Espressif ESP MCUs.md
Last active April 2, 2026 17:07 — 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 February 12, 2026 15:31 — 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