Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Mohammad Abdullah moeabdol

🎯
Focusing
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
moeabdol / README.md
Last active Jul 25, 2017
CSTS Showcase
View README.md

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.

Content

@moeabdol
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.