Skip to content

Instantly share code, notes, and snippets.

Working from Home

Mohammad Abdullah moeabdol

Working from Home
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.