Skip to content

Instantly share code, notes, and snippets.

full_path = File.expand_path(File.dirname(__FILE__))
vm_directory = directory = File.basename(full_path)
parent_path_with_sep = full_path.gsub(Regexp.new(directory + "$"), '')
separator = parent_path_with_sep[-1]
parent_path = parent_path_with_sep.gsub(Regexp.new(separator + "$"), '')
i = parent_path.rindex(separator)
app_name = parent_directory = parent_path[i + 1..- 1]
puts app_name

Obfuscation / Minification

  • CliffNotes

Version Control

  • Google Drive / Dropbox

General Coding

  • Codecademy
    • tutorial site that covers a number of languages and technologies
    • covers languages: HTML, CSS, JS, jQuery, Angular, PHP, Python, Ruby, Java
    • covers technologies: command line, git, SQL
  • Stack Overflow
    • Q & A site that covers most every question about code

Git