Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am fsegouin on github.
  • I am fsegouin (https://keybase.io/fsegouin) on keybase.
  • I have a public key ASA01UuBFavVREXHqk7Q7B1warQ_oAmHG17C56DD96PzZgo

To claim this, I am signing this object:

@fsegouin
fsegouin / gist:a1621ff62134e470c0b8
Created September 12, 2015 12:35
Open a command in iTerm2 2.9+ from Alfred
on alfred_script(q)
tell application "iTerm2"
activate
set newWindow to (create window with default profile)
tell current window
tell current session
write text q
end tell
end tell
end tell
@fsegouin
fsegouin / gist:7fe7f7781600ba5a415c
Created September 18, 2014 11:09
Timer with DDHTimerControl
_timerControl = [DDHTimerControl timerControlWithType:DDHTimerTypeSolid];
_timerControl.translatesAutoresizingMaskIntoConstraints = NO;
_timerControl.color = [UIColor colorWithHexString:@"444444" alpha:0.2];
_timerControl.ringWidth = 3;
_timerControl.minutesOrSeconds = 60;
_timerControl.userInteractionEnabled = NO;
UIView *topView = (UIView *)[self.tableView viewWithTag:10];
_timerControl.frame = CGRectMake(0, 0, 66, 66);
_timerControl.center = CGPointMake(topView.frame.size.width/2, (topView.frame.size.height-20)/2);
[_timerControl addTarget:self action:@selector(valueChanged:) forControlEvents:UIControlEventValueChanged];