Skip to content

Instantly share code, notes, and snippets.

View wonkwh's full-sized avatar
πŸ’­
I may be slow to respond.

wonkwh wonkwh

πŸ’­
I may be slow to respond.
View GitHub Profile
@ebaker355
ebaker355 / LocalizeStringsFromAndroid.rb
Created July 31, 2012 14:41
Translate Android strings.xml files to iOS Localizable.strings files
#!/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
@keyboardsurfer
keyboardsurfer / .gitignore
Last active December 11, 2019 01:55
Android gitignore
# 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
@pocketkk
pocketkk / Swift - Sort by date.swift
Created July 27, 2014 17:51
Swift - Sort objects by date field
@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
}
@Star-Lord-XIII
Star-Lord-XIII / SwiftInST3.md
Last active November 11, 2024 14:05
Running Swift scripts from Sublime Text 3 in MacOSX10.11

##Adding Swift Build System

  • Open Sublime Text 3
  • Go To Preferences > Browse Packages...
  • Add a file named Swift.sublime-build inside Packages directory.
  • Copy the following script in 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.


Effective Engineer - Notes

What's an Effective Engineer?

@staltz
staltz / music.md
Last active November 23, 2024 22:31
coding music

Not for everyone. Each programmer has their own appreciation of what is good coding music.

For when I need to think deep, debug something, or design

(From most influential to least)

@lifthrasiir
lifthrasiir / inquiry.md
Last active July 30, 2019 13:15
"ꡬ글, 'https' 채택 μ•ˆν•œ λˆ„λ¦¬μ§‘μ— μ•ˆμ „ν•˜μ§€ μ•Šμ€ κ³³ '낙인'" 기사에 λŒ€ν•œ 의견

μ•„λž˜ 메일은 2017-02-12 21:43(μ΄ν•˜ ν•œκ΅­ ν‘œμ€€μ‹œ)에 ν•œκ²¨λ ˆ 기사에 λŒ€ν•œ μ˜κ²¬μœΌλ‘œμ„œ 기사에 μ œμ‹œλœ κΉ€μž¬μ„­ 기자의 λ©”μΌλ‘œ 보낸 λ‚΄μš©μ΄λ‹€. λ©”μΌμ—μ„œ 사싀 관계 λ“±μ˜ 였λ₯˜κ°€ μžˆλ‹€λ©΄ λͺ¨λ‘ λ‚˜μ˜ μ‹€μˆ˜μ΄λ‹€.

2017-02-13 14:53에 λ§λΆ™μž„: 더 이상 gistλ₯Ό λΉ„κ³΅κ°œλ‘œ ν•  μ΄μœ κ°€ μ—†μ–΄μ‘ŒμœΌλ―€λ‘œ 곡개둜 μ „ν™˜. 이 메일에 λŒ€ν•œ 닡변은 λ°›μ•˜μœΌλ‚˜ κ³΅κ°œν•  만큼 μ€‘μš”ν•œ 반둠이 λ“€μ–΄ μžˆμ§„ μ•ŠμœΌλ©° 곡개 여뢀도 묻지 μ•Šμ•˜μœΌλ―€λ‘œ κ³΅κ°œν•˜μ§€ μ•ŠλŠ”λ‹€. μ•„λž˜ κΈ€ μžμ²΄μ—λ„ λ‹€μ–‘ν•œ λΉ„λ¬Έκ³Ό μ˜€μžκ°€ μžˆμœΌλ‚˜ 본래 보낸 λ‚΄μš©μ„ 살리기 μœ„ν•΄ μ „ν˜€ μˆ˜μ •μ„ ν•˜μ§€ μ•ŠκΈ°λ‘œ ν–ˆμŒμ„ μ–‘ν•΄ λ°”λžŒ.

2017-02-13 19:00에 λ§λΆ™μž„: 이 κΈ°μ‚¬μ˜ ν›„μ†μœΌλ‘œ ꡬ글코리아 츑의 κΈ°μžκ°„λ‹΄νšŒκ°€ μ˜¬λΌκ°”λ‹€. μƒˆ 기사에 λŒ€ν•΄μ„œλŠ” νŠΉμ΄ν•œ 게 μ—†μœΌλ―€λ‘œ λ…Έμ½”λ©˜νŠΈ. λ˜ν•œ μœ„μ˜ 기사 링크λ₯Ό λ―Έλ””μ–΄λ‹€μŒμ—μ„œ ν•œκ²¨λ ˆ μ›Ήμ‚¬μ΄νŠΈλ‘œ 가도둝 μˆ˜μ •.

원문

μ•ˆλ…•ν•˜μ‹­λ‹ˆκΉŒ, κ·€ν•˜κ»˜μ„œ μž‘μ„±ν•˜μ‹  (λ¬Όλ‘  μ €λŠ” κ·Έ μ§„μœ„λ₯Ό μ•Œ 수 μ—†μŠ΅λ‹ˆλ‹€λ§Œ, 적어도 κ·Έλ ‡κ²Œ λ‚˜μ™€ μžˆλŠ”) 기사에 λŒ€ν•œ μ˜κ²¬μ„ μ œκΈ°ν•˜κ³ μž 메일을 μ”λ‹ˆλ‹€. 이 메일은 μ €μ˜ 개인 의견이며 μ €λ₯Ό κ³ μš©ν•˜κ³  μžˆλŠ” νšŒμ‚¬λ‚˜ 단체 λ“±μ˜ μ˜κ²¬μ„ μ „ν˜€ λŒ€λ³€ν•˜μ§€ μ•ŠμŒμ„ ν˜Ήμ‹œλ‚˜ μ‹Άμ§€λ§Œ 미리 λ°ν˜€ λ‘‘λ‹ˆλ‹€.

@lattner
lattner / TaskConcurrencyManifesto.md
Last active June 17, 2025 04:35
Swift Concurrency Manifesto
//: 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)
}
@npu3pak
npu3pak / fix_twitter_warnings.sh
Last active August 20, 2023 16:39
This script fixes all TwitterKit related warnings in XCode 10.1. Add new run script build phase with this code:
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