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
--- canvas.original.py 2024-11-09 01:08:48 | |
+++ canvas.py 2024-11-09 01:09:31 | |
@@ -523,12 +523,12 @@ | |
p.setPen(self.drawing_rect_color) | |
brush = QBrush(Qt.BDiagPattern) | |
p.setBrush(brush) | |
- p.drawRect(left_top.x(), left_top.y(), rect_width, rect_height) | |
+ p.drawRect(int(left_top.x()), int(left_top.y()), int(rect_width), int(rect_height)) | |
if self.drawing() and not self.prev_point.isNull() and not self.out_of_pixmap(self.prev_point): |
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 Cocoa | |
protocol CreatableFromNSAppleEventDescriptor { | |
static func get(a:NSAppleEventDescriptor) throws -> Self | |
} | |
extension Int : CreatableFromNSAppleEventDescriptor { | |
static func get(a:NSAppleEventDescriptor) throws -> Self { | |
return Int(a.int32Value) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/* | |
* vdsp_int2float.c | |
* AccelerateTest | |
* | |
* Created by sonson on 10/08/15. | |
* Copyright 2010 __MyCompanyName__. All rights reserved. | |
* | |
*/ | |
#include "lapack_linearEquation.h" |
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
//: A Cocoa based Playground to present user interface | |
import AppKit | |
import PlaygroundSupport | |
let nibFile = NSNib.Name("MyView") | |
var topLevelObjects : NSArray? | |
Bundle.main.loadNibNamed(nibFile, owner:nil, topLevelObjects: &topLevelObjects) | |
let views = (topLevelObjects as! Array<Any>).filter { $0 is NSView } |
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 | |
import CoreMIDI | |
import PlaygroundSupport | |
// | |
// CoreMIDI sample control for ZOOM MS-50G/60B/70CDR | |
// Using deprecated APIs | |
// |
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 | |
import CoreMIDI | |
// | |
// CoreMIDI sample control for ZOOM MS-50G/60B/70CDR | |
// | |
import PlaygroundSupport | |
PlaygroundPage.current.needsIndefiniteExecution = true |
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
class DummyViewController: UIViewController { | |
deinit { | |
print(#function) | |
} | |
required init?(coder: NSCoder) { | |
print(#function) | |
super.init(coder: coder) | |
} |
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 let obj = CommandLine.arguments.first { | |
print(obj) | |
} |
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
tccd Prompting policy for hardened runtime; service: kTCCServiceAppleEvents requires entitlement com.apple.security.automation.apple-events but it is missing for accessing={<TCCDProcess: identifier=com.sonson.HomeConMenu.macOS, pid=632, auid=501, euid=501, binary_path=/Applications/HomeConMenu.app/Contents/MacOS/HomeConMenu>}, requesting={<TCCDProcess: identifier=com.apple.appleeventsd, pid=331, auid=55, euid=55, binary_path=/System/Library/CoreServices/appleeventsd>}, |
NewerOlder