Skip to content

Instantly share code, notes, and snippets.

View drteeth's full-sized avatar

Benjamin Moss drteeth

View GitHub Profile
@drteeth
drteeth / epubchecker.log
Last active July 5, 2018 17:24
Applying DDD ePub validation errors
Validating using EPUB version 3.0.1 rules.
ERROR(RSC-005): ./Downloads/ApplyingDDDwithCQRSandES.epub/OEBPS/chap01.xhtml(18,16): Error while parsing file 'attribute "width" not allowed here; expected attribute "about", "accesskey", "aria-activedescendant", "aria-atomic", "aria-autocomplete", "aria-busy", "aria-checked", "aria-controls", "aria-describedat", "aria-describedby", "aria-disabled", "aria-dropeffect", "aria-expanded", "aria-flowto", "aria-grabbed", "aria-haspopup", "aria-hidden", "aria-invalid", "aria-label", "aria-labelledby", "aria-level", "aria-live", "aria-multiline", "aria-multiselectable", "aria-orientation", "aria-owns", "aria-posinset", "aria-pressed", "aria-readonly", "aria-relevant", "aria-required", "aria-selected", "aria-setsize", "aria-sort", "aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-valuetext", "class", "content", "contenteditable", "contextmenu", "datatype", "dir", "draggable", "dropzone", "epub:type", "hidden", "id", "inlist", "itemid", "itemprop", "itemref", "itemscope

Keybase proof

I hereby claim:

  • I am drteeth on github.
  • I am benjaminmoss (https://keybase.io/benjaminmoss) on keybase.
  • I have a public key whose fingerprint is 4423 07CF B322 1D71 FC9C 25A1 09E5 3808 D357 E2FE

To claim this, I am signing this object:

@drteeth
drteeth / osx.sh
Created July 9, 2012 20:21
OS X defaults.
# Show remaining battery time; hide percentage
defaults write com.apple.menuextra.battery ShowPercent -string "NO"
defaults write com.apple.menuextra.battery ShowTime -string "YES"
# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
# Expand print panel by default
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
public ConfigurationModel getConfiguration() {
// TODO for dev, purposely set the config to null to
ConfigurationModel config = SportsTalkApplication.getInstance().getConfiguration();
config = null; // TEMP!
if (config == null) {
startActivity(new Intent(this, LoadingActivity.class));
finish();
// Warning, we're reading on the ui thread.
// config = readOfflineConfiguration();
// SportsTalkApplication.getInstance().setConfiguration(config);
@drteeth
drteeth / gist:1177607
Created August 29, 2011 02:06
ruby lambda example
class Monster
def what_am_i
end
end
class Ghost < Monster
def what_am_i
puts "I'm a ghost."
end
end
@drteeth
drteeth / gist:1160018
Created August 21, 2011 02:39
ListView and Buttons
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:id="@+id/buttons" android:orientation="horizontal"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_alignParentBottom="true">
<Button android:id="@+id/okay" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="@android:string/ok"
android:layout_weight="1" />