- Open Automator
- Create a new Service
- Add a
Run Shell Script
action - Set input to Service receives selected
files or folders
inany application
- Set the script action to
/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n $@
- Set Pass input to
as arguments
- Save as
Open in Sublime Text
-- TermTheme.scpt | |
-- Ken Hansen 02/2012 | |
-- Sets theme of current terminal window/tab | |
----------------------- | |
-- Arguments | |
----------------------- | |
-- If a theme name is provided on the command line then set to that | |
-- Example | |
-- osascript TermTheme.scpt Grass |
/* Assumes your class has the following instance variables: | |
AVCaptureSession *_videoSession; | |
AVCaptureDevice *_cameraDevice; | |
AVCaptureStillImageOutput *_imageOutput; | |
AVCaptureConnection *_avConnection; | |
*/ | |
-(void) setupStillVideoCaptureSession |
Author: https://www.cyanhall.com/
Core Animation's original name is Layer Kit
Core Animation is a compositing engine; its job is to compose different pieces of visual content on the screen, and to do so as fast as possible. The content in question is divided into individual layers stored in a hierarchy known as the layer tree
. This tree forms the underpinning for all of UIKit, and for everything that you see on the screen in an iOS application.
In UIView, tasks such as rendering, layout and animation are all managed by a Core Animation class called CALayer
. The only major feature of UIView that isn’t handled by CALayer is user interaction.
There are four hierarchies, each performing a different role:
You are going to create a very simple rock paper scissors game. It will consist of three buttons, one for each of the moves you can play. Tap on one of these buttons to chose your move, then the iPhone will randomly choose a move and a you either win, lose, or 👔.
Rules of Rock Paper Scissors:
- Each sign can beat one (and only one) other:
- Rock smashes scissors.
// | |
// CapturedImageSampler.swift | |
// ARKitTest | |
// | |
// Created by Joshua Sullivan on 9/22/17. | |
// Copyright © 2017 Joshua Sullivan. All rights reserved. | |
// | |
import UIKit | |
import ARKit |