This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git fetch -p > /dev/null 2>&1 | |
branches=`git branch -vv | grep ': gone]' | awk '{print $1}'` | |
if [[ -z "$branches" ]] | |
then | |
echo "No branch to prune" | |
exit 0 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
[ | |
"f", | |
"Show next/latest diffs", | |
"setProposedRevRanges()" | |
], | |
[ | |
"n", | |
"Next unreviewed file", | |
"nextUnreviewedFile()" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import parsedatetime | |
import sys | |
from time import mktime | |
from datetime import datetime | |
AS_DATE_FORMAT = "%d/%m/%y" | |
string = sys.argv[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on theSplit(theString, theDelimiter) | |
-- save delimiters to restore old settings | |
set oldDelimiters to AppleScript's text item delimiters | |
-- set delimiters to delimiter to be used | |
set AppleScript's text item delimiters to theDelimiter | |
-- create the array | |
set theArray to every text item of theString | |
-- restore the old setting | |
set AppleScript's text item delimiters to oldDelimiters | |
-- return the result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
collection1 := #(1 2 3 4 5) asOrderedCollection. | |
collection2 := #(a b c d e) asOrderedCollection. | |
list1 := ListModel new | |
items: collection1; | |
yourself. | |
list2 := ListModel new | |
items: collection2; | |
yourself. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
items := (1 to: 5) collect: [ :index || model | | |
model := DynamicComposableModel new | |
instantiateModels: #( | |
nameLabel LabelModel | |
address LabelModel | |
button ButtonModel ). | |
model nameLabel label: 'Name'. | |
model address label: 'Address'. | |
model button | |
label: nil; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StartupAction | |
name: 'Set git repo' | |
code: 'MCWorkingCopy allManagers | |
select: [ :e | e package name beginsWith: ''Spec'' ] | |
thenDo: [ :e || repository | | |
repository := MCFileTreeRepository new directory: ''/Users/benjamin/Documents/Benjamin/Spec/spec'' asFileReference. | |
e repositoryGroup addRepository: repository ]' | |
runOnce: true. |