I hereby claim:
- I am alikaragoz on github.
- I am alikaragoz (https://keybase.io/alikaragoz) on keybase.
- I have a public key whose fingerprint is C609 96C6 E878 49C6 58CC 4D50 9886 9103 3E86 B86D
To claim this, I am signing this object:
{ | |
"externaldrive.fill.trianglebadge.exclamationmark":"\u26a0\ufe0f", | |
"tag.fill":"\ud83c\udff7\ufe0f", | |
"keyboard.badge.eye":"\ud83d\udc41\ufe0f", | |
"airpodspro.chargingcase.wireless.fill":"\ud83c\udfa7", | |
"figure.hockey":"\ud83c\udfd2", | |
"road.lanes.curved.left":"\ud83d\udd04", | |
"plus.app":"\u2795", | |
"axel.2.front.and.rear.engaged":"\ud83d\udd29", | |
"car.rear.fill":"\ud83d\ude97", |
import SpriteKit | |
import SwiftUI | |
// MARK: - GameScene | |
class GameScene: SKScene { | |
override func didMove(to _: SKView) { | |
physicsBody = SKPhysicsBody(edgeLoopFrom: frame) | |
} |
import SwiftUI | |
struct RubberBandSwitch: View { | |
enum Const { | |
static let shapeSize: CGSize = .init(width: 90.0, height: 190.0) | |
static let cornerRadius: CGFloat = 26.0 | |
} | |
@State var value = 0.5 |
#define AssertOr(condition, action) { \ | |
BOOL evaluatedCondition = !!(condition); \ | |
if (!evaluatedCondition) { \ | |
NSAssert(evaluatedCondition, @#condition); \ | |
action \ | |
} \ | |
} \ | |
#define AssertOrReturnNil(condition) AssertOr(condition, return nil;) |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
directories = Dir.glob('*').select { | |
|f| File.directory? f | |
} | |
workspace = nil | |
directories.each do |folder| | |
if folder.include? ".workspace" |
// Defines a yet undocumented method to add a warning if super isn't called. | |
#ifndef NS_REQUIRES_SUPER | |
#if __has_attribute(objc_requires_super) | |
#define NS_REQUIRES_SUPER __attribute((objc_requires_super)) | |
#else | |
#define NS_REQUIRES_SUPER | |
#endif | |
#endif | |
@interface UIViewController (SubclassingWarnings) |
wget -r http://suckmycontent/ |
// As a local variable. | |
returnType (^blockName)(parameterTypes) = ^returnType(parameters) {...}; | |
// As a property. | |
@property (nonatomic, copy) returnType (^blockName)(parameterTypes); | |
// As a method parameter. | |
- (void)someMethodThatTakesABlock:(returnType (^)(parameterTypes))blockName {...} | |
// As an argument to a method call. |
xc () { | |
workspaces=(`ls -d1 *.(xcworkspace|xcodeproj) | sed -e "s/\///g"`) &> /dev/null | |
filenames=(`ls -d1 *.(xcworkspace|xcodeproj) | sed -e "s/\..*$//g"`) &> /dev/null | |
if [[ ${#workspaces} = 0 ]] | |
then | |
echo "No Xcode projects or workspaces were found." | |
return | |
fi | |