Skip to content

Instantly share code, notes, and snippets.

Working from home

Sergey Vinogradov w-i-n-s

Working from home
  • Varna, Bulgaria
View GitHub Profile
w-i-n-s /
Created May 30, 2019 — forked from adrienjoly/
Mac Os X command to restart the core audio. I needed to use this in order to fix my AirPlay issue.
# You have to restart the core audio be pasting the following line into termnal
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`
w-i-n-s / PHPhotoLibrary+SaveImage
Created Dec 12, 2018 — forked from khorbushko/PHPhotoLibrary+SaveImage
PHPhotoLibrary+SaveImage - save image with Photos Framework swift 3
View PHPhotoLibrary+SaveImage
import UIKit
import Photos
extension PHPhotoLibrary {
// MARK: - PHPhotoLibrary+SaveImage
// MARK: - Public
func savePhoto(image:UIImage, albumName:String, completion:((PHAsset?)->())? = nil) {
func save() {
w-i-n-s / CustomActivity.swift
Last active Dec 18, 2017 — forked from shu223/CustomActivity.swift
Custom UIActivity in Swift 3
View CustomActivity.swift
import UIKit
class CustomActivity: UIActivity {
var actName = ""
var actImage: UIImage?
var customActionWhenTapped:( ()-> Void)!
init(title: String, image: UIImage, performAction: @escaping (() -> ()) ) {
self.actName = title
self.actImage = image
w-i-n-s / cmakeAndTaglib
Created Nov 15, 2017 — forked from phatfly/cmakeAndTaglib
compile taglib for iOS
View cmakeAndTaglib
I wanted to document the process that I went through to compile taglib for my iOS project.
At the time of this writing I used TagLib 1.9.1
1. Download taglib at:
2. Download ios-make at:
3. The ios-make file that you need is in the toolchain directory. Copy the whole directory “toolchain” from inside the ios-make directory to taglib directory.
View generate-qr-code-ios.m
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
NSString *info = @"";
// Generation of QR code image
NSData *qrCodeData = [info dataUsingEncoding:NSISOLatin1StringEncoding]; // recommended encoding
CIFilter *qrCodeFilter = [CIFilter filterWithName:@"CIQRCodeGenerator"];
[qrCodeFilter setValue:qrCodeData forKey:@"inputMessage"];
w-i-n-s / Makefile
Created Oct 13, 2016 — forked from pietbrauer/Makefile
Shutdown and reset all iOS Simulators
View Makefile
./ 2>/dev/null; true