- Raspberry Pi (Model B)
- 20x4 LCD screen (like this one)
- 10K Potentiometer (like this one)
- Breadboard
- Breadboard Wires
- Breakout header pins (0.1-inch)
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
ERROR: Error installing ed25519: | |
ERROR: Failed to build gem native extension. | |
current directory: /home/dennmart/.asdf/installs/ruby/3.4.3/lib/ruby/gems/3.4.0/gems/ed25519-1.3.0/ext/ed25519_ref10 | |
/home/dennmart/.asdf/installs/ruby/3.4.3/bin/ruby extconf.rb | |
creating Makefile | |
current directory: /home/dennmart/.asdf/installs/ruby/3.4.3/lib/ruby/gems/3.4.0/gems/ed25519-1.3.0/ext/ed25519_ref10 | |
make DESTDIR\= sitearchdir\=./.gem.20250421-21351-68yv92 sitelibdir\=./.gem.20250421-21351-68yv92 clean |
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
import { Role } from "testcafe"; | |
const user = Role("https://example.com/login", async t => { | |
// Steps for logging in go here. | |
}); | |
fixture("My application") | |
.page("https://example.com/home") | |
.beforeEach(async t => { | |
await t.useRole(user); |
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
version: 2 | |
jobs: | |
build: | |
working_directory: ~/airport_gap | |
docker: | |
- image: circleci/ruby:2.6.5-node | |
environment: | |
PGHOST: 127.0.0.1 | |
PGUSER: airport_gap |
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
version: 1 | |
transactions: | |
- id: "GET /airports/:id" | |
steps: | |
- id: "Get information about a single airport" | |
request: | |
method: GET | |
endpoint: "{{ env.AIRPORT_GAP_API_URL }}/airports/KIX" | |
expect: |
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
2016-01-05T08:49:34.769952+00:00 heroku[web.1]: State changed from up to starting | |
2016-01-05T08:49:37.809847+00:00 heroku[web.1]: Starting process with command `bundle exec unicorn -c ./config/unicorn.default.rb` | |
2016-01-05T08:49:38.037022+00:00 heroku[web.1]: Stopping all processes with SIGTERM | |
2016-01-05T08:49:39.010966+00:00 app[web.1]: I, [2016-01-05T08:49:39.010042 #3] INFO -- : reaped #<Process::Status: pid 6 exit 0> worker=0 | |
2016-01-05T08:49:39.011117+00:00 app[web.1]: I, [2016-01-05T08:49:39.011070 #3] INFO -- : reaped #<Process::Status: pid 9 exit 0> worker=1 | |
2016-01-05T08:49:39.011224+00:00 app[web.1]: I, [2016-01-05T08:49:39.011178 #3] INFO -- : reaped #<Process::Status: pid 12 exit 0> worker=2 | |
2016-01-05T08:49:39.012261+00:00 app[web.1]: I, [2016-01-05T08:49:39.012198 #3] INFO -- : master complete | |
2016-01-05T08:49:39.142886+00:00 app[web.1]: I, [2016-01-05T08:49:39.142802 #3] INFO -- : Refreshing Gem list | |
2016-01-05T08:49:39.833970+00:00 heroku[web.1]: Process exited with status 0 | |
2016-01-05T |
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 bash | |
echo "Updating apt..." | |
sudo apt-get update -y -qq > /dev/null | |
echo "Installing required libraries for the app..." | |
sudo apt-get -y -q install ruby-dev > /dev/null | |
cd /vagrant |
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
require 'stripe' | |
Stripe.api_key = "YOUR_STRIPE_API_KEY" | |
duplicate_customers = [] | |
last_customer_id = nil # Cursor for paginating through results | |
# Stripe can retrieve a maximum of 100 customers in one go, so we need to loop. | |
loop do | |
customers = Stripe::Customer.all(limit: 100, starting_after: last_customer_id) | |
emails = customers.data.each.map { |d| d["email"] } |
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
sudo cp nginx /etc/init.d/ | |
sudo update-rc.d nginx defaults | |
sudo chmod +x /etc/init.d/nginx | |
/etc/init.d/nginx start |
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 'open-uri' | |
require 'nokogiri' | |
doc = Nokogiri::HTML(open("http://www.emoji-cheat-sheet.com/")) | |
emoji = doc.css('.name') | |
IO.popen('pbcopy', 'w') { |f| f << ":#{emoji.to_a.sample.text}:" } | |
puts "Copied to clipboard!" |
NewerOlder