Skip to content

Instantly share code, notes, and snippets.

Looking for work/projects!

Cyan Cyan101

Looking for work/projects!
  • Perth, Australia
View GitHub Profile

Keybase proof

I hereby claim:

  • I am cyan101 on github.
  • I am cyan101 ( on keybase.
  • I have a public key ASDPkayfRssOeK4mbXq0jZ9AQSmnZBz_Xgy2UwH864dN5go

To claim this, I am signing this object:

Cyan101 / Collatz_Tag_System.rb
Last active Jun 1, 2017
[2017-05-29] Challenge #317 [Easy] Collatz Tag System
View Collatz_Tag_System.rb
#[2017-05-29] Challenge #317 [Easy] Collatz Tag System
tag_keys = %w(a b c)
tag_system = %w(bc a aaa)
puts "what do i start with? (at least 3 chars, combination of a/b/c)"
tag = gets.chomp
while tag.length > 2
case tag.chr
Cyan101 / unqiue_id_gen.rb
Created May 27, 2017
Creates a 8-character unique ID based off the current time
View unqiue_id_gen.rb
def unique_id'%Q').to_i.to_s52
class Numeric
Alpha52 = ('a'..'z').to_a + ('A'..'Z').to_a
def to_s52
return '' if self < 1
s = ''
q = self
View ipad-media-querys.css
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:landscape) {
/*ipad landscape */
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait) {
/*ipad portrait */
Cyan101 /
Created Feb 16, 2017 — forked from jonathanpmartins/
Install Libsodium on Ubuntu 14.04.3 LTS Trusty
sudo add-apt-repository ppa:chris-lea/libsodium;
sudo echo "deb trusty main" >> /etc/apt/sources.list;
sudo echo "deb-src trusty main" >> /etc/apt/sources.list;
sudo apt-get update && sudo apt-get install libsodium-dev;
Cyan101 /
Created Nov 19, 2016 — forked from hvasconcelos/
Create an Sinatra SSL Server
# Generate a self-signed Certificate and a Private Key
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout pkey.pem -out cert.crt
View dah-cards_converter.rb
require 'htmlentities'
coder =
puts "Pack name please"
packname = gets.chomp
template = ["---\n", "expansion: #{packname}\n", "authors:\n", "- CAH\n", "- Cyan101\n", "questions:\n"]
loop do
puts "Saved file name"