This file contains hidden or 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
// | |
// Structured.swift | |
// | |
// Created by daniel sweeney on 6/5/20. | |
// Copyright © 2020 daniel sweeney. All rights reserved. | |
// | |
import Foundation | |
// MARK: ------ Basic Structure ------ |
This file contains hidden or 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
#include <stdio.h> | |
// clang++ -std=c++14 -o test test.cc && ./test | |
struct A { | |
private: | |
int _x = 10; | |
int _y = 11; | |
public: | |
A(int x, int y) : _x(x), _y(y) {printf("2arg\n");} |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am dfsweeney on github. | |
* I am dfsweeney (https://keybase.io/dfsweeney) on keybase. | |
* I have a public key whose fingerprint is B7AB 1F2B D518 413F AD55 61BB 99C3 186B 85A3 E0EB | |
To claim this, I am signing this object: |
This file contains hidden or 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 Swift | |
import Cocoa | |
// Properties you need as an enum - problem of key value coding is it allows you to type *anything*, typos compile fine. | |
enum SyncObjectPropertyName { | |
case Archived | |
case Title | |
} | |
// Protocol shared both for local and server |