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
// See: https://apple.stackexchange.com/questions/328329/is-there-a-way-via-the-command-line-to-cause-icloud-files-to-download | |
import Foundation | |
func main() { | |
let fm = FileManager.default | |
for path in CommandLine.arguments[1...] { | |
let url = NSURL.fileURL(withPath: path) | |
guard fm.fileExists(atPath: url.path) else { |
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 swift | |
import Cocoa | |
// due to the new constraint syntax | |
@available(OSX 10.11, *) | |
class AppDelegate: NSObject, NSApplicationDelegate { | |
let window = NSWindow() | |
let windowDelegate = WindowDelegate() |
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
/* | |
Execute script using the interpreter: | |
$ swift appnap.swift "Skype" | |
or compile it first then run: | |
$ swiftc -O appnap.swift | |
$ ./appnap "(?i)skype" # (?i) — ignore case | |
*/ | |
import AppKit |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
<title>Nutrient Database Explorer</title> | |
<link rel="stylesheet" type="text/css" href="parallel.css" /> | |
</head> | |
<body> | |
<div id="header"> | |
<h1>Nutrient Explorer</h1> |
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
From ee719ac4af813f1474c2c215a1c01a0f517c2011 Mon Sep 17 00:00:00 2001 | |
From: anongit <anongit@users.noreply.github.com> | |
Date: Mon, 3 Aug 2015 20:46:53 +0500 | |
Subject: [PATCH] Add customizable display's contents margins | |
--- | |
src/EditProfileDialog.cpp | 10 +++++++++ | |
src/EditProfileDialog.h | 1 + | |
src/EditProfileDialog.ui | 57 ++++++++++++++++++++++++++++++++--------------- | |
src/Profile.cpp | 2 ++ |