Skip to content

Instantly share code, notes, and snippets.

View HelixSpiral's full-sized avatar
🐔
🐔🐔🐔🐤🐤🐤🐤

Shawn Smith HelixSpiral

🐔
🐔🐔🐔🐤🐤🐤🐤
View GitHub Profile
@HelixSpiral
HelixSpiral / passgen.rb
Last active December 27, 2015 00:59
Generate random passwords from inside Weechat.
# Copyright (c) 2013 Shawn Smith <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@HelixSpiral
HelixSpiral / int.rb
Created May 19, 2014 01:18
How many integers between 1500 and 8000 (inclusive) contain no repeated digits?
#!/usr/bin/env ruby
# Author: Shawn Smith
# Purpose: Do nins math work
# Problem: How many integers between 1500 and 8000 (inclusive) contain no repeated digits?
total = 0
for x in 1500..8000 do
number = x.to_s

Keybase proof

I hereby claim:

  • I am helixspiral on github.
  • I am shawn (https://keybase.io/shawn) on keybase.
  • I have a public key ASDTH57Dxc__WY96zkYSWwuMhVpMc8_L-qY9HsJOpynn5go

To claim this, I am signing this object: