Skip to content

Instantly share code, notes, and snippets.

Ahmet Karalar akaralar

  • Istanbul, Turkey
Block or report user

Report or block akaralar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@akaralar
akaralar / reverse.swift
Created Aug 22, 2019
array-reverse-foreach
View reverse.swift
var numbers = [1, 2, 3, 4, 5]
numbers.forEach { num in
print("num: \(num)")
print("numbers: \(numbers)")
if num == 2 {
numbers = numbers.reversed()
}
print("numbers: \(numbers)")
View aoc-day07.swift
import Foundation
let input = """
Step X must be finished before step C can begin.
Step C must be finished before step G can begin.
Step F must be finished before step G can begin.
Step U must be finished before step Y can begin.
Step O must be finished before step S can begin.
Step D must be finished before step N can begin.
Step M must be finished before step H can begin.
@akaralar
akaralar / keybase.md
Created Oct 5, 2017
keybase.io proof
View keybase.md

Keybase proof

I hereby claim:

  • I am akaralar on github.
  • I am akaralar (https://keybase.io/akaralar) on keybase.
  • I have a public key ASDSU8BbxnG9RIOwq0y7uAUzfZt1W6pFpzFAlYt6fhosvgo

To claim this, I am signing this object:

View gist:4f244923dc294eea9817
var data1 = [1, 4, 7]
var data2 = [123, -2, 477, 3, 14, 6551]
/*
* Write a recursive function which loops over the list adding the first element
* to all remaining elements
* until there is only 1 element remaining which is then returned
*/
func doStuff(input: [Int]) -> Int {
View gist:11336111
Pod::Spec.new do |s|
s.name = "PayPal-iOS-SDK"
s.version = "2.0.5"
s.summary = "Accept credit cards and PayPal in your iOS app."
s.description = " The PayPal iOS SDK provides a software library that makes it easy for an iOS developer to accept both credit cards and PayPal directly within their mobile app."
s.homepage = "https://developer.paypal.com/webapps/developer/docs/integration/mobile/mobile-sdk-overview/"
s.license = { :type => 'Commercial', :file => 'acknowledgments.md' }
s.author = 'Paypal'
s.source = { :git => "https://github.com/paypal/PayPal-iOS-SDK.git", :tag => "2.0.5" }
s.platform = :ios, '6.0'
You can’t perform that action at this time.