This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.paxier.currencyexchange.controller | |
import spock.lang.Specification | |
class FirstTestSpec extends Specification { | |
def "one plus one should be two"() { | |
expect: | |
1 + 1 == 2 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class UnownedDemo { | |
func takeClosure(completion: @escaping () -> Void) { | |
DispatchQueue.main.asyncAfter(deadline: .now() + 5) { | |
completion() | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class Widget { | |
let name: String | |
required init(name: String) { | |
self.name = name | |
} | |
} | |
func createWidget<T: Widget>(ofType: T.Type) -> T { | |
let widget = T.init(name: "Roq") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class BaseViewModel { | |
let service: String | |
init(service: String) { | |
self.service = service | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// ChainAnimation | |
// | |
// Created by Mohammed Wasimuddin on 14.01.20. | |
// Copyright © 2020 Wasim. All rights reserved. | |
// | |
import UIKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
void main() { | |
performTasks(); | |
} | |
void performTasks() async { | |
task1(); | |
String output = await task2(); | |
task3(output); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
// Methods | |
int result = calculator(1,2, multiply); | |
print(result); | |
// Class | |
Car lumbargini = Car(drive: driveFast); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
List<String> myFamily = ['Roq', 'Marie', 'Ammu', 'Wasim']; | |
} |