Skip to content

Instantly share code, notes, and snippets.

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]
@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" }
]
=====================
= 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
@naterexw
naterexw / rails_migration_cheatsheet.md
Created February 17, 2017 03:43 — forked from amejiarosario/rails_migration_cheatsheet.md
Rails Migration - Cheatsheet
=============
= 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 =
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 / commands
Last active December 19, 2017 14:06
# Initialize directory to EB
eb init
# set ENV variables
eb setenv [key]=[value] # set environment variable
# view EB ENV variables
eb printenv
# view eb events log
# 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 ->