Skip to content

Instantly share code, notes, and snippets.

View smaboshe's full-sized avatar

Silumesii Maboshe smaboshe

View GitHub Profile
@smaboshe
smaboshe / problems_installing_ledger.txt
Last active August 29, 2015 14:01
Problems installing Ledger 3 on Ubuntu 12.04 (Desktop)
Encountered after following the steps to install this PPA for Ledger 3:
https://launchpad.net/~mbudde/+archive/ledger
$ sudo apt-get install ledger
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
@smaboshe
smaboshe / error.txt
Last active August 29, 2015 14:02
Problem adding the Android platform to a Cordova project
$ cordova platform add android
Creating android project...
/home/maximo/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:126
throw e;
^
Error: An error occurred while listing Android targets
at /home/maximo/.cordova/lib/android/cordova/3.5.0/bin/lib/check_reqs.js:87:29
at _rejected (/home/maximo/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:808:24)
at /home/maximo/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:834:30
@smaboshe
smaboshe / en.yml
Last active August 29, 2015 14:03
Variable substitution doesn't work inside a YAML block
# Variable substitution works here
foo: "The quick brown %{ animal } jumped over the lazy dog"
# Variable substitution done not work here
# Instead, "%{ animal }" gets rendered
bar: |
The quick
brown %{ animal }
jumped over
the lazy dog
@smaboshe
smaboshe / could_not_find_package.txt
Created October 13, 2014 12:58
Could not find WP Packagist Package
$ composer require wpackagist-theme/twentyfourteen
[InvalidArgumentException]
Could not find package wpackagist-theme/twentyfourteen at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [packages1] ... [packagesN]
@smaboshe
smaboshe / DCP wishlist
Created June 13, 2011 13:05
My Digital Continent Podcast wish-list
A semi-static list of "handles" I'd like to hear on the Digital Continent podcast.
@simunza
@thebestofzambia
@YostKalasa
@smaboshe
smaboshe / index.html.erb
Created August 18, 2011 06:44
Dummy link for capybara to match
<h1><%= yield :title %></h1>
<div class="plans">
<%= link_to "Bronze", root_url, :id => "bronze" %>
</div><!-- /.plans -->
@smaboshe
smaboshe / index.html.erb
Created August 18, 2011 06:54
Capybara should match the links inside the @plans rendered
<h1><%= yield :title %></h1>
<div class="plans">
<%= render @plans %>
</div><!-- /.plans -->
@smaboshe
smaboshe / _plan.html.erb
Created August 18, 2011 06:56
Capybara should match the link in here
<%= link_to plan.name, root_url, :id => plan.name.downcase %>
@smaboshe
smaboshe / plan_selections_spec.rb
Created August 18, 2011 06:59
Plan selection test spec
require 'spec_helper'
describe "Plan selection" do
it "selects the Bronze plan" do
visit plans_path
click_link "bronze"
end
end
@smaboshe
smaboshe / index.html.erb
Created August 18, 2011 07:18
Capybara should match a link inside the each block
<h1><%= yield :title %></h1>
<div class="plans">
<% @plans.each do |plan| %>
<%= link_to plan.name, root_url, :id => plan.name.downcase %>
<% end %>
</div><!-- /.plans -->