Skip to content

Instantly share code, notes, and snippets.

View rozd's full-sized avatar
🛸

Max Rozdobudko rozd

🛸
  • Freelance
  • Kyiv, Ukraine
View GitHub Profile
@Ivy-Walobwa
Ivy-Walobwa / router_delegate.dart
Last active October 13, 2023 07:23
Code snippets implementing RouteDelegate, RouteInformationParser and defining user data-types. Full repo here: https://github.com/Ivy-Walobwa/flutter_declarative_navigation
import 'package:flutter/material.dart';
import 'routes_config.dart';
import '../presentation/screens.dart';
import '../constants.dart';
class ShopListRouterDelegate extends RouterDelegate<ShopListRouteConfig>
with ChangeNotifier, PopNavigatorRouterDelegateMixin<ShopListRouteConfig> {
@override
final GlobalKey<NavigatorState> navigatorKey;
@arturlector
arturlector / ios-questions-interview.md
Last active February 25, 2024 18:44
Вопросы на собеседование iOS разработчика.

Вопросы на собеседование iOS разработчика (дополненное издание):

General:

  • Что такое полиморфизм?

  • Что такое *инкапсуляция? Что такое *нарушение инкапсуляции?

  • Чем абстрактный класс отличается от интерфейса?

  • Расскажите о паттерне MVC. Чем отличается пассивная модель от активной?

@joshtynjala
joshtynjala / HyperlinkTextFieldTextRenderer.as
Last active July 20, 2017 15:09
Feathers TextFieldTextRenderer with Hyperlinks
package feathersx.controls.text
{
import feathers.controls.text.TextFieldTextRenderer;
import flash.geom.Point;
import flash.net.URLRequest;
import flash.net.navigateToURL;
import starling.events.Touch;
import starling.events.TouchEvent;
@superwills
superwills / OpenSSL RSA encryption sample
Last active November 2, 2022 09:45
Base64 encoding and RSA encryption sample
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <openssl/rsa.h>
#include <openssl/engine.h>
#include <openssl/pem.h>
// I'm not using BIO for base64 encoding/decoding. It is difficult to use.
// Using superwills' Nibble And A Half instead
@luca-bernardi
luca-bernardi / gist:968154
Created May 12, 2011 08:17
UIImage scale and rotate based on exif flag
UIImage *scaleAndRotateImage(UIImage *image)
{
int kMaxResolution = 1920;
CGImageRef imgRef = image.CGImage;
CGFloat width = CGImageGetWidth(imgRef);
CGFloat height = CGImageGetHeight(imgRef);