Skip to content

Instantly share code, notes, and snippets.

View counterexample.txt
git init foo
cd foo
touch this that
git add .
git commit -m '1 master'
git checkout -b feature
echo 'feature' > this
git commit -a -m '1 feature'
View gist:7651413d5f06d4466df42b675ca6864b
(lldb) po [[self view] _methodDescription]
<UIView: 0x7fbe93e01bd0>:
in UIView:
Class Methods:
+ (id) fallback_debugHierarchyChildGroupingID; (0x101d67dda)
+ (id) fallback_debugHierarchyObjectsInGroupWithID:(id)arg1 onObject:(id)arg2 outOptions:(id*)arg3; (0x101d67e72)
+ (id) fallback_debugHierarchyAdditionalGroupingIDs; (0x101d67df9)
+ (id) fallback_debugHierarchyValueForPropertyWithName:(id)arg1 onObject:(id)arg2 outOptions:(id*)arg3 outError:(id*)arg4; (0x101d69f8f)
+ (id) fallback_debugHierarchyPropertyDescriptions; (0x101d6806a)
+ (void) _mapkit_animateWithDuration:(double)arg1 animations:(^block)arg2 completion:(^block)arg3; (0x7fff27471b8f)
@mattneub
mattneub / gist:7a17a0aab8e95e340de6e1eb14c6ea96
Created Feb 15, 2019
entire conversation for building fc-solve on Mojave
View gist:7a17a0aab8e95e340de6e1eb14c6ea96
Matts-Mac-mini:~ mattneubelcap$ cd /Users/mattneubelcap/Downloads/fc-solve-master/fc-solve/source
Matts-Mac-mini:source mattneubelcap$ mkdir build
Matts-Mac-mini:source mattneubelcap$ cd build
Matts-Mac-mini:build mattneubelcap$ cmake -DFCS_WITH_TEST_SUITE=OFF ..
-- The C compiler identification is AppleClang 10.0.0.10001145
-- The CXX compiler identification is AppleClang 10.0.0.10001145
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
View gist:2ee1bf9b54e6369cf2e845448050005a
SYSCALL(args) = return
open("/dev/dtracehelper\0", 0x2, 0xFFFFFFFFE2860110) = 3 0
ioctl(0x3, 0x80086804, 0x7FFEE285FF20) = 0 0
close(0x3) = 0 0
madvise(0x10D833000, 0x2000, 0x5) = 0 0
access("/AppleInternal/XBS/.isChrooted\0", 0x0, 0x0) = -1 Err#2
bsdthread_register(0x7FFF7891E408, 0x7FFF7891E3F8, 0x2000) = 1073742047 0
sysctlbyname(kern.bootargs, 0xD, 0x7FFEE285DAD0, 0x7FFEE285DAC8, 0x0) = 0 0
ioctl(0x2, 0x4004667A, 0x7FFEE285DD54) = 0 0
mprotect(0x10D9E7000, 0x1000, 0x0) = 0 0
View gist:5feaa268757ec828b1cb4a67d32803f6
Matts-Mac-mini:~ mattneubelcap$ cd Downloads
Matts-Mac-mini:Downloads mattneubelcap$ tar xf freecell-solver-5.0.0.tar.xz
Matts-Mac-mini:Downloads mattneubelcap$ cd freecell-solver-5.0.0
Matts-Mac-mini:freecell-solver-5.0.0 mattneubelcap$ mkdir build
Matts-Mac-mini:freecell-solver-5.0.0 mattneubelcap$ cd build/
Matts-Mac-mini:build mattneubelcap$ cmake .. -DFCS_WITH_TEST_SUITE=OFF
-- The C compiler identification is AppleClang 10.0.1.10010037
-- The CXX compiler identification is AppleClang 10.0.1.10010037
-- Check for working C compiler: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
@mattneub
mattneub / test.swift
Created Dec 4, 2016
Testing efficiency of Swift collision test as a Set is constructed
View test.swift
struct S : Hashable {
static func ==(lhs:S,rhs:S) -> Bool {
print("called == for", lhs.id, rhs.id)
return lhs.id == rhs.id
}
let id : Int
var hashValue : Int {
print("called hashValue for", self.id)
return self.id
}