Skip to content

Instantly share code, notes, and snippets.

@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"
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");

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:

#!/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.
#
#
@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 .
@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 / 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 / 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 / about.md
Last active January 16, 2017 14:46
Markdown output from FuckYeahMarkdown for http://flyinglogic.com/about/

Software for Visual Planning {.length}

[PDF][1] This introduction is also available as a printable white paper. [Download.][2]

The Elevator Pitch

Flying Logic is a revolutionary tool for proactive thinkers, whether you want to change your personal life for the better, or grow a world-class business that impacts thousands or millions of people. Flying Logic is a highly visual, easy to use software application that does for reasoning what spreadsheets do for numbers. Just as you would not do detailed financial projections in your head, you need Flying Logic for all nontrivial planning and reasoning endeavors. Project management software won't help you when you have no idea what part of a complex system needs improvement, or what that improvement might look like, or how to cause that improvement. Answering these questions is a critical and often-overlooked part of the planning process, and this is where Flying Logic shines. Flying Logic diagrams are not static images— they are working

==> keybase has been moved to Homebrew-Cask.
==> brew uninstall --force keybase
Uninstalling keybase... (8 files, 73.7M)
==> brew prune
Pruned 2 symbolic links and 4 directories from /usr/local
==> brew cask install keybase
==> Downloading https://prerelease.keybase.io/Keybase.dmg
######################################################################## 100.0%
==> No checksum defined for Cask keybase, skipping verification
==> Moving App 'Keybase.app' to '/Applications/Keybase.app'