I hereby claim:
- I am shreve on github.
- I am shreve (https://keybase.io/shreve) on keybase.
- I have a public key whose fingerprint is F74D A565 C27E 38E2 FAE0 91A8 46E1 5CFC B828 6868
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| class ApplicationController < ActionController::Base | |
| before_action :session_hook | |
| protected | |
| # Models don't have access to the request's session, so we sneak it in here. | |
| # Shh, don't tell anyone. | |
| def session_hook | |
| accessor = instance_variable_get :@_request | |
| Session.send(:define_method, "session", proc { accessor.session }) | |
| Session.send(:define_method, "reset_session", proc { accessor.reset_session }) |
| { | |
| "CRMDataSet":{ | |
| "xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance", | |
| "xmlns:xsd":"http://www.w3.org/2001/XMLSchema", | |
| "Header":{ | |
| "ErrorNumber":null, | |
| "ErrorMessage":null | |
| }, | |
| "Contacts":{ | |
| "Item":[ |
| [ /Title (Elementary Differential Equations) | |
| /Author (Edwards & Penney) | |
| /DOCINFO pdfmark | |
| [ /Title (Contents) | |
| /Page 6 | |
| /OUT pdfmark | |
| [ /Count -8 | |
| /Title (1. First-Order Differential Equations) |
| runtime macros/matchit.vim | |
| execute pathogen#infect() | |
| let mapleader="," " <Leader> = , | |
| filetype plugin indent on | |
| " Theming and shit like that | |
| syntax on |
| set -g prefix C-a | |
| set -g default-terminal "screen-256color" | |
| set -g default-command "reattach-to-user-namespace fish" | |
| bind C-a send-prefix | |
| unbind C-b | |
| # Set lines of history to scrollback | |
| set -g history-limit 3000 | |
| # Make shift+arrows, ctrl+arrows etc work in Vim. |
| set completion-ignore-case on | |
| set show-all-if-ambiguous on | |
| set bell-style none | |
| set editing-mode vi | |
| # Make TAB cycle through possible completions | |
| #TAB: menu-complete |
| #!/usr/bin/env ruby | |
| require 'io/console' | |
| require_relative 'ansi' | |
| class App | |
| attr_accessor :input | |
| attr_accessor :selection | |
| class << self |
| # This module contains helpers for various ansi-code operations | |
| module ANSI | |
| # ANSI color escape codes set the foreground and background colors. | |
| # Forground color is a number between 30 and 37. | |
| # Background color is a number between 40 and 47. | |
| # The ones place represents the same color for both. | |
| COLORS = [:black, :red, :green, :yellow, :blue, :magenta, :cyan, :white, nil, :default].freeze | |
| def self.clear_screen | |
| $stdout.write "\e[2J" |