Skip to content

Instantly share code, notes, and snippets.

View ceprus's full-sized avatar
:octocat:
work ouf

Sergey Sergeyev ceprus

:octocat:
work ouf
  • Newsiberian
View GitHub Profile
@RoyalIcing
RoyalIcing / 1-example.swift
Created May 27, 2016 13:36
Swift Dynamic Properties
public struct Person {
public var firstName: String
public var middleName: String?
public var lastName: String
public var ageInYears: Int
public var fullName: String {
return [firstName, middleName, lastName].flatMap{ $0 }.joinWithSeparator(" ")
}
}
@tanhauhau
tanhauhau / decreaseITunesVolume.scpt
Created September 13, 2015 09:07
Adjust iTunes volume through Applescript
tell application "iTunes"
set vol to sound volume
set vol to vol - 10
if vol is less than 0 then
set vol to 0
end if
set the sound volume to vol
end tell
@jacks205
jacks205 / VideoBlurBackground.swift
Last active September 18, 2020 08:58
Video Blur Background in Swift
//
// ViewController.swift
// citizencrossfit
//
// Created by Mark Jackson on 17/11/2014.
// Copyright (c) 2014 Mark Jackson. All rights reserved.
//
import UIKit
import Alamofire
@ncreated
ncreated / PrintLocalesController.m
Last active July 1, 2025 08:38
List of iOS locales with currency formatting.
//
// PrintLocalesController.m
// NSFormatterTest
//
// Created by Maciek Grzybowski on 02.04.2014.
//
#import "PrintLocalesController.h"
@interface PrintLocalesController ()