Skip to content

Instantly share code, notes, and snippets.

View borut-t's full-sized avatar

Borut Tomazin borut-t

View GitHub Profile
@borut-t
borut-t / Localize.sh
Last active September 10, 2018 16:47
Localize.sh
######################################################
##### iOS & Android localisation files generator #####
######################################################
echo "============================BEGIN=============================="
if [ "$1" = "android" ]; then
Babelish csv2android
else
Babelish csv2strings
@borut-t
borut-t / Localizations Template.csv
Last active April 27, 2020 15:35
Localizations template
Section KEY iOS Android Action Notes English German
General general_success x x Success Erfolg
general_continue x x Continue Fortsetzen
Login login_button x / iOS iOS only export iOS nur exportieren
login_button / x Android Android only export Android nur exportieren
login_button / / SKIP Not exported Nicht exportiert
@borut-t
borut-t / PannableViewController.swift
Last active August 23, 2021 03:33
PannableViewControllerTests
import UIKit
class PannableViewController: ViewController {
override func viewDidLoad() {
super.viewDidLoad()
let panGesture = UIPanGestureRecognizer(target: self, action: #selector(panGesture(_:)))
view.addGestureRecognizer(panGesture)
}
}
//
// UITabBarController+extra.m
//
// Created by Borut Tomažin on 10/1/12.
// Copyright (c) 2012 Borut Tomažin. All rights reserved.
//
#import "UITabBarController+extra.h"
#define kAnimationDuration .3