Skip to content

Instantly share code, notes, and snippets.

View bugrym's full-sized avatar
🥋
Focusing

Vladyslav bugrym

🥋
Focusing
  • Ukraine
View GitHub Profile
@LeeKahSeng
LeeKahSeng / KeychainHelper.swift
Last active April 25, 2024 13:40
Swift simple keychain helper class for iOS and macOs
// MIT License
//
// Copyright (c) 2023 Lee Kah Seng
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@jamestapping
jamestapping / gist:2fcd3b03b484923a94d0d57971a5472e
Last active March 4, 2021 14:23
Animated UIButton image array creation
func setUpAnimatedFramesButton() {
var imagesListArray :[UIImage] = []
for position in 0...27
{
let strImageName : String = "icons8-cancel-\(position)"
let image = UIImage(named:strImageName)
imagesListArray.append(image!)
}
@konnnn
konnnn / UILabel+Padding.swift
Last active February 22, 2024 13:24
Swift 4: Adding space/padding to a UILabel Programmatically and Storyboard
/*
If you use Storyboard, don't forget to set UIlabel to PaddingLabel
*/
import UIKit
class PaddingLabel: UILabel {
var topInset: CGFloat
var bottomInset: CGFloat
@felipecsl
felipecsl / restart coreaudio daemon
Last active April 24, 2024 18:39
Restart Mac OS X coreaudio daemon. Useful if you cannot change the audio output device to Airplay.
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`
# or...
sudo killall coreaudiod