Skip to content

Instantly share code, notes, and snippets.

@travisbhartwell
travisbhartwell / gist:9999467
Created April 5, 2014 23:34
General Conference Study Plan
This is a means for picking a study schedule for the talks from General Conference in the 25 weeks leading until the next conference. This will allow studying roughly the same amount of content from Conference each week.
- take a list of talk titles, speakers, and duration
- calculate the total duration, rounding up to the next power of 25
and divide. This is the target weekly study amount.
- note the shortest talk time
- for each week (1 to 25)
@travisbhartwell
travisbhartwell / gist:10589833
Last active August 29, 2015 13:59
Book of Mormon Translation Challenge Schedule
2014-04-06 Intro pages of the BOM
2014-04-07 1 Ne 1-3
2014-04-08 1 Ne 4-6
2014-04-09 1 Ne 7-10
2014-04-10 1 Ne 11-13
2014-04-11 1 Ne 14-15
2014-04-12 1 Ne 16
2014-04-13 1 Ne 17-18
2014-04-14 1 Ne 19-21
2014-04-15 1 Ne 22-2 Ne 1
@travisbhartwell
travisbhartwell / passages-web.py
Created July 11, 2014 17:43
Passages web app
import random
import time
from klein import run, route
@route('/')
def home(request):
text = '<a href="/select">Select 5 passages</a><br /> \
<a href="/last">Last selection</a>'
return text
module Main where
import Control.Applicative ((<$>))
import Data.List (isPrefixOf, sort)
import qualified Data.Vector as V (findIndices, fromList, length, toList, (!))
import System.Random (getStdGen)
import System.Random.Shuffle (shuffle')
data Passage = Passage { title :: String, isNewTitle :: Bool }
import random
import time
from klein import run, route
DEFAULT_TOTAL = 5
DEFAULT_NEW = 2
class Passage(object):
def __init__(self, content):
I know what it feels like
When life don't feel right
And I wanna live right
Who'd ever know
Needed to wear on
Push the extra on
Facing death alone
Bright lights and a buncha silence
Blood everywhere, eyes red from crying
Took him had to break me in a quick click
cabal: Error: some packages failed to install: │
hjsmin-0.1.4.7 depends on language-javascript-0.5.13 which failed to install. │
hledger-0.23.98 depends on pretty-show-1.6.8 which failed to install. │
hledger-lib-0.23.98 depends on pretty-show-1.6.8 which failed to install. │
hledger-web-0.23.98 depends on pretty-show-1.6.8 which failed to install. │
language-javascript-0.5.13 failed during the configure step. The exception │
was:
acprep: INFO: Invoking primary phase: update
acprep: INFO: Executing phase: update
acprep: INFO: Executing phase: pull
acprep: INFO: Executing phase: submodule
acprep: INFO: Executing phase: make
acprep: INFO: Executing phase: config
acprep: INFO: Executing phase: submodule
acprep: INFO: Executing phase: configure
acprep: INFO: System type is => Linux
acprep: INFO: Setting up build flavor => debug
nafai@shedemei:~$ apt-cache search appstream │
appdata-tools - AppData validation tool │
appstream-doc - Developer documentation for AppStream │
appstream-index - Software component index generator │
gir1.2-appstream - Library to access AppStream services (introspection data) │
libappstream-dev - Library to access AppStream services (development files) │
libappstream1 - Library to access AppStream services
CC resources.o
math-display.vala:437.5-437.38: error: overriding method `CompletionProvider.get_start_iter' is incompatible with base method `Gtk.SourceCompletionProvider.get_start_iter': incompatible direction of parameter 3.
public virtual bool get_start_iter (Gtk.SourceCompletionContext context, Gtk.SourceCompletionProposal proposal, Gtk.TextIter iter)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 1 error(s), 0 warning(s)
Makefile:1065: recipe for target 'gnome_calculator_vala.stamp' failed