Skip to content

Instantly share code, notes, and snippets.

@jwieringa
jwieringa / vim-ruby-command-t-install.markdown
Created November 8, 2011 16:40
Install Vim with Ruby Interpreter and Command-T on Ubuntu

Summary

The following instructions will install Vim with the Ruby interpreter and Command-T. I keep my vim settings under revision control, thus I have chosen to use Git's submodules and Pathogen to manage Command-T. Depending on your preferences, you may want to setup Command-T differently. I recommend reading through the Command-T Readme

Install dependencies (what my system required), hg, and rake

sudo apt-get install ruby ruby-dev libncurses5-dev mercurial clone build-essential rake

I chose to compile vim with my system Ruby, 1.8.7. It is important that you use the same version to compile both Vim and Command-T. If your using RVM and you want to do the same, before proceeding you will want to:

rvm use system
@jwieringa
jwieringa / partTwo.markdown
Created January 9, 2012 10:07
The Test of a Hypotheses: The Logic and Force of Auxiliary Hypotheses

The Test of a Hypotheses: The Logic and Force of Auxiliary Hypotheses

Crucial tests on hypotheses (in the form of [modus tollens][wiki1]), where a hypothesis is decisively refuted, are impossible in science because it's possible to save a hypothesis from a false test by proactively revising auxiliary hypotheses or a change in test conditions. The following demonstrates the reliance upon auxiliary hypotheses:

If (H and A), then I
not I
not (H and A)
@jwieringa
jwieringa / lectureNotes.md
Created February 27, 2012 03:53
Modal Thinking

Using and Understanding Models

  1. Understand Patterns
  2. Predict Points
  3. Produce Bounds
  • Range of possibilities
  1. Retrodiction
  • What was the past like?
  1. Predict Other Stuff
  • Model showed another planet present even though it couldn't be seen
@jwieringa
jwieringa / scrappyAcadamy.markdown
Created February 27, 2012 03:54
Scrappy Acadamy

Scrappy Academy*

** Disclaimer: All subject to review, change, and overall better scrappiness **

Goals

  1. Self study group that follows hungry academy course
  2. Pick one open source project to contribute to
  3. Invite Ruby community members to weekly meetings as mentors

Values

@jwieringa
jwieringa / example.feature
Created March 9, 2012 21:34
Cucumber Example
# Below is an example of a User Story turned into a Cucumber feature
User Story
----------
As a <Insert Role>
I want <The Tool>
So that <Insert Business Value>
If a customer enters a credit card number that isn’t exactly 16 digits long, when they try to submit the form, it should be redisplayed with an error message advising them of the correct number of digits.
@jwieringa
jwieringa / gist:3387435
Created August 18, 2012 15:13
power_enum install error on 1.8.7
  1. While running bundle install on a project, I ran into the following error:
ArgumentError: /Users/jason/.rbenv/versions/1.8.7-p358/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:72:in `parse': Illformed requirement ["#<YAML::Syck::DefaultKey:0x11418fa78> 0.2.1"]
An error occurred while installing power_enum (0.6.2), and Bundler cannot continue.
Make sure that `gem install power_enum -v '0.6.2'` succeeds before bundling.
  1. According to Bundle, it was getting hung up on an illformed Gemspec:
@jwieringa
jwieringa / gist:3588181
Created September 1, 2012 21:37
Ripped from Specification by Example

Step 1

Identify what the business goal is for building software.

Business goal

Increase repeat sales to existing customers by 50% over the next 12 months

Step 2

From the business goal, derive the scope of the feature(s)

@jwieringa
jwieringa / id_rsa.pub
Last active December 13, 2015 23:38
Public SSH Key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD3yDaQAfB3+Fl3cGksZ3YcWg+G8iDKod0Ib3aMT0bdPc+GzGxS+p731V4W+ZBzl+skiRBK6tFYSNsaWpmop7MM2cDhE+zMFEYZ8hheBR/c2O4HwZlL3qg0V/+3YNwUf6R51TiX5NRoBF49Xyn6i3ggzybkdvY/5fLgF4NpXrpzQ7x7hq8MNHlOpr6RIxARs2bInusoaV5iWvaPuYgyw+JNdGcIrJdAdcOkwfPT4ijMSKb1B68iPAUHW8LvQ+FX8J3/ZZQKyMMBzjolxuDQGgrxTsgayyhmxbCk1yUPgm2O1tSh/4D30Ur3MoZLeUdduRwedUGy5rX5tvV3G4Zlbnfr
@jwieringa
jwieringa / gist:5522106
Last active December 17, 2015 00:38
Javascript Books about Style, Culture, and Best Practices (a work in progress)
@jwieringa
jwieringa / gist:5797967
Created June 17, 2013 15:51
An example of a directive that reads and writes to scope.
laiApp.directive('demoGreet', function( $parse ) {
return {
link: function linkFn(scope, element, attrs) {
console.log('linkingFn(', scope, element, attrs, ')');
// read out of the scope
scope.$watch( attrs.demoGreet, function ( data ) {
element.text('Hello ' + data.name + '!' );
}, true);