Skip to content

Instantly share code, notes, and snippets.

View waltflanagan's full-sized avatar

Mike Simons waltflanagan

  • Fermented Code, LLC
  • East Lansing, MI
View GitHub Profile
@waltflanagan
waltflanagan / installhubot.sh
Created December 9, 2011 20:41
install tsc hubot
#!/bin/bash
git clone git://github.com/TechSmith/hubot.git
cd hubot
npm install
make package
@waltflanagan
waltflanagan / hubot-scripts.json
Created December 9, 2011 21:48
cloud hubot scripts
["redis-brain.coffee", "tweet.coffee", "shipit.coffee", "blake.coffee", "ackbar.coffee", "publish.coffee", "meme_generator.coffee", "defprogramming.coffee"]
@waltflanagan
waltflanagan / installhubot.sh
Created December 14, 2011 03:05
Install mac hubot
#!/bin/bash -e
# don't blunder on if an error occurs
set -e
# get configured
echo "Welcome to the TSC Hubot install script!"
read -ep "What hubot git should we install? " HUBOT_REPO
HUBOT_REPO=${HUBOT_REPO:-"git://github.com/TechSmith/hubot.git"}
read -ep "Where should it be checked out? " HUBOT_NAME
@waltflanagan
waltflanagan / brew_setup.sh
Created September 4, 2012 14:28
Git homebrew setup
#!/bin/bash
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
brew install git bash-completion hub
### setup bash_completion
echo 'if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi' >> ~/.bash_profile
#!/usr/bin/perl -w
use strict;
my $out = "../Settings.bundle/en.lproj/Acknowledgements.strings";
my $plistout = "../Settings.bundle/Acknowledgements.plist";
system("rm -f $out");
open(my $outfh, '>', $out) or die $!;
@waltflanagan
waltflanagan / gist:7571273
Created November 20, 2013 21:21
NSUserDefaults custom objects
@implementation NSUserDefaults (CustomClassSaving)
-(void) setCustomObject:(id<NSCoding>)object forKey:(NSString*)key
{
NSData *encodedObject = [NSKeyedArchiver archivedDataWithRootObject:object];
[self setObject:encodedObject forKey:key];
}
-(id<NSCoding>) customObjectForKey:(NSString*)key
@waltflanagan
waltflanagan / RangeData(internal).h
Created December 6, 2013 21:38
RangeSDK feedback
#import <Foundation/Foundation.h>
NSString * const kRDRangeUid;
NSString * const kRDSamples;
NSString * const kRDTime;
NSString * const kRDTemperature;
@interface RangeData ()
// An Array of dictionaries of temperature + metadata
@property (readwrite) NSArray* samples;

A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.

I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.

I'd love comments and suggestions about any of these.

I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.

I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".

### Keybase proof
I hereby claim:
* I am waltflanagan on github.
* I am waltflanagan (https://keybase.io/waltflanagan) on keybase.
* I have a public key whose fingerprint is 6A90 EEF6 0AC8 9751 8D41 552F 82B4 55F9 5FDD 02CF
To claim this, I am signing this object:
+(void)retrieveSentimentForVideo:(VideoEntity*)video withResultBlock:(void(^)(NSArray* sentiment))resultBlock
{
NSMutableArray* sentimentsRetrieved = [[NSMutableArray alloc] init];
__block __weak void (^weakSentimentsRetrievedBlock)(NSArray*);
void (^sentimentsRetrievedBlock)(NSArray*);
weakSentimentsRetrievedBlock = sentimentsRetrievedBlock = ^void(NSArray* sentiments) {
[sentimentsRetrieved addObjectsFromArray:sentiments];
if ([sentiments count] == 1000) {
[self querySentimentForVideo:video skippingToResultNumber:[sentimentsRetrieved count] withResultBlock:weakSentimentsRetrievedBlock];