Skip to content

Instantly share code, notes, and snippets.

=====================
= TERMINAL COMMANDS =
=====================
. = current directory
.. = back one directory
$_ = last thing typed in last command
mk dir [name] = make directory [name]
touch [filename.extension] = make file with extension
Behavior Driven Development (BDD)
User Acceptance test (capybara)
Unit test (rspec)
Integration test
Stress test
Partial => Views
Helper =>
Method => Controller
================
= Heroku fonts =
================
Remember to use HTTPS when importing fonts onto SASS stylesheets in Rails
example: @import url(https://...);
heroku help
heroku help [command]
heroku apps:create [name]
=============
= Git setup =
=============
git config --global user.name "Your Name"
git config --global user.email your.email@example.com
git config --global push.default matching #ensure forward-compatibility with upcoming releases of Git
git config -l = show list of git configurations
===========
= Aliases =
@naterexw
naterexw / 0_reuse_code.js
Created February 5, 2016 10:05
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
[
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" },
{ "keys": ["super+shift+r"], "command": "reindent" , "args": {"single_line": false}},
{ "keys": ["super+shift+."], "command": "erb" }
]
https://atom.io/users/atom
https://atomlinter.github.io/
https://www.youtube.com/watch?v=hPC6keUUiTA
UI Theme: One Dark
Syntax Them: One Dark
advanced-open-file = cmd + alt + o
atom-alignment
atom-beautify
@naterexw
naterexw / rails_migration_cheatsheet.md
Created February 17, 2017 03:43 — forked from amejiarosario/rails_migration_cheatsheet.md
Rails Migration - Cheatsheet
@naterexw
naterexw / .rubocop.yml
Last active August 7, 2019 04:39
Rubocop config file ~/.rubocop.yml
Style/EmptyMethod:
EnforcedStyle: expanded
SupportedStyles:
- compact
- expanded
Style/StringLiterals:
EnforcedStyle: single_quotes
SupportedStyles:
- single_quotes
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->