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 / IntroViewController.m
Created Jun 14, 2017
UIAlertController with dictionary and blocks
View IntroViewController.m
- (IBAction)tamLanguageChangeButton:(id)sender {
__weak __typeof(self)weakSelf = self;
UIAlertController *alert;
// if user vill tap to already selected language
void (^cancelBlock)(UIAlertAction * _Nonnull action) = ^(UIAlertAction * _Nonnull action) {
dispatch_async(dispatch_get_main_queue(), ^{
[weakSelf dismissViewControllerAnimated:YES completion:nil];
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"];
View - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
Goto in finder /System/Library/Input Methods/
copy Category-Emoji.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
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
View gist:641603b4c7d7556013bdf34cdb9107ea
"body": "If you haven't already, you'll soon start to see people more glued to their phones than usual, perhaps taking bizarre, nonsensical routes down the streets, flicking their screens rapidly in a car park, or gathering around police stations, all the while endlessly muttering \"gotta catch 'em all.” Pokémon Go, the new, extremely popular augmented reality game by Niantic Labs, is set for release in more countries in the very near future, right after the company has fixed its exploding servers.\n\nGiven the game’s immense popularity, competition to become the greatest Pokémon Master of all time—like no one ever was—has never been tougher, and there are some key things you should know before setting off on your journey.\n\nThe first challenge many players face—including those in the UK and Europe—is that the game is not yet available in their country. However, for Android users this is easily sidestepped by simply downloading a mirrored copy of the APK and running it (at your own risk). This workaround has