This file contains 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
{ | |
"message":"Hello from the server!" | |
} |
This file contains 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
abstract class Remote { | |
void forward(); | |
void reverse(); | |
factory Remote(device) { | |
if (device is Fan) { | |
return _RemoteForFan(device); | |
} else { | |
return _RemoteForCurtain(device); | |
} |
This file contains 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
# Project identification | |
sonar.projectKey=<YOUR PROJECT KEY> | |
sonar.projectName=<YOUR PRROJECT NAME> | |
sonar.projectVersion=1.0 | |
sonar.login=<YOUR LOGIN KEY> | |
# Source code location. | |
# Path is relative to the sonar-project.properties file. Defaults to . | |
# Use commas to specify more than one folder. | |
sonar.sources=lib |
This file contains 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:convert'; | |
import 'package:core/controller/base_controller.dart'; | |
import 'package:rxdart/rxdart.dart'; | |
import 'package:stomp_dart_client/stomp.dart'; | |
import 'package:stomp_dart_client/stomp_config.dart'; | |
import 'package:stomp_dart_client/stomp_frame.dart'; | |
import 'package:stomp_dart_client/stomp_handler.dart'; | |
import 'package:unipet_mobile_refueling/app/di/setup_di.dart'; | |
import 'package:unipet_mobile_refueling/app/module/pump_reserve/controller/pump_reserve_controller.dart'; |
This file contains 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
class CustomTheme implements ThemeData{ | |
final ThemeData _base; | |
CustomTheme(this._base); | |
static CustomTheme of(BuildContext context) => Theme.of(context) as CustomTheme; | |
@override | |
Color get accentColor => _base.accentColor; |
This file contains 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
class Solution { | |
fun containsDuplicate(nums: IntArray): Boolean { | |
return nums.size>nums.toSet().size | |
} | |
} |
This file contains 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.example.helloworld.core.data.network | |
import android.content.Context | |
import com.example.helloworld.utils.ConnectivityAndInternetAccess | |
import retrofit2.* | |
import java.io.IOException | |
import java.lang.Exception | |
import java.lang.reflect.ParameterizedType | |
import java.lang.reflect.Type |
This file contains 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
/* | |
============================================================================ | |
* Author : Ali Akber Aakash | |
* Email : ali852609@gmail.com | |
* Problem Name : Matrix Rotation | |
* Source : Cracking The Coding Interview - Gayle Laakmann McDowell | |
* Time Limit : 1.00 sec | |
============================================================================ | |
*/ |
This file contains 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
//traverse through the layers | |
for(int layer=0; layer<n/2; layer++) | |
{ | |
int first = layer; | |
int last = n-layer-1; | |
//traverse through start to end | |
for(int i=first; i<last; i++) | |
{ | |
//creating the offset |
This file contains 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
//traverse through the layers | |
for(int layer=0; layer<n/2; layer++) | |
{ | |
int start = layer; | |
int end = n-layer-1; | |
//traverse through start to end | |
for(i = start; i < end; i++) | |
{ | |
//perform the swap |
NewerOlder