This file contains 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
#!/usr/bin/env ruby | |
# | |
# Ruby function to display an array of strings | |
# as columns on a text terminal. | |
# | |
# Author: Nicholas Humfrey | |
# License: https://unlicense.org/ | |
# | |
require 'io/console' |
This file contains 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
#!/usr/bin/env ruby | |
require 'net/http' | |
require 'json' | |
require 'uri' | |
options = { | |
new_account: true, | |
new_line: true, | |
api: 'fttp-checker', |
This file contains 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
class Meshtastic < Formula | |
include Language::Python::Virtualenv | |
desc "Python CLI client for use with Meshtastic devices" | |
homepage "https://meshtastic.org/" | |
url "https://files.pythonhosted.org/packages/9c/0b/ba9a21a0580b5da8c7cb67b6a6da5862092dad5eb8be9c942781572b0de7/meshtastic-2.3.11.tar.gz" | |
sha256 "66d2b71fd0b007cf479763a237aa07043518683e1affe440104c8dbe1676133e" | |
license "Apache-2.0" | |
head "https://github.com/meshtastic/python.git", branch: "master" |
This file contains 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
#!/usr/bin/env ruby | |
# | |
# Script to parse the HSBC mortgage rate page | |
# to see if they have chanegd the 2 Year Term Tracker Fee Saver | |
# | |
# Subtracts the Bank of England rate from the HSBC advertised rates | |
# | |
require 'net/http' | |
require 'nokogiri' |
This file contains 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 | |
# | |
# | |
pppd='pppd' | |
pppd+=' debug' | |
pppd+=' logfd 2' | |
pppd+=' nodetach' | |
pppd+=' noauth' | |
pppd+=' noip' |
This file contains 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
#!/usr/bin/env ruby | |
require 'date' | |
require 'json' | |
today = Date.today | |
start = today - 365 | |
(start...today).each do |date| | |
json = File.read("weather/#{date}.json") | |
data = JSON.parse(json, :symbolize_names => true) |
This file contains 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
*.csv | |
*.gz | |
*.bz2 |
This file contains 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
/* | |
This simple sketch receives bytes on the hardware serial port | |
and echos it to the Arduino Serial Monitor (over USB) | |
The bytes are printed out as a hexadecimal string | |
This sketch requires an Arduino that has a separate | |
serial port for the USB port - such as the Arduino Leonardo | |
Serial: Serial Monitor (USB) | |
Serial1: Hardward serial (Pins 0 and 1) connected |
This file contains 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
#!/usr/bin/env ruby | |
require 'radiodns' | |
require 'uri' | |
puts "Looking up FQDN for Wycombe Sound 106.6" | |
params = { | |
:freq => '10660', | |
:pi => 'c0a6', |
This file has been truncated, but you can view the full file.
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<ppg xmlns="http://bbc.co.uk/2007/7/ppg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://bbc.co.uk/2007/7/ppg http://downloads.bbc.co.uk/podcasts/ppg.xsd" version="0.1" createdDate="2007-09-27T12:30:19+01:00" modifiedDate="2015-06-02T22:15:04+01:00" ownerName="BBC" ownerEmail="feedback@bbc.co.uk"> | |
<program xmlns="" language="en-gb" typicalDuration="PT76M" active="true" public="true" bbcFlavour="Multi Programme" region="all" wwpid="0" launchDate="2009-01-21" frequency="daily" daysLive="7" liveItems="1"> | |
<title>606 Football Phone-in</title> | |
<shortTitle>606</shortTitle> | |
<description>The UK's biggest football phone-in, broadcast on Saturdays, Sundays and midweek on BBC Radio 5 live. Fans take part in a lively debate about the latest matches and talking points.</description> | |
<network id="5live" name="BBC Radio 5 live" /> | |
<image use="itunes" url="http://www.bbc.co.uk/podcasts/assets/artwork/606.jpg" /> | |
<link target="homepage" url=" |
NewerOlder