Skip to content

Instantly share code, notes, and snippets.

View ariejan's full-sized avatar

Ariejan de Vroom ariejan

View GitHub Profile
@ariejan
ariejan / set.php
Created April 25, 2020 09:24
LEGO Checklist script
<?php
// Taken from https://chkno.net/lego-pieces/index.phps
// Working at https://chkno.net/lego-pieces/?set=42009-1
if (isset($_GET['set'])) {
$set = urlencode($_GET['set']);
} else {
$set = "1682-1";
}
?><!DOCTYPE HTML><html>
<head>
# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root

Keybase proof

I hereby claim:

  • I am ariejan on github.
  • I am adevroom (https://keybase.io/adevroom) on keybase.
  • I have a public key whose fingerprint is 8450 D928 4373 164E 25CC 7E0D AD73 9154 F713 697B

To claim this, I am signing this object:

module DSL
module SomeFeature
def set_us_up_the_bomb
raise "Not implemented."
end
end
end
module DSL
class Core
[env:arduino_mega]
platform = atmelavr
framework = arduino
board = megaatmega2560
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="woman">Hello from GET ME OUT OF HERE. This your courtesy phone call to get you out of there. You have 10 seconds.</Say>
<Pause length="10" />
<Say voice="woman">This call will end now.</Say>
<Pause length="1" />
<Say voice="woman">Bye now.</Say>
<Hangup/>
</Response>
#############################################################################
##
## extended_gcd.rb
##
## given non-negative integers a > b, compute
## coefficients s, t such that gcd(a, b) == s*a + t*b
##
def extended_gcd(a, b)
# trivial case first: gcd(a, 0) == 1*a + 0*0

Keybase proof

I hereby claim:

  • I am ariejan on github.
  • I am ariejan (https://keybase.io/ariejan) on keybase.
  • I have a public key whose fingerprint is 9733 0ED9 9A77 2FBB 866E C69C 2E3D 97A2 EBCA CF9A

To claim this, I am signing this object:

@ariejan
ariejan / aliases
Created October 22, 2013 07:36
/etc/aliases example
user123: original@example.com
user6783: another@example.com
@ariejan
ariejan / todo.rb
Created May 16, 2013 12:15
A simple TODO app in Ruby.
#!/usr/bin/env ruby
# encoding: utf-8
{
"Write a todo app" => true,
"Create my first item" => true,
"Publish source code" => true,
"??" => false,
"Profit!" => false
}.each_pair {|d,s| puts "[#{s ? '✓' : ' '}] #{d}"}