View t.sh
install_name_tool -id "@rpath/libmy.dylib" dist-x86_64-apple-darwin/lib/libmy.dylib || true
clang -o test src/test.c -rpath dist-x86_64-apple-darwin/lib -Ldist-x86_64-apple-darwin/lib -Idist-x86_64-apple-darwin/include -lmy -O2
View t.rs
// error:
error[E0277]: the trait bound `mymodule::MyHeader: mymodule::reqwest::header::Header` is not satisfied
// in crate root
#[macro_use] extern crate hyper;
// original code in mymodule using header! macro from Hyper
extern crate reqwest;
View swift-nspredicate-example.swift
func search(words: [String]?) -> [Codepoint] {
guard let searchTerms = words else {
print("failed to unpack words")
return []
}
var predicates : [NSPredicate] = [NSPredicate]()
for term in searchTerms {
let codePredicate = NSPredicate(format: "(%@ IN[cd] code)", term)
let typePredicate = NSPredicate(format: "(%@ IN[cd] type)", term)
View steve@infincia.com-transition-2016-01-03.txt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
I am transitioning my gpg key from a 2048-bit RSA key to a new
4096-bit RSA key.
The new key is signed by the old key, and this transition document
is signed with both keys.
View keybase.md

Keybase proof

I hereby claim:

  • I am steveatinfincia on github.
  • I am infincia (https://keybase.io/infincia) on keybase.
  • I have a public key whose fingerprint is 5D77 D9A4 2E28 0F5A FF8F 2EBF B67C 19E8 17A8 D846

To claim this, I am signing this object:

View codepoints-106.crash
Process: Codepoints [65254]
Path: /Applications/Codepoints.app/Contents/MacOS/Codepoints
Identifier: com.infincia.codepoints
Version: 1.0.6 (106)
App Item ID: 499161264
App External ID: 651084151
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Codepoints [65254]
User ID: 501
View keybase.md

Keybase proof

I hereby claim:

  • I am steveatinfincia on github.
  • I am infincia (https://keybase.io/infincia) on keybase.
  • I have a public key whose fingerprint is 8C3C 99A6 863E CAD3 E484 2E7F 5314 35AC 9594 CAE0

To claim this, I am signing this object:

View font-detection-codepoints.m
NSMutableAttributedString *displayedUnicodeString = [[NSMutableAttributedString alloc] initWithString:unicodeCharacter attributes:fontattributes];
[glyphView.character.textStorage setAttributedString:displayedUnicodeString];
// determine which font will actually be used by the character textview during rendering
NSFont *actualFont = [glyphView.character.textStorage attribute:NSFontAttributeName atIndex:0 effectiveRange:NULL];
// if it matches the users selected font, that font has a glyph for this character
BOOL characterFoundInFont = [selectedFont.fontName isEqualToString:actualFont.fontName];
View global-hotkeys-in-osx.m
extern OSStatus
RegisterEventHotKey(
UInt32 inHotKeyCode,
UInt32 inHotKeyModifiers,
EventHotKeyID inHotKeyID,
EventTargetRef inTarget,
OptionBits inOptions,
EventHotKeyRef * outRef)
AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER;
View codepoints-104.m
-(void)drawBackgroundInRect:(NSRect)dirtyRect {
// if cellBackground does not exist, create it
if (!cellBackground) {
// NSImage ivar
cellBackground = [[NSImage alloc] initWithSize:dirtyRect.size];
[cellBackground lockFocus];
//cellGradient created elsewhere, just a basic gradient
[cellGradient drawInRect:dirtyRect angle:270];
[cellBackground unlockFocus];
}