This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
KOBO_ROOT="$1" # The root of the mounted Kobo volume | |
HIGHLIGHTS_FILE="$2" # The output | |
sqlite3 "$KOBO_ROOT/.kobo/KoboReader.sqlite" << ENDSQL | |
.mode csv | |
.output $HIGHLIGHTS_FILE | |
.print "Title,Author,Date,Highlight" | |
select content.Title, content.Attribution, Bookmark.DateCreated, Bookmark.Text from Bookmark left join content on Bookmark.VolumeID = content.ContentID where Text is not null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
sh = auto | |
ui = true | |
wtf = auto | |
[color "branch"] | |
current = green reverse | |
local = green |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Basic class with one attribute ("name") | |
class Person | |
attr_accessor :name | |
# line 2 is equivalent to lines 5 to 11: | |
# def name=(something) | |
# @name = something | |
# end | |
# | |
# def name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BRANCH=`git branch | grep '^\*' | awk '{print $2}'` | |
REPO=`git remote -v | grep origin | head -1 | sed 's/[^:]*:\([^\.]*\).*/\1/'` | |
open "https://github.com/$REPO/commits/$BRANCH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ cucumber --i18n en-lol | |
| feature | "OH HAI" | | |
| background | "B4" | | |
| scenario | "MISHUN" | | |
| scenario_outline | "MISHUN SRSLY" | | |
| examples | "EXAMPLZ" | | |
| given | "* ", "I CAN HAZ " | | |
| when | "* ", "WEN " | | |
| then | "* ", "DEN " | | |
| and | "* ", "AN " | |