##Adding Swift Build System
- Open Sublime Text 3
- Go To
Preferences > Browse Packages...
- Add a file named
Swift.sublime-build
insidePackages
directory. - Copy the following script in
Swift.sublime-build
file.
{
"shell_cmd": "xcrun swift $file",
#!/usr/bin/env ruby | |
# gist: https://gist.github.com/3217498 | |
# This script can be called from an Xcode 'Run Script' build phase at the | |
# beginning of the build process, like this: | |
# | |
# ${PROJECT_DIR}/LocalizeStringsFromAndroid.rb ${PROJECT_NAME} | |
# | |
# This script should be placed in the same directory as your .xcodeproj |
# Copyright: Benjamin Weiss (keyboardsurfer) https://github.com/keyboardsurfer | |
# Under CC-BY-SA V3.0 (https://creativecommons.org/licenses/by-sa/3.0/legalcode) | |
# built application files | |
*.apk | |
*.ap_ | |
*.jar | |
!gradle/wrapper/gradle-wrapper.jar | |
# lint folder |
@objc(Note) | |
class Note: NSManagedObject { | |
@NSManaged var content: String | |
@NSManaged var date: NSDate | |
@NSManaged var business: Business | |
@NSManaged var coldcall: ColdCall | |
@NSManaged var contact: Contact | |
} |
##Adding Swift Build System
Preferences > Browse Packages...
Swift.sublime-build
inside Packages
directory.Swift.sublime-build
file.{
"shell_cmd": "xcrun swift $file",
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
Not for everyone. Each programmer has their own appreciation of what is good coding music.
(From most influential to least)
μλ λ©μΌμ 2017-02-12 21:43(μ΄ν νκ΅ νμ€μ)μ ν겨λ κΈ°μ¬μ λν μ견μΌλ‘μ κΈ°μ¬μ μ μλ κΉμ¬μ κΈ°μμ λ©μΌλ‘ λ³΄λΈ λ΄μ©μ΄λ€. λ©μΌμμ μ¬μ€ κ΄κ³ λ±μ μ€λ₯κ° μλ€λ©΄ λͺ¨λ λμ μ€μμ΄λ€.
2017-02-13 14:53μ λ§λΆμ: λ μ΄μ gistλ₯Ό λΉκ³΅κ°λ‘ ν μ΄μ κ° μμ΄μ‘μΌλ―λ‘ κ³΅κ°λ‘ μ ν. μ΄ λ©μΌμ λν λ΅λ³μ λ°μμΌλ 곡κ°ν λ§νΌ μ€μν λ°λ‘ μ΄ λ€μ΄ μμ§ μμΌλ©° κ³΅κ° μ¬λΆλ λ¬»μ§ μμμΌλ―λ‘ κ³΅κ°νμ§ μλλ€. μλ κΈ μ체μλ λ€μν λΉλ¬Έκ³Ό μ€μκ° μμΌλ λ³Έλ λ³΄λΈ λ΄μ©μ μ΄λ¦¬κΈ° μν΄ μ ν μμ μ νμ§ μκΈ°λ‘ νμμ μν΄ λ°λ.
2017-02-13 19:00μ λ§λΆμ: μ΄ κΈ°μ¬μ νμμΌλ‘ ꡬκΈμ½λ¦¬μ μΈ‘μ κΈ°μκ°λ΄νκ° μ¬λΌκ°λ€. μ κΈ°μ¬μ λν΄μλ νΉμ΄ν κ² μμΌλ―λ‘ λ Έμ½λ©νΈ. λν μμ κΈ°μ¬ λ§ν¬λ₯Ό λ―Έλμ΄λ€μμμ ν겨λ μΉμ¬μ΄νΈλ‘ κ°λλ‘ μμ .
μλ νμλκΉ, κ·νκ»μ μμ±νμ (λ¬Όλ‘ μ λ κ·Έ μ§μλ₯Ό μ μ μμ΅λλ€λ§, μ μ΄λ κ·Έλ κ² λμ μλ) κΈ°μ¬μ λν μ견μ μ κΈ°νκ³ μ λ©μΌμ μλλ€. μ΄ λ©μΌμ μ μ κ°μΈ μ견μ΄λ©° μ λ₯Ό κ³ μ©νκ³ μλ νμ¬λ λ¨μ²΄ λ±μ μ견μ μ ν λλ³νμ§ μμμ νΉμλ μΆμ§λ§ 미리 λ°ν λ‘λλ€.
Author: Chris Lattner
//: Playground - noun: a place where people can play | |
import UIKit | |
import PlaygroundSupport | |
class Responder: NSObject { | |
@objc func segmentedControlValueChanged(_ sender: UISegmentedControl) { | |
UIView.animate(withDuration: 0.3) { | |
buttonBar.frame.origin.x = (segmentedControl.frame.width / CGFloat(segmentedControl.numberOfSegments)) * CGFloat(segmentedControl.selectedSegmentIndex) | |
} |
readonly MODULEMAP="${PODS_ROOT}/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap" | |
readonly HEADER="${PODS_ROOT}/TwitterCore/iOS/TwitterCore.framework/Headers/TwitterCore.h" | |
if ! grep -q "TwitterCore_Private" "${MODULEMAP}"; then | |
cat >"${MODULEMAP}" <<EOL | |
module TwitterCore_Private { | |
} | |
EOL | |
fi |