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
#if os(macOS) | |
import SwiftUI | |
import OSLog | |
#warning("Scroll to position when opening?") | |
/// A collection view that displays a simple scrolling list of SwiftUI items. | |
/// | |
/// The collection view content should be a simple column, displaying SwiftUI items. The collection view items (particularly heights, | |
/// because widths are already always full width) should automatically always scale to the SwiftUI item content. |
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
#if os(iOS) | |
import SnapshotTesting | |
import SwiftUI | |
import XCTest | |
public extension XCTestCase { | |
/// Test the layout of a full-screen SwiftUI view. | |
/// | |
/// Currently, this is hardcoded to logical width and height of iPhone 14 Pro screen. It assumes that tests are ran only on iPhone 14 Pro simulator, |
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
// | |
// NSFRCChangeConsolidator.swift | |
// | |
// Created by Jaanus Kase on 14/05/2019. | |
// Copyright © 2019 Jaanus Kase. All rights reserved. | |
// | |
import Foundation | |
import CoreData |
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
#!/usr/bin/env python3 | |
"""For a list of files, get the checksums for the rows that don’t already have it. | |
Run 'find . -type f > folder.tsv' to get the list of files, and then pass that file | |
as an argument to this script. | |
""" | |
import sys |
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
#!/usr/bin/env python3 | |
"""Upload Instapaper bookmarks to Pinboard. For input, uses the CSV file as | |
exported from Instapaper, or received from their support. | |
""" | |
import sys | |
import os | |
import argparse | |
import csv |
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
jaanus@jaanus-imac ~/D/electron> git diff | |
diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm | |
index 64f7c11..357c305 100644 | |
--- a/atom/browser/native_window_mac.mm | |
+++ b/atom/browser/native_window_mac.mm | |
@@ -352,7 +352,7 @@ NativeWindowMac::NativeWindowMac( | |
options.Get(switches::kStandardWindow, &useStandardWindow); | |
NSUInteger styleMask = NSTitledWindowMask | NSClosableWindowMask | | |
- NSMiniaturizableWindowMask | NSResizableWindowMask; |
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
jaanus@jaanus-imac ~/D/electron> git diff | |
diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm | |
index 64f7c11..922cf64 100644 | |
--- a/atom/browser/native_window_mac.mm | |
+++ b/atom/browser/native_window_mac.mm | |
@@ -352,7 +352,7 @@ NativeWindowMac::NativeWindowMac( | |
options.Get(switches::kStandardWindow, &useStandardWindow); | |
NSUInteger styleMask = NSTitledWindowMask | NSClosableWindowMask | | |
- NSMiniaturizableWindowMask | NSResizableWindowMask; |
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
<html> | |
<head> | |
<title>Events</title> | |
<style type="text/css"> | |
div { | |
font-family: HelveticaNeue, Helvetica, Arial, sans-serif; | |
padding-left: 1em; | |
} |
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
#if TARGET_OS_IPHONE | |
@import UIKit; | |
#define JKColor UIColor | |
#define JKFont UIFont | |
#else | |
@import AppKit; | |
#define JKColor NSColor | |
#define JKFont NSFont | |
#endif |
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 <Foundation/Foundation.h> | |
static void *ProgressObserverContext = &ProgressObserverContext; | |
@interface MyObject: NSObject | |
@property (strong, nonatomic) NSProgress *progress; | |
@end |
NewerOlder