Skip to content

Instantly share code, notes, and snippets.

View oblakeerickson's full-sized avatar

Blake Erickson oblakeerickson

View GitHub Profile

Keybase proof

I hereby claim:

  • I am oblakeerickson on github.
  • I am oblakeerickson (https://keybase.io/oblakeerickson) on keybase.
  • I have a public key whose fingerprint is AD6A 422C 1134 1906 A391 2612 DDBC 0891 C1CA D1E2

To claim this, I am signing this object:

@oblakeerickson
oblakeerickson / drupal.md
Last active October 7, 2016 15:42
Notes about Drupal

Notes about Drupal

I'm just getting started with drupal. Here are links to resources that have helped me along the way. Hopefully you will find them useful too.

Currently I'm using Drupal 7 because that is the current version the Drupal site I'm taking over is using.

Drupal is not Wordpress. When you first create a new drupal site it feels like a very stripped down version of wordpress that has very few features, but it is way more customizable. One reason why it feels like there are way less features than wordpress out of the box is because you have to install Modules (like plugins) for simple things like a WYSIWYG editor, a popup date picker, an image uploader, etc.

Hosting

vagrant@precise32:/vagrant/jekyll$ script/test
/home/vagrant/.rvm/rubies/ruby-2.2.1/bin/ruby
+ ruby -S bundle exec rake TESTOPTS=--profile test
/home/vagrant/.rvm/rubies/ruby-2.2.1/bin/ruby -I"lib:lib:test" -I"/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0" "/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/rake/rake_test_loader.rb" "test/**/test_*.rb" --profile
# Running tests with run options --profile --seed 29801:
......................................F..................................F.F................................................F...............................................................................................................................................................................F.........................................................................................................................................................................................F.....F.....F........F.........
.........................................................................
@oblakeerickson
oblakeerickson / index.html
Last active August 29, 2015 14:15
Hello Angular!
<!DOCTYPE html>
<html ng-app="app">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<script>
var app = angular.module("app", []);
var model = {
message: "Hello Angular!"

asdfasdf file_name test

asdfadsf file_name test

asdfasdf word test

@oblakeerickson
oblakeerickson / dw.rb
Created November 4, 2013 16:17
just learning how to test for a raised argument error
require 'minitest/autorun'
class TestDailyWeight < MiniTest::Unit::TestCase
def test_weight_has_a_value
@daily_weight = DailyWeight.new(10)
assert_equal 10, @daily_weight.weight
end
def test_weight_should_be_a_number
assert_raises(ArgumentError) { DailyWeight.new("not a number") }
end
@oblakeerickson
oblakeerickson / register.rb
Last active December 27, 2015 06:09
Learning about minitest from Steve Klabnik
require 'minitest/autorun'
class TestCashRegister < MiniTest::Unit::TestCase
def setup
@register = CashRegister.new
end
def test_default_is_zero
assert_equal 0, @register.total
end
def test_total_calculation
@oblakeerickson
oblakeerickson / gist:6412502
Created September 2, 2013 12:48
bundle env output
blake@WIN8MACBOOK ~/code/blogger (master)
$ bundle env
Bundler 1.3.5
Ruby 2.0.0 (2013-05-14 patchlevel 195) [i386-mingw32]
Rubygems 2.0.2
GEM_HOME
Gemfile
source 'https://rubygems.org'