Skip to content

Instantly share code, notes, and snippets.

View lohenyumnam's full-sized avatar
👨‍💻
Working...

Lohen lohenyumnam

👨‍💻
Working...
View GitHub Profile

Install Swift on Ubuntu 17.10, Sublime Text 3 Installation and setup for Swift

Step 1

Install ubuntu make

sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt update

Swift Compilation with Sublime Text 3 on macOS

Adding Swift Build System

Open Sublime Text 3 Go To Preferences > Browse Packages... Create a folder "SwiftBuilder" inside Packages directory. Add a file named Swift.sublime-build inside SwiftBuilder directory. Copy the following script in Swift.sublime-build file.

@lohenyumnam
lohenyumnam / How to use CoreLocation in iOS using Swift 4.swift
Last active May 13, 2021 21:53
How to use CoreLocation in iOS using Swift 4 to get your location Speed, Floor, timestamp, Course Direction, Altitude above sea level
// How to use CoreLocation to get your location Speed, Floor, timestamp, Course Direction, Altitude above sea level
//TODO: Step 1 ####################################################################
// First of all import "CoreLocation"
import CoreLocation
//TODO: Step 2 ####################################################################

Create a Toggle Hidden Files Menu Item

  • Launch Automator
  • Select Service as the type of template to use for your new Automator task, and click the Choose button
  • In the Library pane, make sure Actions is selected, then underneath the Library item, click Utilities. This will filter the available workflow types to just those relating to utilities.
  • In the filtered list of actions, click Run Shell Script and drag it to the workflow pane.
  • At the top of the workflow pane are two drop-down menu items. Set the 'Service receives selected' to 'files or folders.' Set the 'in' to 'Finder.'
  • Copy the entire shell script command (all six lines), and use it to replace any text that may already be present in the Run Shell Script box.