Viewing your models:
$ rails console // open up the Rails console
2.1.5 (main):0 > show-models // show all models
# | |
# Executes commands at the start of an interactive session. | |
# | |
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" | |
fi | |
for config_file ($HOME/.yadr/zsh/*.zsh) source $config_file |
{ | |
"extensions": | |
[ | |
"md", | |
"mdown", | |
"mdwn", | |
"mmd", | |
"txt", | |
"md" | |
], |
{ | |
"color_scheme": "Packages/Theme - itg.flat/itg.dark.tmTheme", | |
"draw_centered": true, | |
"extensions": | |
[ | |
"mmd", | |
"md", | |
"md" | |
], | |
"indentation": 4, |
{ div, h1, h2, h3, h4, h5, h6, p, a } = React.DOM | |
@Entry = React.createClass | |
render: -> | |
div className: 'col-md-6 no-padding', | |
div className: 'entry-card', | |
div className: 'fade' | |
div null, | |
h2 null, @props.entry.title |
#!/usr/bin/env ruby | |
require 'pty' | |
require 'colorize' | |
require 'tempfile' | |
def system_stdout(cmd) | |
system('touch tempfile') | |
system("script -q /dev/null #{cmd} | tee tempfile") | |
output = File.readlines 'tempfile' |
# === EDITOR === | |
Pry.editor = 'vi' | |
require 'awesome_print' | |
# == Pry-Nav - Using pry as a debugger == | |
Pry.commands.alias_command 'c', 'continue' rescue nil | |
Pry.commands.alias_command 's', 'step' rescue nil | |
Pry.commands.alias_command 'n', 'next' rescue nil | |
# === CUSTOM PROMPT === |
require 'colorize' | |
def print_table(table, with_header = true) | |
# Calculate widths | |
widths = [] | |
table.each do |line| | |
line.each_with_index do |col, c| | |
widths[c] = (widths[c] && widths[c] > col.length) ? widths[c] : col.length | |
end | |
end |
{ | |
"bold_folder_labels": false, | |
"color_scheme": "Packages/color-themes/pisco-sour.tmTheme", | |
"fade_fold_buttons": false, | |
"file_exclude_patterns": | |
[ | |
"*.pyc", | |
"*.pyo", | |
"*.exe", | |
"*.dll", |
{ | |
"color_scheme": "Packages/User/Color Highlighter/themes/pisco-sour.tmTheme", | |
"draw_centered": true, | |
"extensions": | |
[ | |
"mmd", | |
"md", | |
"md" | |
], | |
"highlight_line": true, |