Skip to content

Instantly share code, notes, and snippets.

View AnthonyBY's full-sized avatar

Anton Marchanka AnthonyBY

View GitHub Profile
@AnthonyBY
AnthonyBY / StepicGausseCalculation.txt
Last active November 4, 2017 16:27
Stepic решение. 1.5 Решение систем линейных алгебраических уравнений
#include<iostream>
#include <math.h>
#include <stdlib.h>
using namespace std;
int main()
{
int i, j, n, m;
@AnthonyBY
AnthonyBY / Kosaraju.swift
Last active April 7, 2020 17:35
Kosaraju's strongly connected components (SCC) Algorithm, Swift 4
import Foundation
class Graph {
var nodes = [Node]()
var identifiersToNodes = [Int: Node]()
func addNode(node: Node) {
identifiersToNodes[node.identifier] = node
nodes += [node]
}
@AnthonyBY
AnthonyBY / UIColor+Extension.swift
Last active October 16, 2019 07:34
UIColor to hex, and vice versa
extension UIColor {
convenience init(hexString: String, alpha: CGFloat = 1.0) {
let hexString: String = hexString.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
let scanner = Scanner(string: hexString)
if (hexString.hasPrefix("#")) {
scanner.scanLocation = 1
}
var color: UInt32 = 0
scanner.scanHexInt32(&color)
@AnthonyBY
AnthonyBY / gist:17de3579e20cdb6fcdac5b4135d6a839
Created October 5, 2023 08:07
Swift class override quiz
import UIKit
class A {
func execute(ind: Int = 0) {
print("A: \(ind)")
}
}
class B: A {
override func execute(ind: Int = 1) {
@AnthonyBY
AnthonyBY / readme.md
Last active April 10, 2025 12:33
Privacy Policy version 1.0 for the Britmap iOS app

Privacy Policy

This privacy policy applies to the Britmap app (hereby referred to as "Application") for mobile devices that was created by Anton Marchanka (hereby referred to as "Service Provider") as a free app. This service is intended for use "AS IS".

Information Collection and Use

The Application collects information when you download and use it. This information may include:

Your device's Internet Protocol address (e.g., IP address) The pages of the Application that you visit, the time and date of your visit, and the time spent on those pages