Skip to content

Instantly share code, notes, and snippets.

View someguy9's full-sized avatar
🏠
Working from home

Andy Feliciotti someguy9

🏠
Working from home
View GitHub Profile
@Thibaut-B
Thibaut-B / main.js
Created October 7, 2015 13:14
Find the closest location
var cities = [
{
name: 'berlin',
latitude: '52.5167',
longitude: '13.3833',
},
{
name: 'athena',
latitude: '37.9667',
longitude: '23.7167',
@indragiek
indragiek / RandomNumbers.swift
Last active November 26, 2015 16:26
Random number generator in Swift
public struct RandomNumberGenerator: SequenceType {
let range: Range<Int>
let count: Int
public init(range: Range<Int>, count: Int) {
self.range = range
self.count = count
}
public func generate() -> GeneratorOf<Int> {