Skip to content

Instantly share code, notes, and snippets.


Mohammad Abdullah moeabdol

Block or report user

Report or block moeabdol

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
moeabdol /
Last active Jul 25, 2017
CSTS Showcase

About This Document

In this document I will showcase code excerpts extracted from a toy project of mine [CSTS][1]. The purpose of this document is to demonstrate coding styles, techniques, and best practices I follow when developing Rails applications.


moeabdol / flatten.rb
Last active Jul 6, 2017
flatten arbitrarily nested array
View flatten.rb
# This method should return [1, 2, 3, 4]
a = [[1, 2, [3]], 4]
eval "[#{a.to_s.delete('[]')}]"
You can’t perform that action at this time.