You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'
.
Consider something like:
// | |
// CGWindowDictionary.swift | |
// | |
// Created by Stephan Casas on 11/2/23. | |
// | |
import Foundation; | |
import CoreGraphics; | |
import AppKit; |
// | |
// CGCoordinateSpaces.swift | |
// | |
// Created by Stephan Casas on 11/7/23. | |
// | |
import Foundation; | |
// MARK: - CGPoint |
[ | |
{ | |
"id": "wwdc2010-118", | |
"title": "Mastering Core Data", | |
"description": "Core Data contains a vast set of advanced features to help you better manage your data and evolve your application over time. Master the techniques for working with data in your application, from being more efficient to doing more in the database and changing how you store your data over time. Take your Core Data knowledge to the next level.", | |
"links": [ | |
[ | |
"HD", | |
"https://developer.apple.com/devcenter/download.action?path=/videos/wwdc_2010__hd/session_118__mastering_core_data.mov" | |
], |
// Usage should be fairly self-explanatory, just paste this in a header and use | |
// CRASH_WITH_MESSAGE("foobar") in your function. | |
// Example backtrace: | |
// Thread 0 Crashed:: Dispatch queue: com.apple.main-thread | |
// 0 ??? 0x1022d8000 CRASHING IN test.c:20 (foobar) + 0 | |
// 1 a.out 0x1022d7f60 main + 24 | |
// 2 dyld 0x195f07e50 start + 2544 | |
#define STRINGIFY(a) #a | |
#define CRASH_FUNCTION_NAME(file, line, message) "CRASHING IN " file ":" STRINGIFY(line) " (" message ")" |
// Example usage: | |
// Swizzler<NSString *, NSDateFormatter *, NSDate *> NSDateFormatter_stringFromDate_ { | |
// NSDateFormatter.class, @selector(stringFromDate:), [&](auto self, auto date) { | |
// if ([NSCalendar.currentCalendar components:NSCalendarUnitWeekday fromDate:date].weekday == 4) { | |
// return @"It Is Wednesday My Dudes"; | |
// } else { | |
// return NSDateFormatter_stringFromDate_(self, date); | |
// } | |
// } | |
// }; |
class SourceListTableCellView: NSTableCellView { | |
override var draggingImageComponents: [NSDraggingImageComponent] { | |
let components = super.draggingImageComponents | |
guard | |
self.backgroundStyle == .emphasized, //emphasized = selected | |
let textField = self.textField, | |
let newStyle = textField.attributedStringValue.mutableCopy() as? NSMutableAttributedString, | |
let labelIndex = components.firstIndex(where: { $0.key == .label }) | |
else { | |
return components |
// Compile with clang -framework Foundation sethack.m | |
#import <Foundation/Foundation.h> | |
#import <objc/runtime.h> | |
/* | |
CFHashBytes from http://www.opensource.apple.com/source/CF/CF-1153.18/CFUtilities.c | |
*/ | |
#define ELF_STEP(B) T1 = (H << 4) + B; T2 = T1 & 0xF0000000; if (T2) T1 ^= (T2 >> 24); T1 &= (~T2); H = T1; |
Fractal Design Define S Black | |
Corsair CP-9020094-EU RMX Serie RM1000X ATX/EPS (if you don't do SLI 850W is good enough) | |
Asus ROG Maximus VIII Hero Gaming Mainboard | |
Corsair CMK32GX4M4A2400C14 Vengeance LPX 32GB | |
Intel Core™ i7-6700K | |
Noctua NH-D15S | |
Samsung Basic MZ-7KE1T0BW 850 Pro SSD (no space for an PCI-E version...) | |
Western Digital WD40EZRX Caviar Green 4TB (optional) |
You can specify the underlying name for a C function the linker/compiler should actually use. If you use an existing | |
function's name, it will just let you refer to it with your prototype's name. If you define the function, it'll give | |
it that name. It even complains if a function of that name already exists. Tested with clang on a Mac, but AFAIK also | |
works in GCC. You can even use special characters in your function names, like you can do in assembly. |