Skip to content

Instantly share code, notes, and snippets.

View radixdev's full-sized avatar
💭
hi

Julian Richard Contreras radixdev

💭
hi
View GitHub Profile
@radixdev
radixdev / string_format_to_concat.rb
Created June 2, 2017 16:53
Converts string format to string concat
#!/usr/bin/env ruby
def show_user_prompt(msg)
puts msg
# flush our message to display
STDOUT.flush
return STDIN.gets.chomp
end
def get_user_input
@radixdev
radixdev / gist:9261894
Created February 27, 2014 23:25
coding for interviews #20
class Queue(object):
def __init__(self):
self.stack1 = Stack()
self.stack2 = Stack()
def enqueue(self,p):
self.stack1.push(p)
def dequeue(self):
#pop off all in 1 onto 2