Skip to content

Instantly share code, notes, and snippets.

View cagricolak's full-sized avatar
:octocat:
I may be slow to respond.

Çağrı ÇOLAK cagricolak

:octocat:
I may be slow to respond.
View GitHub Profile
@cagricolak
cagricolak / iterm2.md
Created November 28, 2019 05:58 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@cagricolak
cagricolak / gist:e406ec2abea6b25a1fbba34e182e9f0c
Created September 24, 2019 13:13 — forked from steipete/ios-xcode-device-support.sh
Using iOS 13/13.1 devices with Xcode 10.3 (instead of Xcode 11)
// The trick is to link the DeviceSupport folder from the beta to the stable version.
// sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :)
// Xcode 10.3 to Xcode 11 Beta
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.0 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
// Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions
// For iOS 13.1 this trick currently seems to work (as of beta 2):
@cagricolak
cagricolak / spelling.swift
Created July 17, 2019 07:22 — forked from airspeedswift/spelling.swift
Norvig Spellchecker in Swift
/// Translation of [Peter Norvig's spell checker](http://norvig.com/spell-correct.html) into Swift.
/// Sample input corpus [here](http://norvig.com/big.txt)
import Foundation.NSString // purely for IO, most things done with Swift.String
// pythony slicing
postfix operator ..< { }
prefix operator ..< { }
postfix func ..<<I: ForwardIndexType>(lhs: I) -> RangeStart<I> { return RangeStart(start: lhs) }
prefix func ..<<I: ForwardIndexType>(rhs: I) -> RangeEnd<I> { return RangeEnd(end: rhs) }
@cagricolak
cagricolak / basic_debugging_notes.md
Last active July 5, 2019 08:12
basic debugging notes
author: Çağrı ÇOLAK
date: 2019
title: Basic Debugging Notes from packtpub online courses.

Sarı renkli xcode issueları

varsa build error vermesi için build settings alanında treat warnings as error alanını aktif yaparsak issuelar varken build olmaz.

Print statements:

print icerisine; #file, #function, #line yazarak detaylı log alabiliriz. Bunu error exception durumları için kod yazarken kullanabiliriz.

We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
ro_MD Romanian (Moldova)