Input | Action |
---|---|
CTRL+U |
Page up 1/2 |
CTRL+D |
Page dw 1/2 |
Here's a list of mildly interesting things about the C language that I learned mostly by consuming Clang's ASTs. Although surprises are getting sparser, I might continue to update this document over time.
There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.
1. Combined type and variable/field declaration, inside a struct scope [https://godbolt.org/g/Rh94Go]
struct foo {
struct bar {
int x;
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
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
#import <UIKit/UIKit.h> | |
#import <CoreText/CTFont.h> | |
@interface UIFont (Traits) | |
@property(nonatomic, readonly) CTFontRef CTFontRef; | |
@property(nonatomic, readonly) CTFontSymbolicTraits traits; | |
@property(nonatomic, readonly, getter=isBold) BOOL bold; | |
@property(nonatomic, readonly, getter=isItalic) BOOL italic; |