Skip to content

Instantly share code, notes, and snippets.

View numanayhan's full-sized avatar
🏈
Coding

Numan Ayhan numanayhan

🏈
Coding
  • Istanbul
View GitHub Profile
@jacobbubu
jacobbubu / ISOLanguageCodes.csv
Created February 15, 2012 14:30
iOS Language Codes
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
aa Afar
ab Abkhazian
ace Achinese
ach Acoli
ada Adangme
ady Adyghe
ae Avestan
af Afrikaans
afa Afro-Asiatic Language
afh Afrihili
@jacobbubu
jacobbubu / ioslocaleidentifiers.csv
Created February 15, 2012 14:41
iOS Locale Identifiers
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)
@MarcDiethelm
MarcDiethelm / Contributing.md
Last active May 1, 2024 18:06
How to contribute to a project on Github

This text now lives at https://github.com/MarcDiethelm/contributing/blob/master/README.md. I turned it into a Github repo so you can, you know, contribute to it by making pull requests.


Contributing

If you want to contribute to a project and make it better, your help is very welcome. Contributing is also a great way to learn more about social coding on Github, new technologies and and their ecosystems and how to make constructive, helpful bug reports, feature requests and the noblest of all contributions: a good, clean pull request.

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 23, 2024 09:28
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@bahattincinic
bahattincinic / gist:5a8399ac0ca6d911c374
Last active December 13, 2019 06:38
Firebase & Knockout Realtime Monitoring
<!DOCTYPE html>
<html>
<head>
<title>Firebase & Knockout Test</title>
<link rel="stylesheet" type="text/css"
href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<script src="https://cdn.firebase.com/v0/firebase.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.1.0/knockout-min.js"></script>
<script type="text/javascript"
src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
@bwhiteley
bwhiteley / gist:049e4bede49e71a6d2e2
Last active March 17, 2024 13:10
Initialize Swift subclass of UIView, designed in .xib
// Create CustomView.xib, set File's Owner to CustomView.
// Link the top level view in the XIB to the contentView outlet.
class CustomView : UIView {
@IBOutlet private var contentView:UIView?
// other outlets
override init(frame: CGRect) { // for using CustomView in code
super.init(frame: frame)
self.commonInit()
@goocarlos
goocarlos / folderSize.swift
Created January 14, 2015 14:30
folderSize Swift Implementation
class func folderSize(folderPath:String) -> UInt{
// @see http://stackoverflow.com/questions/2188469/calculate-the-size-of-a-folder
let filesArray:[String] = NSFileManager.defaultManager().subpathsOfDirectoryAtPath(folderPath, error: nil)! as [String]
var fileSize:UInt = 0
for fileName in filesArray{
let filePath = folderPath.stringByAppendingPathComponent(fileName)
let fileDictionary:NSDictionary = NSFileManager.defaultManager().attributesOfItemAtPath(filePath, error: nil)!
@JaviLorbada
JaviLorbada / FRP iOS Learning resources.md
Last active April 8, 2024 18:07
The best FRP iOS resources.

Videos

@krin-san
krin-san / CoreTelephonyCheck.swift
Created November 9, 2015 12:39
Check if iOS device is capable to call / send SMS message
// Swift version of the code from http://stackoverflow.com/a/30335594/1986600
import CoreTelephony
override func awakeFromNib() {
super.awakeFromNib()
let isCapableToCall: Bool
if UIApplication.sharedApplication().canOpenURL(NSURL(string: "tel://")!) {
// Check if iOS Device supports phone calls
@maxcampolo
maxcampolo / DropShadow.swift
Created March 4, 2016 19:45
Add a drop shadow to a UIView
let shadowPath = UIBezierPath(rect: self.myView.layer.bounds)
self.myView.layer.masksToBounds = false
self.myView.layer.shadowColor = UIColor.blackColor().CGColor
self.myView.layer.shadowOffset = CGSizeMake(0.0, -2.0)
self.myView.layer.shadowOpacity = 0.3
self.myView.layer.shadowRadius = 1.0
self.myView.layer.shadowPath = shadowPath.CGPath