Skip to content

Instantly share code, notes, and snippets.

View kostapappas's full-sized avatar

LAMPROS KOSTAPAPPAS kostapappas

View GitHub Profile
@kostapappas
kostapappas / basicRowColumn.dart
Last active July 4, 2019 16:26
basic flutter UI
new Container(
padding: new EdgeInsets.all(8.0),
height: 250.0,
child: textExample,
)
final row = new Row(
children: <Widget>[
textExample,
textExample,
@kostapappas
kostapappas / customViewForHotReload.swift
Last active July 18, 2019 05:35
customView for hotreload
import UIKit
import Stevia
final class ContactUsView: UIView {
private var container = UIView()
@objc func injected() {
initialSetup()
}
@kostapappas
kostapappas / customViewControllerforHotReload.swift
Created July 18, 2019 05:41
Custom ViewController for hotreload
extension ContactUsViewController {
override func viewDidLoad() {
super.viewDidLoad()
self.initializeViews()
}
}
class ContactUsViewController: BaseSearchViewController {
@IBOutlet weak var searchBarTextField: UITextField!
@kostapappas
kostapappas / JsonToString.swift
Created September 3, 2019 10:15
Json Data to String (for debug reasons)
private func stringify(jsonData: Data) -> String {
do {
let array = try JSONSerialization.jsonObject(with: jsonData, options: []) as? [String: Any]
let jsonData2 = try JSONSerialization.data(withJSONObject: array,
options: .prettyPrinted)
// here "jsonData" is the dictionary encoded in JSON data
let jsonString = String(data: jsonData2, encoding: .utf8) ?? ""
let result = String(jsonString.filter { !" \n\t\r".contains($0) })
return result
} catch {
@kostapappas
kostapappas / uploadDsym manually with crashlytics
Created May 15, 2020 09:54
upload dsym with crashlytics
#run from project root directory. Add dsyms at route directory
./Pods/FirebaseCrashlytics/upload-symbols -gsp ./GoogleService-Info.plist -p ios ./dyms1.zip