Skip to content

Instantly share code, notes, and snippets.

💭
Studying + Looking for a new ruby project!

Cyan Cyan101

💭
Studying + Looking for a new ruby project!
  • Perth, Australia
Block or report user

Report or block Cyan101

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am cyan101 on github.
  • I am cyan101 (https://keybase.io/cyan101) on keybase.
  • I have a public key ASDPkayfRssOeK4mbXq0jZ9AQSmnZBz_Xgy2UwH864dN5go

To claim this, I am signing this object:

@Cyan101
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
#https://www.reddit.com/r/dailyprogrammer/comments/6e08v6/20170529_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
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
DateTime.now.strftime('%Q').to_i.to_s52
end
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
Cyan101 / install-libsodium.sh
Created Feb 16, 2017 — forked from jonathanpmartins/install-libsodium.sh
Install Libsodium on Ubuntu 14.04.3 LTS Trusty
View install-libsodium.sh
#!/bin/bash
sudo add-apt-repository ppa:chris-lea/libsodium;
sudo echo "deb http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list;
sudo echo "deb-src http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list;
sudo apt-get update && sudo apt-get install libsodium-dev;
@Cyan101
Cyan101 / gen_keys.sh
Created Nov 19, 2016 — forked from hvasconcelos/gen_keys.sh
Create an Sinatra SSL Server
View gen_keys.sh
# 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 = HTMLEntities.new
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"
You can’t perform that action at this time.