Skip to content

Instantly share code, notes, and snippets.

@bumper314
bumper314 / default.goalscape
Last active January 14, 2017 03:14
Pandoc Goalscape Writer
<project type="Goalscape" version="3.0">
<header>
<title>Simple Goal</title>
<selectedGoal>0</selectedGoal>
<centredGoal/>
<maxExpandedLevels>-1</maxExpandedLevels>
<gridData>0|0|0|0</gridData>
<persons/>
<tags/>
<preferences notesFontsize="14" projectViewType="0" notesExpanded="false" panelPercentWidth="27.77777777777778" enableStartDate="false" enableEndDate="true" disableAlarmClocks="false" enableFullColoring="false"/>
@bumper314
bumper314 / Goal.xml
Created January 7, 2017 20:17
Simple Sample Goalscape File
<project type="Goalscape" version="3.0">
<header>
<uid>38E15332-C074-EA7B-428C-762D2CB71C8A</uid>
<title>Simple Goal</title>
<selectedGoal>2</selectedGoal>
<centredGoal/>
<maxExpandedLevels>-1</maxExpandedLevels>
<gridData>0|0|0|0</gridData>
<persons/>
<tags/>
@bumper314
bumper314 / The Flooding Basement.html
Last active April 1, 2017 17:10
[I'm a title] This box isn't big enough to put all this info in #tags: foo, bar
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8"/>
</head>
<body>
<h2 id="thefloodingbasementproblem">The Flooding Basement Problem</h2>
<p><strong>An analogy:</strong> Running a business is like being in a basement with a leaky water main<a href="#fn:1" id="fnref:1" title="see footnote" class="footnote">[1]</a>. If you&#8217;re alone, you can either work on the water main or you can bail out water. You can&#8217;t do both at the same time, it&#8217;s physically impossible. So in the beginning I worked on the water main a little and bail out water in the meantime.</p>
@bumper314
bumper314 / regenstrings.sh
Created October 21, 2016 13:16
Regenerate strings files from source (code and xibs)
find . -name "*.xib" | xargs -t -I '{}' ibtool --generate-strings-file '{}'.strings '{}'
find . \( -name "*.c" -o -name "*.m" -o -name "*.mm" \) -print0 | xargs -0 genstrings -o .
#!/usr/bin/perl -w
#
# This script parses a crashdump file and attempts to resolve addresses into function names.
#
# It finds symbol-rich binaries by:
# a) searching in Spotlight to find .dSYM files by UUID, then finding the executable from there.
# That finds the symbols for binaries that a developer has built with "DWARF with dSYM File".
# b) searching in various SDK directories.
#
#

Keybase proof

I hereby claim:

  • I am bumper314 on github.
  • I am saudette (https://keybase.io/saudette) on keybase.
  • I have a public key whose fingerprint is BFC7 7C32 B875 3EBF 104A C7B0 6CA6 D92D 450E 0A66

To claim this, I am signing this object:

diff --git a/BlackjackGame.cpp b/BlackjackGame.cpp
index 0138fe7..ce8f36b 100644
--- a/BlackjackGame.cpp
+++ b/BlackjackGame.cpp
@@ -35,20 +35,38 @@ void BlackjackGame::add_player(Player new_player){
return;
}
void BlackjackGame::play_round(){
+ #ifdef VERBOSE
+ printf("Deal\n");
@bumper314
bumper314 / ichere
Created September 2, 2013 08:34
Run IntegrityChecker on just the files in the current directory, not subdirectories
#!/bin/bash
TDIR="__HERE__"
if [ -d "$TDIR" ]; then
echo "ichere: tempdir $TDIR already exists, clean up first"
exit
fi
mkdir "$TDIR"
find . -type f -maxdepth 1 -exec ln "{}" "${TDIR}/" \;
cd "$TDIR"