- 0 次评分 685 次查看 45 次下载
- 分类:未知未知
- 标签:
- 时间:2020年12月19日 更新 文件大小: 12.87 MB
- 开发商:ZeeZide GmbH 官网首页
- 支持类型: Mac Mac OS X10.12或更高版本
- 支持语言:英文等
来自Mac App Store官方介绍
CodeCows is an Xcode extension which allows you to add hundreds of ASCII cows to your source code. The CowsyEditor extension is context-aware and detects whether you want to use a cow as a string, within a comment or elsewhere.
It can insert a randow cow, a personalized cow-of-the-day, or one from the list of your favorite cows.
The Xcode extension requires Xcode 8.1 running on
macOS 10.12. After installation you may need to enable the Xcode extension in the macOS “System Preferences” (“Extensions” widget).
Restart Xcode and it should show up in the “Editor” menu of Xcode.
We recommend to assign nice keyboard shortcuts to the extension commands. To do that, go to the “Key Bindings” preferences of Xcode, and search for “cow” in the Filter field. You can then assign great shortcuts to your cow commands - e.g. we recommend Cmd-c for Vaca.
Don't be sad if you can't use Xcode 8.1 + Sierra just yet: CodeCows also works as a regular macOS service in pretty much any application handling text (just use the Services menu, optionally with some text selected).
Other extras include a “Cow of the Day” widget for the
macOS Notification Center, and broad copy&paste and drag&drop support (drag cows to the Finder, or into Preview, etc). Plus a beautiful “Radiactive” mode which makes the cows glow in the dark.
The ASCII art itself is licensed MIT © Sindre Sorhus,
use it accordingly.
Checkout the support page in case you have any questions or feedback. Jsking.
It can insert a randow cow, a personalized cow-of-the-day, or one from the list of your favorite cows.
The Xcode extension requires Xcode 8.1 running on
macOS 10.12. After installation you may need to enable the Xcode extension in the macOS “System Preferences” (“Extensions” widget).
Restart Xcode and it should show up in the “Editor” menu of Xcode.
We recommend to assign nice keyboard shortcuts to the extension commands. To do that, go to the “Key Bindings” preferences of Xcode, and search for “cow” in the Filter field. You can then assign great shortcuts to your cow commands - e.g. we recommend Cmd-c for Vaca.
Don't be sad if you can't use Xcode 8.1 + Sierra just yet: CodeCows also works as a regular macOS service in pretty much any application handling text (just use the Services menu, optionally with some text selected).
Other extras include a “Cow of the Day” widget for the
macOS Notification Center, and broad copy&paste and drag&drop support (drag cows to the Finder, or into Preview, etc). Plus a beautiful “Radiactive” mode which makes the cows glow in the dark.
The ASCII art itself is licensed MIT © Sindre Sorhus,
use it accordingly.
Checkout the support page in case you have any questions or feedback. Jsking.
…更多…
v1.0.10版本新功能
- Over here: CodeCows. No cow has been harmed for the development of this application. We prefer chicken, ostrich and duck confit.
- Awesome native Xcode extensions. Awesome native Xcode extensions. Feel free to contribute! Please submit a pull request to improve this file.
- CodeCows is an Xcode extension which allows you to add hundreds of ASCII cows to your source code. The CowsyEditor extension is context-aware and detects whether you want to use a cow as a string, within a comment or elsewhere.
CodeCows is an Xcode extension which allows you to add hundreds of ASCII cows to your source code. After installation you may need to enable the Xcode extension in the macOS “System Preferences” (“Extensions” widget). Trusted Windows (PC) download K-Lite Codec Pack Full 16.1. Virus-free and 100% clean download. Get K-Lite Codec Pack Full alternative downloads.
All cows now moo natively on Apple silicon. No functional changes.
…更多…
相关截图 图片数: 5 张(点击图片查看大图)
- 上一条:1 Second
- 下一条:Veusz
下载列表 文件数: 1文件大小: 12.87 MB举报
文件名 | 版本 | 下载次数 | 上传时间 | 上传者 | 下载类型 | 操作 | |
---|---|---|---|---|---|---|---|
0. | http://zeezide.com/en/products/codecows/index.html#store官网下载 | 最新 | - | - | 官方 | Mac | 点击下载 |
1. | Mac App Store官方下载免费下载 | v1.0.10 | 45 | 2020-12-19 | ZeeZide GmbH | Mac | 商店下载 |
苹果软件园为积极推动苹果电脑在国内的发展,倡导资源共享,软件汉化。所有下载链接均来自网友分享试用,请24小时内删除!希望大家有条件的积极支持正版. 如果你的网盘有这个App的资源,欢迎共享下载地址哦,只需要几秒钟哦有网盘资源的点击感谢分享下载地址 | |||||||
↑ 如果您觉得从我们的分享中得到了帮助,并且希望我们持续发展下去,求打赏(ღ♡‿♡ღ)~谢谢您的鼓励。 |
垃圾评论太多,防不胜防,So关闭评论,各位亲有问题直接加我QQ(977307209)反馈吧
Creating Kituraendpoints using the tools provided by IBM (the appor
kitura init
) is quite inconvenient.UsingSwiftXcodeyou can do the same straight from Xcode,w/o touching the shell during development.We’ll show you how!Update 2019-06-25: Xcode 11 now includes some Swift Package Manager supportwhich obsoletes some parts of this.It lacks some features of SwiftXcode (like the Kitura project templates),but those could be added separately.
When you are starting with Swift on Server, we generally recommend you eitheruse SwiftNIO directly,or a lightweight shim such asMicroExpress.However, if you really want to use a more complex framework or need properprofessional support, we tend to suggest theKitura framework by IBM.
An annoyance with Kitura is the development flow involving
kitura init
in combination with the dreadedswift package generate-xcodeproj
.To fix thatSwiftXcode was created to support Swift Package Managerprojects directly from within Xcode. And hence: Kitura.Installing SwiftXcode & The Kitura Image
Presumably you have installed it already, but if not,grab Homebrew - a package manager for macOS.Using Homebrew, install theSwiftXcode Kitura Image:
What this does is:
- It installs SwiftXcode, which is a set ofshell scripts and Xcode templates to integrate Swift Package ManagerintoXcode.
- It builds and installs the SwiftXcode Kitura Image.
swift xcode link-templates
ensures the image Xcode templates are madeavailable to Xcode.
What is the “Kitura Image”? It is two things:
- A set of Kitura specific Xcode project and file templates. If you create a new projectwithin Xcode
(⌘-Shift-N) , you’ll get the “macOS / Server / Kitura Endpoint”project.And if you create a new file (⌘-n), you’ll get the“Server / Kitura Route”file template. We’ll show you below. - It fetches and precompiles Kitura and its dependencies, just once.Without an image, every new Kitura projects needs to fetch and compileall the required dependencies, again and again.The Kitura Image does this once, so when you create a new Kitura Xcodeproject, all the Kitura framework stuff is readily available and onlyyour own code needs to get compiled.
It is not only integrated into Xcode, it is also much faster to get goingbecause all the dependencies are fetched and compiled just once.
But let’s see how that works.Now that you have theSwiftXcode Kitura Imageinstalled:
Building an ASCII Cow Endpoint
As usual we are going to build a Kitura application that is going to servea splendid set of ASCII cows:
Also a good chance to point out our excellentcows applications, available for free on the appstore:CodeCows (macOS)andASCII Cows (iOS).
Creating the project
Within Xcode, create a new project, ⌘-Shift-N or use the menu:
Select the macOS tab and scroll down to the new “Server” section(this one is also showing theSwift NIOandSwiftObjects images),select the “Kitura Endpoint” template.
Pro-tip: You can also start typing “Kit”to quickly filter the available templates down to the important stuff):
You’ll get to a wizard showing the Kitura template options,just give the product a name, like
KituraCows
, and continue:Choose some arbitrary place where you want to store the project:
And Xcode will create you a new project with all the basic Kitura boilerplate:
Pretty much what
kitura init
does. The Package.swift
looks as usual:And so do the other files created by the project template.
Running the project
Now just press the “Run” button in Xcode. This will compilethe sources in the project and run the application.Notice how it doesn’t have to fetch or compile Kitura and its dependencies,those are already contained in the Kitura image and will be unpackedas part of the process.So all that is a matter of seconds:
Kitura is running on port
8080
(if you need a different port, e.g. themacOS Apache might be running on 8080
,just set the PORT
environment variable in the Xcode scheme).You can now access the default setup usinghttp://localhost:8080/:Very well. Seconds from project creation to a running Kitura, all withinXcode.
Making a Cows Endpoint
But we don’t want the Kitura default page, we want proper ASCII beef!To get there, we need to edit the
Package.swift
file andimport the cows package:Don’t forget that SPM insist that you repeat yourself and add the
cows
module as a target dependency as well!Adding a “cows” Route
We could just add the necessary code to the existing files, but lets go the “Create Kitura Route”, well, route. For demonstrationpurposes.
Select the “Routes” group in Xcode and press ⌘-n or do it using the menu:
Select the “Routes” group in Xcode and press ⌘-n or do it using the menu:
Again, locate the “Server” section in the “macOS” tab and chose the“Kitura REST Route” option:
This will popup the wizard for that template, give the Route a name “Cows”and a URL prefix
/cows
. We don’t need Codable routing here:Finally select where the file should go. It doesn’t really matter, but putit into the Routes folder created by the project template:
Xcode creates a new file with all the routing typical for a REST endpoint:
Which we are going to modify, so that it delivers 0xBEEF!We need to
import cows
, and modify the GET
route to returnthe result of the cows.vaca()
function - which returns a random ASCIIcow as a string:Finally we need to register those routes in the
postInit
function ofthe Kitura application object:Accessing the Cows
Just press the Xcode run button again. This time it has to do morework. It has to fetch the cowspackage, as well as to reassemble the Kitura dependencies. Again, this only happens once for each
Package.swift
change.Hit http://localhost:8080/cows/ in yourfavorite browser (hope it’s not Mozilla):
and you’ll get served. Hit reload to get another random cow:
Closing Notes
We hope you like SwiftXcodeand what it does,and we welcome PRs improving the existing images,or adding new images!
Code Cow
Something doesn’t work for you? Contact us!
Code Cost
Links
- MicroExpresspackage on GitHub (contains branches of all steps above!)
- cows
- CodeCows (macOS)
- ASCII Cows (iOS)
- Other cool ARI projects:
- Swift NIO IRC (an IRC server, web client, Eliza chatbot written in Swift NIO)
- Swift NIO Redis(a Redis in-memory database server, written in Swift NIO)
- SwiftObjects (WebObjects API in Swift,WebObjects intro)
- ZeeQL (an EOF/CoreData like framework for Swift)
- mod_swift (write Apache modules in Swift!)
- Noze.io (Node.js like, but typesafe, async-IO streams)
Contact
Hey, we love feedback!Twitter, any of those:@helje5,@ar_institute.
Email: [email protected].
Email: [email protected].